:root {
  --primary: #2c5e3b;
  /* Vert nature */
  --secondary: #d68029;
  /* Orange sentier */
  --dark: #222222;
  --light: #f4f6f4;
  --lightDarker: #d4d4d4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Décale le défilement pour ne pas cacher le haut des sections sous le menu fixe */
  scroll-padding-top: 70px;
}

body {
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

/* 1. BANDEAU / ENTÊTE */
header {
  position: relative;
  color: var(--white);
  height: 200px;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  overflow: hidden;
}

header .title {
  position: absolute;
  top: 0;
  /* left: 25%; */
  width: 100%;
  text-align: center;
  font-size: 4.5rem;
}

header h2 {
  max-width: 50%;
}

header p img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

/* SECTIONS GENERIQUES */
section {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0.5rem auto 0 auto;
}

main {
  display: flex;
  justify-content: space-between;
}

main #prochaines-randos {
  width: 25%;
}
main .content {
  width: 75%;
}

/* 2. ZONE BIENVENUE */
#bienvenue {
  text-align: center;
  max-width: 800px;
}

#bienvenue p {
  font-size: 1.2rem;
  color: #555;
}

/* 3. PROCHAINES RANDOS */
#prochaines-randos {
  background-color: var(--white);
  border: 10px solid var(--light);
  border-radius: 20px;
  padding: 1.2rem 2rem;
}

.rando-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.rando-card {
  background: var(--light);
  border-radius: 8px;
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary);
}

.rando-card ion-icon {
  margin-right: 10px;
}

.rando-date {
  display: flex;
  align-items: center;

  color: var(--secondary);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.rando-titre {
  font-size: 1.3rem;
  margin: 0.5rem 0 0 1rem;
}

/* 4. TARIFS */
#tarifs {
  background-color: var(--white);
}

.tarif-desc {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 200;
}

.tarifs-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tarif-card {
  background: var(--white);
  padding: 2rem;
  padding-top: 0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  flex: 1;
  max-width: 350px;
  min-width: 280px;
}

.tarif-prix {
  font-size: 1.5rem;
  /* font-weight: bold; */
  color: var(--primary);
  margin: 1rem 0;
}

.tarif-prix span {
  color: var(--dark);
}

/* 5. CONTACT */
#contact {
  padding: 4rem 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-equipe {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--white);
  min-width: 200px;
  padding-bottom: 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
  overflow: hidden;
}

.contact-card p {
  padding: 0 1rem;
}

.contact-member-role {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.2rem;
  text-align: center;
  background-color: var(--lightDarker);
}

/* PIED DE PAGE */
footer {
  background-color: var(--dark);
  color: #999;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin: 0 0.7rem;
  }
}