:root {
  --green: #0b3d2e;
  --gold: #d4af37;
  --light: #f4f6f5;
  --dark: #1a1a1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
}

/* ================= HEADER ================= */

header {
  background: linear-gradient(135deg, var(--green), #146b52);
  color: white;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 110px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 45px;
  }
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 700;
}

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

/* ================= HERO ================= */

.hero {
  background-image: url('../images/hero-cyclo.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 60%;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* ================= SECTIONS ================= */

section {
  margin: auto;
  padding: 4rem 2rem;
}

/* ================= CARDS ================= */

.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* ================= LAYOUT 2 COLONNES ================= */

.two-columns {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-content,
.sidebar {
  width: 100%;
}

/* ================= SIDEBAR ================= */

.sidebar-card h3 {
  margin-top: 0;
  color: var(--green);
}

.sidebar-card strong {
  display: block;
  margin-top: 1.2rem;
}

.sidebar-card p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sidebar-card a {
  color: var(--green);
  text-decoration: none;
}

.sidebar-card a:hover {
  text-decoration: underline;
}

/* ================= PHOTO GRID ================= */

.photo-grid {
  max-width: 720px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.photo-grid img:last-child {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .photo-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 200px;
  }

  .photo-grid img:last-child {
    grid-column: span 1;
  }
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--dark);
  color: white;
  padding: 1.5rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logos img {
  max-height: 55px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logos {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* ================= LIGHTBOX ================= */

.lightbox {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* ===============================
   VIE DU CLUB – STYLE MAGAZINE
   =============================== */

.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.badge.route {
  background: var(--green);
}

.badge.vtt {
  background: #8a5a00;
}

.sortie-resume {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0.6rem 0 1.2rem;
}

.sortie-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.sortie-infos span {
  background: #f0f4f3;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.sortie-conclusion {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Effet magazine photos */
.photo-grid a {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.photo-grid a img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.photo-grid a:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.photo-grid a::after {
  content: "🔍";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-grid a:hover::after {
  opacity: 1;
}

/* ================= BADGES ================= */

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* Types de badges */
.badge.route {
  background: #0b3d2e;
  color: white;
}

.badge.vtt {
  background: #5a7d3c;
  color: white;
}

.badge.projet {
  background: #0b3d2e;
  color: white;
}

/* ================= ACTUALITÉS ================= */

.actu-date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.8rem;
}
/* ================= SORTIES – PEAUFINAGE ================= */

/* En-tête des sorties */
.sorties-header {
  background: linear-gradient(135deg, #f4f6f5, #ffffff);
  border-left: 6px solid var(--green);
}

/* Carte sortie */
.sortie {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sortie:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

/* ROUTE / VTT / DOUCE */
.sortie-route {
  border-left: 6px solid #0b3d2e;
}

.sortie-vtt {
  border-left: 6px solid #3b6b2a;
}

.sortie-douce {
  border-left: 6px solid #1e88e5;
}

/* En-tête sortie */
.sortie-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Description */
.sortie-description {
  font-size: 0.95rem;
  color: #333;
}

/* Infos clés */
.sortie-infos {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.sortie-infos li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

/* Lien GPX */
.gpx-link {
  font-weight: 600;
  color: var(--green);
}

.gpx-link:hover {
  text-decoration: underline;
}

/* Boutons choix */
.choice-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.choice-buttons button {
  flex: 1;
  padding: 0.7rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Participants */
.participants {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

.participants ul {
  padding-left: 1rem;
  margin: 0.5rem 0 0;
}

/* Badges */
.badge.route {
  background: #0b3d2e;
  color: white;
}

.badge.vtt {
  background: #3b6b2a;
  color: white;
}

.badge.douce {
  background: #1e88e5;
  color: white;
}
