/* Guide Randonnée Réunion - Style CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --vert-foret: #2d6a4f;
  --vert-clair: #40916c;
  --orange-volcan: #e76f51;
  --orange-hover: #d45a3d;
  --blanc-casse: #f8f9fa;
  --gris-fonce: #212529;
  --gris-moyen: #6c757d;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gris-fonce);
  background-color: #ffffff;
  line-height: 1.6;
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--vert-foret);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }

a {
  color: var(--vert-foret);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--orange-volcan); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--vert-foret);
}
.logo svg { width: 32px; height: 32px; fill: var(--orange-volcan); }

.nav-desktop { display: none; }
.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-desktop a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.nav-desktop a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-volcan);
  transition: width 0.3s;
}
.nav-desktop a:hover:after, .nav-desktop a.active:after { width: 100%; }

.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--vert-foret);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  padding: 1rem;
}
.nav-mobile.active { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid #eee; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
}

@media (min-width: 992px) {
  .nav-desktop { display: block; }
  .hamburger { display: none; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 3rem 0; }
.section-alt { background-color: var(--blanc-casse); }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(45,106,79,0.7), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920') center/cover;
  color: white;
  text-align: center;
  margin-top: -80px;
  padding-top: 80px;
}
.hero h1 { color: white; font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .hero h1 { font-size: 3.5rem; } }

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--orange-volcan);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(231,111,81,0.3); color: white; }
.btn-secondary {
  background: white;
  color: var(--vert-foret);
  border: 2px solid var(--vert-foret);
}
.btn-secondary:hover { background: var(--vert-foret); color: white; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--gris-moyen);
}
.card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-facile { background: #d1fae5; color: #065f46; }
.badge-moyen { background: #fef3c7; color: #92400e; }
.badge-difficile { background: #fed7aa; color: #9a3412; }
.badge-expert { background: #fecaca; color: #991b1b; }
.card-text { flex-grow: 1; margin-bottom: 1rem; font-size: 0.95rem; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--vert-foret);
  background: white;
  color: var(--vert-foret);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--vert-foret);
  color: white;
}

/* Content page */
.page-header {
  background: linear-gradient(135deg, var(--vert-foret), var(--vert-clair));
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
  margin-top: -80px;
  padding-top: calc(80px + 4rem);
}
.page-header h1 { color: white; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
.breadcrumb a { color: white; text-decoration: underline; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 992px) { .content-grid { grid-template-columns: 2fr 1fr; } }

.prose { max-width: 75ch; }
.prose img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}
.info-table th {
  background: var(--vert-foret);
  color: white;
  padding: 1rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}
.info-table td { padding: 0.875rem 1rem; border-bottom: 1px solid #eee; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) { background: var(--blanc-casse); }

/* Sidebar */
.sidebar { }
.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}
.widget h3 { font-size: 1.25rem; margin-top: 0; margin-bottom: 1rem; color: var(--vert-foret); }
.widget ul { list-style: none; }
.widget li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.widget li:last-child { border-bottom: none; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}
.alert-warning { background: #fff3cd; border-color: #ffc107; color: #856404; }
.alert-info { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }
.alert-success { background: #d4edda; border-color: #28a745; color: #155724; }

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Blog */
.blog-meta { color: var(--gris-moyen); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-meta span { margin-right: 1rem; }

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--vert-foret); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--vert-foret);
}
textarea.form-control { min-height: 150px; resize: vertical; }

/* Adsense */
.ads-container {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: var(--blanc-casse);
  border-radius: 8px;
}
.ads-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gris-moyen);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background: var(--gris-fonce);
  color: #adb5bd;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer h4 { color: white; font-size: 1.1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: #adb5bd; }
.footer a:hover { color: var(--orange-volcan); }
.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}
.footer-bottom a { color: white; font-weight: 600; }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.lead { font-size: 1.25rem; color: var(--gris-moyen); }