/* ---------- Variables ---------- */

:root {
  --vert-foret: #3F5E3F;
  --vert-sauge: #7BAA7B;
  --vert-clair: #6f8f6f;
  --beige-clair: #F4F1E8;
  --beige-fond: #faf7f0;
  --brun-clair: #C8A878;
  --texte-principal: #333333;
  --blanc: #FFFFFF;
  --rouge: #c00;
}

/* ---------- Reset ---------- */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--beige-clair);
  color: var(--texte-principal);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Layout ---------- */

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--beige-clair);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-title {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vert-foret);
  text-decoration: none;
}

.site-subtitle {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--vert-sauge);
}

.main-nav a {
  font-weight: bold;
  margin-left: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--texte-principal);
}

.main-nav a:hover {
  color: var(--vert-foret);
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--beige-clair);
  padding: 2.5rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--vert-foret);
}

.hero-slogan {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--vert-sauge);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 2.5rem 0;
  background-color: var(--blanc);
  position: relative;
  z-index: 1;
}

.section-alt {
  background-color: var(--beige-fond);
}

.section h2 {
  font-family: "Playfair Display", serif;
  color: var(--vert-foret);
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ---------- Valeurs ---------- */

.valeurs-band {
  background-color: var(--vert-sauge);
  color: var(--blanc);
  text-align: center;
  padding: 1.5rem 0;
}

.valeurs-band p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Boutons ---------- */

.btn-primary {
  display: inline-block;
  background-color: var(--vert-foret);
  color: var(--blanc);
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #324a32;
  transform: translateY(-1px);
}

/* ---------- Contact ---------- */

.contact-form {
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: var(--beige-fond);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-form .form-row {
  margin-bottom: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--vert-foret);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--vert-sauge);
  box-shadow: 0 0 0 2px rgba(123,170,123,0.25);
  outline: none;
}

.contact-form input:valid,
.contact-form textarea:valid {
  border-color: var(--vert-sauge);
}

.contact-form input:invalid:focus,
.contact-form textarea:invalid:focus {
  border-color: #C66;
  box-shadow: 0 0 0 2px rgba(200, 80, 80, 0.2);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--beige-clair);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.footer-subline {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* ---------- Logos ---------- */

.footer-logos,
.nav-logos,
.test-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-logos img {
  height: 100px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-logos img:hover {
  opacity: 1;
}

.nav-logos img {
  height: 36px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logos img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.partner-logo {
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  margin-top: 0.5rem;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Section Affiliations : version élégante --- */

#affiliations {
  background-color: var(--beige-clair);
  padding: 3rem 0;
}

.affiliation-block {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliation-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.affiliation-block h3 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  color: var(--vert-foret);
  font-size: 1.3rem;
}

.affiliation-block p {
  color: var(--texte-principal);
  margin-bottom: 1rem;
}

.affiliation-block .partner-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Disclaimer ---------- */

/* Overlay — version finale propre */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh;
  padding-bottom: 5vh;
  overflow-y: auto;
  z-index: 999999 !important;
  animation: fadeIn 0.4s ease;
}
/* Modal */
.disclaimer-modal {
  position: relative;
  background: var(--beige-fond);
  padding: 2rem;
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: slideUp 0.4s ease;
  text-align: center;
  margin: 0;
  z-index: 9999999 !important;
}

/* Logo */
.modal-logo {
  width: 120px;
  margin-bottom: 1rem;
}

/* Contenu scrollable */
.disclaimer-content {
   
  text-align: left;
  margin: 1rem 0 1.5rem;
  padding-right: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Section Sorties optimisée --- */

.rando-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.rando-list li {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rando-date {
  font-size: 1.05rem;
  color: var(--vert-foret);
}

.rando-lieu {
  font-size: 0.95rem;
  color: var(--texte-principal);
}

.rando-link {
  margin-top: 0.3rem;
  font-weight: bold;
  color: var(--vert-sauge);
  text-decoration: underline;
}

.rando-link:hover {
  color: var(--vert-foret);
}

.rando-note {
  color: var(--rouge);
  font-style: italic;
  font-weight: bold;
  margin-top: 1.5rem;
  text-align: center;
}

/* --- Version Mix : cartes + icônes + style renforcé --- */

.rando-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem 0;
}

.rando-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rando-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rando-date {
  font-size: 1.1rem;
  color: var(--vert-foret);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rando-lieu {
  font-size: 0.95rem;
  color: var(--texte-principal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rando-link {
  margin-top: 0.4rem;
  font-weight: bold;
  color: var(--vert-sauge);
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rando-link:hover {
  color: var(--vert-foret);
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-top: 0.4rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 0.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-slogan {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .contact-form button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  .site-name {
    font-size: 1.1rem;
  }

  .site-subtitle {
    font-size: 0.8rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* Sorties : cartes plus larges, date sur une seule ligne */
.rando-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.rando-card { width: auto; max-width: none; }
@media (min-width: 600px) {
  .rando-date { white-space: nowrap; }
}