/*
Theme Name:   Avada Child — Game.fr
Template:     Avada
Version:      1.0.0
Description:  Child theme Game.fr — Design system dark/yellow
Author:       Game.fr
*/

/* ════════════════════════════════════════════
   VARIABLES GAME.FR (extraites de game-fr-redesign.html)
   ════════════════════════════════════════════ */
:root {
  --yellow:        #FFD100;
  --yellow-dark:   #D4AC00;
  --yellow-glow:   rgba(255, 209, 0, 0.18);
  --black:         #080808;
  --surface:       #111111;
  --surface2:      #1A1A1A;
  --surface3:      #222222;
  --border:        rgba(255, 209, 0, 0.15);
  --border-strong: rgba(255, 209, 0, 0.35);
  --text:          #F0F0F0;
  --text-muted:    #888888;
  --text-dim:      #555555;
  --red:           #FF3333;
  --ps-blue:       #003087;
  --xbox-green:    #107C10;
  --switch-red:    #E4000F;
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background:  var(--black) !important;
  color:       var(--text)  !important;
  font-family: 'Barlow', sans-serif !important;
  font-size:   15px;
  line-height: 1.55;
  overflow-x:  hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════
   AVADA OVERRIDES — Fond & Conteneur
   ════════════════════════════════════════════ */
.fusion-body,
#wrapper,
.fusion-page-title-bar,
.fusion-content-widget-area { background: var(--black) !important; }

.fusion-layout-column .fusion-column-inner-bg,
.fusion-container.fusion-full-width-sep { background: transparent !important; }

/* Largeur max 1400px */
.fusion-row { max-width: 1400px !important; }

/* ════════════════════════════════════════════
   TICKER BREAKING NEWS
   ════════════════════════════════════════════ */
.ticker-bar {
  background:   var(--yellow);
  color:        #000;
  font-family:  'Space Mono', monospace;
  font-size:    11px;
  font-weight:  700;
  letter-spacing: 0.05em;
  overflow:     hidden;
  white-space:  nowrap;
  padding:      6px 0;
  position:     relative;
  z-index:      200;
}
.ticker-bar::before {
  content:    'BREAKING';
  background: var(--black);
  color:      var(--yellow);
  padding:    0 14px;
  position:   absolute;
  left:       0; top: 0; bottom: 0;
  display:    flex;
  align-items:center;
  z-index:    2;
  font-size:  10px;
  letter-spacing: 0.12em;
}
.ticker-inner {
  display:    inline-block;
  padding-left: 110px;
  animation:  ticker 35s linear infinite;
}
.ticker-inner span { margin: 0 40px; }
@keyframes ticker {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   NAVIGATION (Avada Sticky Header Override)
   ════════════════════════════════════════════ */
#header,
.fusion-header-wrapper,
.fusion-sticky-header-wrapper { background: var(--surface) !important; }

#header { border-bottom: 2px solid var(--yellow) !important; }

.fusion-header-sticky-height { display: none !important; }

/* Logo */
.fusion-logo a,
.fusion-logo .fusion-logo-link { font-family: 'Barlow Condensed', sans-serif !important; }

/* Nav links */
.fusion-main-menu > ul > li > a,
.fusion-main-menu > ul > li > a:hover {
  font-family:    'Barlow Condensed', sans-serif !important;
  font-weight:    700 !important;
  font-size:      14px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color:          var(--text-muted) !important;
  border-bottom:  3px solid transparent !important;
  transition:     color 0.15s, border-color 0.15s !important;
}
.fusion-main-menu > ul > li:hover > a,
.fusion-main-menu > ul > li.current-menu-item > a {
  color:             var(--yellow) !important;
  border-bottom-color: var(--yellow) !important;
}

/* Bouton Newsletter nav */
.fusion-button.btn-newsletter {
  background:    var(--yellow) !important;
  color:         #000 !important;
  font-family:   'Barlow Condensed', sans-serif !important;
  font-weight:   800 !important;
  font-size:     12px !important;
  letter-spacing:0.1em !important;
  text-transform:uppercase !important;
  padding:       8px 16px !important;
  border-radius: 3px !important;
}

/* ════════════════════════════════════════════
   TAGS CATÉGORIES
   ════════════════════════════════════════════ */
.tag {
  display:      inline-block;
  font-family:  'Space Mono', monospace;
  font-size:    10px;
  font-weight:  700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:      3px 9px;
  border-radius:2px;
  background:   var(--yellow);
  color:        #000;
  margin-bottom:10px;
}
.tag.news   { background: var(--red);     color: #fff; }
.tag.test   { background: #0070D1;        color: #fff; }
.tag.guide  { background: #107C10;        color: #fff; }
.tag.esport { background: #E74C3C;        color: #fff; }
.tag.dossier{ background: #8E44AD;        color: #fff; }
.tag.video  { background: #E67E22;        color: #fff; }

/* ════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════ */
.hero-grid {
  display:               grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows:    380px 180px;
  gap:                   4px;
}
.hero-main {
  grid-row:     1 / 3;
  position:     relative;
  overflow:     hidden;
  border-radius:6px 0 0 6px;
  cursor:       pointer;
}
.hero-main img { transition: transform 0.5s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.hero-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   900;
  font-size:     38px;
  line-height:   1.05;
  text-transform:uppercase;
  letter-spacing:-0.01em;
  text-shadow:   0 2px 12px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}
.hero-meta {
  font-size:   12px;
  color:       rgba(255,255,255,0.5);
  font-family: 'Space Mono', monospace;
}
.hero-meta b { color: var(--yellow); }

/* Hero Side */
.hero-side { display: flex; flex-direction: column; gap: 4px; }
.hero-side-item {
  position:     relative;
  overflow:     hidden;
  flex:         1;
  cursor:       pointer;
}
.hero-side-item:first-child { border-radius: 0 6px 0 0; }
.hero-side-item:last-child  { border-radius: 0 0 6px 0; }
.hero-side-item img { transition: transform 0.4s; }
.hero-side-item:hover img { transform: scale(1.05); }
.side-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
}
.side-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     16px;
  text-transform:uppercase;
  line-height:   1.1;
}

/* ════════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════════ */
.section-header {
  display:      flex;
  align-items:  center;
  gap:          14px;
  margin:       36px 0 18px;
  border-bottom:1px solid var(--border);
  padding-bottom:12px;
}
.section-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   900;
  font-size:     22px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:         var(--yellow);
}
.section-title::before {
  content:       '';
  display:       inline-block;
  width:         4px;
  height:        20px;
  background:    var(--yellow);
  margin-right:  10px;
  vertical-align:-4px;
  border-radius: 2px;
}
.section-link {
  margin-left:   auto;
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   700;
  font-size:     12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:         var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
  transition:    color 0.15s, border-color 0.15s;
}
.section-link:hover { color: var(--yellow); border-color: var(--yellow); }

/* ════════════════════════════════════════════
   ARTICLE CARDS
   ════════════════════════════════════════════ */
.card {
  background:   var(--surface);
  border:       1px solid var(--surface3);
  border-radius:5px;
  overflow:     hidden;
  cursor:       pointer;
  display:      flex;
  flex-direction:column;
  transition:   border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
  transform:    translateY(-2px);
}
.card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; }
.card-img img { transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body  { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     17px;
  text-transform:uppercase;
  line-height:   1.15;
  margin-bottom: 8px;
  flex:          1;
}
.card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.card-meta    {
  font-family: 'Space Mono', monospace;
  font-size:   10px;
  color:       var(--text-dim);
  margin-top:  12px;
  display:     flex;
  gap:         10px;
  align-items: center;
}
.card-meta .score {
  background:  var(--yellow);
  color:       #000;
  font-weight: 700;
  padding:     2px 7px;
  border-radius:2px;
  font-size:   12px;
}
.score.great   { background: #27AE60; color: #fff; }
.score.good    { background: #2980B9; color: #fff; }
.score.average { background: #E67E22; color: #fff; }

/* Grilles */
.news-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-grid-2 { display: grid; grid-template-columns: 2fr 1fr;        gap: 16px; }

/* ════════════════════════════════════════════
   REVIEW CARDS (Tests)
   ════════════════════════════════════════════ */
.review-card {
  background:    var(--surface);
  border:        1px solid var(--surface3);
  border-radius: 5px;
  overflow:      hidden;
  cursor:        pointer;
  transition:    border-color 0.2s;
}
.review-card:hover { border-color: var(--border-strong); }
.review-img         { aspect-ratio: 4/3; overflow: hidden; }
.review-img img     { transition: transform 0.4s; }
.review-card:hover .review-img img { transform: scale(1.04); }
.review-body        { padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.big-score {
  font-family:  'Barlow Condensed', sans-serif;
  font-weight:  900;
  font-size:    42px;
  line-height:  1;
  color:        var(--yellow);
  flex-shrink:  0;
  width:        52px;
  text-align:   center;
}
.review-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     17px;
  text-transform:uppercase;
  line-height:   1.15;
  margin-bottom: 5px;
}
.review-verdict { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.stars          { color: var(--yellow); font-size: 12px; margin-top: 5px; }

/* ════════════════════════════════════════════
   ESPORT LIVE BARS
   ════════════════════════════════════════════ */
.esport-bar {
  background:   var(--surface);
  border:       1px solid var(--surface3);
  border-radius:5px;
  padding:      16px 20px;
  display:      flex;
  align-items:  center;
  gap:          16px;
  cursor:       pointer;
  transition:   border-color 0.2s;
  margin-bottom:8px;
}
.esport-bar:hover { border-color: var(--border-strong); }
.esport-game {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   900;
  font-size:     14px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:         var(--yellow);
  min-width:     90px;
}
.esport-match  { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; flex: 1; text-transform: uppercase; }
.esport-score  { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 20px; color: var(--yellow); min-width: 60px; text-align: center; }
.esport-live {
  background:    var(--red);
  color:         #fff;
  font-family:   'Space Mono', monospace;
  font-size:     9px;
  font-weight:   700;
  padding:       3px 8px;
  border-radius: 2px;
  letter-spacing:0.1em;
  animation:     blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.4; }
}

/* ════════════════════════════════════════════
   VIDEO CARDS
   ════════════════════════════════════════════ */
.video-card {
  background:    var(--surface);
  border:        1px solid var(--surface3);
  border-radius: 5px;
  overflow:      hidden;
  cursor:        pointer;
  transition:    border-color 0.2s;
}
.video-card:hover { border-color: var(--border-strong); }
.video-thumb       { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.video-thumb img   { transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-btn          { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-circle {
  width:         48px;
  height:        48px;
  background:    rgba(255, 209, 0, 0.9);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content:center;
  font-size:     18px;
  color:         var(--black);
  padding-left:  3px;
  transition:    transform 0.2s;
}
.video-card:hover .play-circle { transform: scale(1.1); }
.video-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     15px;
  text-transform:uppercase;
  line-height:   1.2;
  margin-bottom: 5px;
  padding:       12px 14px 0;
}
.video-meta { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-dim); padding: 0 14px 12px; }

/* ════════════════════════════════════════════
   SIDEBAR — TRENDING
   ════════════════════════════════════════════ */
.main-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.trending-item {
  display:      flex;
  gap:          14px;
  padding:      12px 0;
  border-bottom:1px solid var(--surface3);
  cursor:       pointer;
  transition:   opacity 0.15s;
  align-items:  flex-start;
}
.trending-item:hover { opacity: 0.75; }
.trend-num {
  font-family:  'Barlow Condensed', sans-serif;
  font-weight:  900;
  font-size:    32px;
  color:        var(--surface3);
  line-height:  1;
  min-width:    30px;
}
.trending-item:nth-child(1) .trend-num { color: var(--yellow); }
.trending-item:nth-child(2) .trend-num { color: rgba(255,209,0,0.5); }
.trend-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; text-transform: uppercase; line-height: 1.2; margin-bottom: 3px; }
.trend-cat   { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-dim); }

/* ════════════════════════════════════════════
   NEWSLETTER BLOCK
   ════════════════════════════════════════════ */
.newsletter-block {
  background:    var(--yellow);
  border-radius: 6px;
  padding:       28px 32px;
  margin:        40px 0;
  display:       flex;
  align-items:   center;
  gap:           32px;
}
.newsletter-title {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   900;
  font-size:     28px;
  text-transform:uppercase;
  letter-spacing:-0.01em;
  color:         var(--black);
  line-height:   1.05;
  margin-bottom: 5px;
}
.newsletter-sub { font-size: 13px; color: rgba(0,0,0,0.65); }
.nl-input {
  background:    rgba(0,0,0,0.12);
  border:        2px solid rgba(0,0,0,0.2);
  border-radius: 3px;
  padding:       10px 16px;
  font-size:     14px;
  color:         var(--black);
  width:         260px;
  outline:       none;
  font-family:   'Barlow', sans-serif;
  transition:    border-color 0.15s;
}
.nl-input:focus { border-color: rgba(0,0,0,0.5); }
.nl-btn {
  background:    var(--black);
  color:         var(--yellow);
  border:        none;
  border-radius: 3px;
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:       10px 20px;
  cursor:        pointer;
  transition:    opacity 0.15s;
}
.nl-btn:hover { opacity: 0.85; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
#footer,
.fusion-footer-widget-area,
.fusion-footer-copyright-area {
  background:   var(--surface) !important;
  border-top:   2px solid var(--yellow) !important;
}
.fusion-copyright-content { font-family: 'Space Mono', monospace !important; font-size: 10px !important; color: var(--text-dim) !important; }
.footer-logo {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   900;
  font-size:     40px;
  color:         var(--yellow);
  letter-spacing:-0.02em;
  line-height:   1;
  margin-bottom: 10px;
}
.footer-col h4 {
  font-family:   'Barlow Condensed', sans-serif;
  font-weight:   800;
  font-size:     14px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:         var(--yellow);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a  { font-size: 13px; color: var(--text-dim); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--yellow); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .news-grid          { grid-template-columns: repeat(2, 1fr); }
  .hero-grid          { grid-template-columns: 1fr 280px; grid-template-rows: 320px 140px; }
}
@media (max-width: 820px) {
  .fusion-main-menu   { display: none !important; }   /* mobile menu Avada */
  .hero-grid          { grid-template-columns: 1fr; grid-template-rows: 260px 120px; }
  .hero-side          { flex-direction: row; gap: 8px; }
  .main-with-sidebar  { grid-template-columns: 1fr; }
  .news-grid          { grid-template-columns: 1fr; }
  .news-grid-3        { grid-template-columns: 1fr 1fr; }
  .newsletter-block   { flex-direction: column; padding: 20px; }
  .nl-input           { width: 100%; }
  #footer .fusion-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-title         { font-size: 24px; }
  .hero-grid          { grid-template-rows: 220px 100px; }
  .news-grid-3        { grid-template-columns: 1fr; }
  #footer .fusion-row { grid-template-columns: 1fr; }
}
