/*
Theme Name: Enfold Child - BEC Handball
Description: Thème enfant d'Enfold pour le BEC Handball
Template: enfold
Version: 1.0
Author: BEC Handball
*/

/* ==========================================================
   Couleurs de marque BEC Handball
   Remplacez ces valeurs par les couleurs exactes de votre logo
   ========================================================== */
:root {
  --bec-blue: #B20200;
  --bec-blue-light: #FBE6E6;
  --bec-blue-dark: #7A0100;
  --bec-white: #FFFFFF;
}

/* ==========================================================
   Barre de menu (header) - logo + fond
   ========================================================== */
#header,
#header_main,
#header_main .container,
#header_main.header_bg {
  background-color: var(--bec-blue) !important;
}

/* Logo redimensionné pour tenir dans la barre de menu */
#header_main .logo img,
#header .logo img {
  max-height: 48px;
  width: auto;
  padding: 0;
}

#header_main .logo,
#header .logo {
  height: auto;
  line-height: normal;
}

/* Couleurs du menu adaptées pour rester lisibles sur fond rouge */
#header_main .menu > ul > li > a,
#header_main .menu > ul > li > a .menu-item-title {
  color: var(--bec-white) !important;
}

#header_main .menu > ul > li > a:hover,
#header_main .menu > ul > li.current-menu-item > a {
  color: var(--bec-blue-light) !important;
}

/* ==========================================================
   Section Hero (bandeau d'accueil)
   ========================================================== */
.bec-hero {
  background: var(--bec-blue);
  color: var(--bec-white);
  text-align: center;
  padding: 60px 30px;
}

.bec-hero h1 {
  color: var(--bec-white);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bec-hero p {
  color: var(--bec-blue-light);
  font-size: 15px;
  margin-bottom: 30px;
}

/* ==========================================================
   Chiffres clés (compteurs)
   ========================================================== */
.bec-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.bec-stat {
  text-align: center;
}

.bec-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--bec-white);
  line-height: 1;
}

.bec-stat-label {
  font-size: 13px;
  color: var(--bec-blue-light);
  margin-top: 4px;
}

.bec-hero-btn {
  display: inline-block;
  background: var(--bec-white);
  color: var(--bec-blue);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.bec-hero-btn:hover {
  background: var(--bec-blue-light);
  color: var(--bec-blue-dark);
}

/* ==========================================================
   Section Actualités (cartes)
   ========================================================== */
.bec-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

.bec-section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--bec-blue-dark);
}

.bec-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bec-news-card {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.bec-news-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.bec-news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.bec-news-card-body {
  padding: 14px 16px;
}

.bec-news-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--bec-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bec-news-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  color: #222;
}

/* ==========================================================
   Section Équipes (grille de catégories)
   ========================================================== */
.bec-teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bec-team-card {
  background: var(--bec-blue-light);
  border-radius: 8px;
  padding: 24px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--bec-blue-dark);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.bec-team-card:hover {
  background: var(--bec-blue);
  color: #fff;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
  .bec-news-grid {
    grid-template-columns: 1fr;
  }
  .bec-teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bec-stats {
    gap: 24px;
  }
}
