/*
Theme Name: OceanWP Child
Template: oceanwp
Author: Marafoot
Description: Theme enfant personnalise pour Marafoot - Identite "Stade"
Version: 2.0
*/

/* ============================================================
   MARAFOOT — SYSTÈME DE DESIGN "STADE"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --mf-bg-dark: #0B0F0D;
  --mf-bg-dark-alt: #0A2E1A;
  --mf-green: #3FD65C;
  --mf-green-dark: #2BA945;
  --mf-red: #E8443C;
  --mf-text: #12140F;
  --mf-text-light: #5C6259;
  --mf-border: #E7EAE6;
  --mf-font-title: 'Oswald', Arial, sans-serif;
  --mf-font-body: 'Inter', Arial, sans-serif;
}

body {
  font-family: var(--mf-font-body);
  color: var(--mf-text);
}

h1, h2, h3, .entry-title, .article-content h2 {
  font-family: var(--mf-font-title);
  letter-spacing: 0.2px;
}

/* ============================================================
   1. HEADER — sombre, sticky, identité forte
   ============================================================ */
#site-header {
  background-color: var(--mf-bg-dark) !important;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Unifier tout le header en noir : le menu principal avait son propre
   fond vert (réglage distinct dans OceanWP), on l'aligne sur le header. */
#site-header,
#site-header *:not(.dropdown-menu):not(.sub-menu),
#site-navigation-wrap,
.site-navigation-wrap,
#main-nav,
.main-nav,
#site-header nav,
#site-header .site-header-item {
  background-color: transparent !important;
}

#site-header {
  background-color: var(--mf-bg-dark) !important;
}

#site-header a,
#site-header .site-logo a,
#site-header .site-title a {
  color: #ffffff !important;
  font-family: var(--mf-font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#site-header a:hover {
  color: var(--mf-green) !important;
}

/* Logo légèrement plus marqué */
#site-header .site-logo a,
#site-header .site-title a {
  font-size: 1.6rem;
}

/* ============================================================
   2. FIL D'ARIANE / EN-TÊTE DE PAGE — discret
   ============================================================ */
.page-header {
  background-color: #F7F8F6 !important;
  border-bottom: 1px solid var(--mf-border);
}

/* ============================================================
   3. GRILLE D'ARTICLES — cartes premium
   ============================================================ */
.grid-container {
  gap: 28px;
}

.article-card {
  border: 1px solid var(--mf-border);
  border-radius: 10px;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10) !important;
  border-color: transparent;
}

.article-content h2 a {
  color: var(--mf-text);
  font-weight: 700;
  line-height: 1.3;
}

.article-content h2 a:hover {
  color: var(--mf-green-dark);
}

.article-content p {
  color: var(--mf-text-light);
  font-family: var(--mf-font-body);
}

.read-more a {
  background-color: var(--mf-green);
  color: #061006;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
}

.read-more a:hover {
  background-color: var(--mf-green-dark);
  color: #fff;
}

/* ============================================================
   4. LA UNE — image + titre en overlay (effet "stade")
   Cible le 1er article de la grille sur la page d'accueil.
   Ne modifie aucun fichier PHP : positionnement pur CSS.
   ============================================================ */
.article-card--hero {
  position: relative;
  grid-column: 1 / -1;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
}

.article-card--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.article-card--hero .article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px 28px 20px;
}

.article-card--hero .article-content h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.article-card--hero .article-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 640px;
}

.article-card--hero .read-more {
  position: absolute;
  bottom: 20px;
  right: 28px;
  z-index: 2;
  margin: 0;
  padding: 0;
}

/* ============================================================
   5. FIL INFO — badge live + style carte
   ============================================================ */
.fil-info {
  border: 1px solid var(--mf-border);
  border-radius: 10px;
  max-width: 100%;
}

.fil-info h2 {
  background-color: var(--mf-bg-dark);
  color: #fff;
  border-radius: 10px 10px 0 0;
  margin: -1px -1px 10px -1px;
  padding: 12px 14px;
}

.blink-icon {
  background-color: var(--mf-green) !important;
}

/* ============================================================
   6. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {

  #site-header .site-logo a,
  #site-header .site-title a {
    font-size: 1.25rem;
  }

  /* La une en plein écran, immersive */
  .article-card--hero {
    grid-column: 1 / -1;
    min-height: 60vh;
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .article-card--hero .article-content h2 {
    font-size: 1.4rem;
  }

  .article-card--hero .read-more {
    position: static;
    margin-top: 14px;
    display: inline-block;
  }

  .article-card--hero .article-content {
    position: static;
    background: var(--mf-bg-dark);
    padding: 18px;
  }

  .article-card--hero::after {
    display: none;
  }

  .article-card--hero img {
    position: static;
    height: 220px;
  }

  /* Fil Info : défilement horizontal type "stories" au lieu d'une longue liste verticale */
  .fil-info ul.news-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    max-height: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .fil-info ul.news-list li {
    flex: 0 0 auto;
    max-width: 220px;
    white-space: normal;
    background: #F7F8F6;
    border-radius: 8px;
    padding: 10px 12px;
    display: block;
  }

  .fil-info .scroll-container,
  .fil-info .scroll-content {
    max-width: 100%;
    white-space: normal;
    display: block;
  }

  .fil-info .controls,
  .pagination-buttons {
    display: none; /* la pagination n'a plus de sens en défilement horizontal continu */
  }
}

/* ============================================================
   ANCIENNES RÈGLES (conservées telles quelles)
   ============================================================ */

.pagination-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.arrow-btn {
  background-color: #ffffff !important;
  border: 1px solid #ddd;
  color: inherit;
}

.arrow-btn svg,
.arrow-btn .green-icon {
  color: #59B94F !important;
  fill: currentColor;
}

.arrow-btn:hover {
  background-color: #f0f0f0 !important;
}

#pageIndicator {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.green-icon {
  color: #59B94F;
}