/*
Theme Name: ATS FR
Theme URI: https://africatopsports.com
Description: Africa Top Sports FR - thème enfant de SportsArc
Author: Africa Top Sports
Template: sportsarc
Version: 1.1.0
Text Domain: ats-fr
*/

/* === RESET DIRECTION LTR === */
body, html { direction: ltr !important; text-align: left !important; }

/* === HEADER vert ATS === */
.site-header, header[role=banner], .header-main { background: #003919 !important; }
.header-inner-wrap { background: #003919 !important; }

/* === LOGO === */
.custom-logo, .site-branding img { max-height: 60px !important; width: auto !important; }
.site-title a { color: #efab00 !important; font-size: 22px !important; font-weight: 900 !important; }

/* === NAV PRINCIPALE HORIZONTALE === */
#header-navigation { background: #003919 !important; width: 100% !important; }
#header-navigation .site-wrapper { max-width: 1440px; margin: 0 auto; padding: 0 10px; }

/* Force flex horizontal */
#header-navigation ul.primary-menu,
.main-navigation ul,
.site-navigation ul.primary-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
  position: static !important;
  float: none !important;
  width: 100% !important;
  background: #003919 !important;
}
#header-navigation ul.primary-menu::-webkit-scrollbar { display: none; }

/* Items nav */
#header-navigation ul.primary-menu > li,
.main-navigation ul > li {
  display: block !important;
  float: none !important;
  position: relative !important;
}
#header-navigation ul.primary-menu > li > a,
.main-navigation ul > li > a {
  display: block !important;
  color: #fff !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: transparent !important;
}
#header-navigation ul.primary-menu > li > a:hover,
.main-navigation ul > li > a:hover {
  background: #D10019 !important;
  color: #fff !important;
}

/* Cacher sous-menus sur desktop */
#header-navigation ul.primary-menu ul,
.main-navigation ul ul { display: none !important; }

/* === SIDEBAR OFF (pas de sidebar gauche) === */
.sidebar-primary, #secondary, .widget-area { display: none !important; }
.site-main, #primary { width: 100% !important; float: none !important; margin: 0 !important; }

/* === CONTENU === */
.site-content { max-width: 1440px; margin: 0 auto; padding: 0 15px; }
a { color: #003919; }
a:hover { color: #D10019; }
.cat-links a, .cat-label { background: #D10019 !important; color: #fff !important; font-size: 11px !important; padding: 2px 7px !important; border-radius: 2px !important; }

/* Couleur accent */
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a { background: #D10019 !important; }


/* === SUPPRIMER SECTION RECOMMENDED === */
.wpmotif-recommended-element,
.wpmotif-element.wpmotif-recommended-element { display: none !important; }

/* === FOOTER ATS === */
.ats-footer {
  background: #001a0a;
  color: #ccc;
  margin-top: 40px;
  padding: 40px 0 0;
  border-top: 3px solid #D10019;
}
.ats-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.ats-footer-title {
  color: #efab00;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ats-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ats-footer-col ul li {
  margin-bottom: 8px;
}
.ats-footer-col ul li a {
  color: #aaa !important;
  font-size: 13px;
  text-decoration: none;
}
.ats-footer-col ul li a:hover { color: #efab00 !important; }
.ats-footer-social a {
  font-size: 22px;
  margin-right: 10px;
  text-decoration: none;
}
.ats-footer-bottom {
  background: #000d05;
  padding: 12px 20px;
  font-size: 12px;
  color: #666;
  max-width: 100%;
  overflow: hidden;
}
.ats-footer-bottom a { color: #efab00 !important; }

/* Masquer le site-footer SportsArc original */
.site-footer:not(.ats-footer) { display: none !important; }

@media (max-width: 768px) {
  .ats-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ats-footer-inner { grid-template-columns: 1fr; }
}

/* === SUPPRIMER BOÎTE JAUNE VIDEO SUBMIT === */
.submit-video-widget,
.widget.submit-video,
.wpmotif-submit-video,
[class*='submit-video'],
[class*='video-submit'],
[id*='submit-video'],
[id*='video-submit'],
.sportsarc-submit-video { display: none !important; }

/* === VIDEO DU MOIS === */
.ats-home-container {
  margin-top: 24px;
}
.video-month {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #003919 0%, #061913 55%, #0b241c 100%);
  border: 1px solid rgba(239, 171, 0, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
.video-month::before {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 171, 0, 0.18) 0%, rgba(239, 171, 0, 0) 70%);
  pointer-events: none;
}
.video-month-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.video-month .section-title {
  margin: 0;
  color: #fff;
  border-left-color: #efab00;
}
.video-month-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 171, 0, 0.12);
  color: #efab00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.video-month-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(260px, 0.75fr);
  gap: 22px;
  align-items: start;
}
.video-month-player-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}
.video-month-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.video-month-copy h3 {
  margin: 10px 0 12px;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 28px;
  line-height: 1.2;
}
.video-month-copy h3 a {
  color: #fff;
}
.video-month-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}
.video-month .category {
  color: #efab00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-month .category a {
  color: #efab00;
}
.video-month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.video-month-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #efab00;
  color: #003919;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(239, 171, 0, 0.22);
}
.video-month-cta:hover { color: #003919; filter: brightness(1.02); }
.video-month-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-month-link:hover { color: #efab00; }
.video-month-side {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-month-side-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #efab00;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
}
.video-month-side-link::after {
  content: '↗';
  margin-left: 8px;
  font-size: 12px;
}
.video-month-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-month-list li {
  padding: 0;
  margin: 0 0 12px;
}
.video-month-list li:last-child { margin-bottom: 0; }
.video-month-list a {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(239, 171, 0, 0.08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.video-month-list a:hover, .video-month-list a.is-active {
  color: #fff;
  transform: translateX(3px);
  border-color: rgba(239, 171, 0, 0.28);
  background: rgba(239, 171, 0, 0.08);
}
@media (max-width: 1100px) {
  .video-month-grid { grid-template-columns: 1fr 1fr; }
  .video-month-side { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .video-month { padding: 18px; }
  .video-month-grid { grid-template-columns: 1fr; }
  .video-month-copy h3 { font-size: 24px; }
}
@media (max-width: 600px) {
  .video-month-top { flex-direction: column; align-items: flex-start; }
  .video-month-copy h3 { font-size: 20px; }
  .video-month-cta { width: 100%; }
}


/* ===== LOGO ATS — repositionné en haut à droite ===== */
.site-branding-area {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
}
.site-branding-area .custom-logo-link {
    order: 2;
    margin-left: auto;
}
.site-branding-area .site-branding-text {
    order: 1;
}
.site-branding .custom-logo {
    max-height: 120px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}
@media (max-width: 768px) {
    .site-branding-area {
        flex-direction: column !important;
        align-items: center !important;
    }
    .site-branding-area .custom-logo-link {
        order: 1;
        margin-left: 0;
    }
}
/* ===================================================== */

/* Web TV CTA depuis home */
.video-month-webtv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #003919 0%, #005a28 100%);
  color: #7fffb0 !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid #005a28;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .3px;
}
.video-month-webtv:hover {
  background: linear-gradient(135deg, #005a28 0%, #007a38 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,90,40,.35);
}
