/*
Theme Name: Billard Club Green
Author: Benoit
Description: Thème WordPress responsive sur-mesure pour club et association de billard.
Version: 1.0
*/

:root {
  --green-primary: #0e5a2f;    /* Vert tapis de billard */
  --green-dark: #07381c;       /* Vert foncé pour les contrastes */
  --green-light: #168044;      /* Vert vif pour le survol */
  --gold-accent: #d4af37;      /* Doré laiton */
  --bg-dark: #121212;          /* Fond sombre */
  --bg-light: #f8f9fa;         /* Fond clair */
  --text-dark: #222222;
  --text-light: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-accent);
}

/* Header & Navigation */
.site-header {
  background-color: var(--green-dark);
  border-bottom: 3px solid var(--gold-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-navigation a {
  color: var(--text-light);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

.main-navigation a:hover {
  background-color: var(--green-primary);
  color: var(--gold-accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(7, 56, 28, 0.85), rgba(14, 90, 47, 0.85)), url('https://images.unsplash.com/photo-1575361204480-aadea25e6e68?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gold-accent);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.btn-gold {
  display: inline-block;
  background-color: var(--gold-accent);
  color: var(--green-dark);
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.btn-gold:hover {
  background-color: #f1c40f;
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* Layout Main Content */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--gold-accent);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

/* Grid d'articles / Événements */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 4px solid var(--green-primary);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--green-dark);
}

/* Footer */
.site-footer {
  background-color: var(--green-dark);
  color: var(--text-light);
  border-top: 3px solid var(--gold-accent);
  padding: 3rem 2rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ccc;
}

/* Media Queries Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}