:root {
  --forest: #2f3a2c;
  --forest-dark: #212b1f;
  --rust: #b5502f;
  --rust-dark: #953f22;
  --cream: #f7f2e9;
  --cream-soft: #efe8da;
  --charcoal: #26241f;
  --white: #ffffff;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--forest-dark);
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.todo-flag {
  color: var(--rust-dark);
  background: #fbe6d9;
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover { background: var(--rust-dark); }

.btn-secondary {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest-dark);
}
.btn-secondary:hover { background: var(--forest-dark); color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled, .site-header.static-header {
  background: rgba(247, 242, 233, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.25s ease;
}
.logo svg { width: 62px; height: auto; display: block; }
.logo-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em;
  white-space: nowrap;
}
.site-header.scrolled .logo, .site-header.static-header .logo { color: var(--forest-dark); }

.main-nav { display: flex; gap: 2em; }
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--white);
  transition: color 0.25s ease;
}
.site-header.scrolled .main-nav a, .site-header.static-header .main-nav a { color: var(--charcoal); }
.main-nav a:hover { color: var(--rust); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: background 0.25s ease;
}
.site-header.scrolled .nav-toggle span, .site-header.static-header .nav-toggle span { background: var(--charcoal); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,43,31,0.45) 0%, rgba(33,43,31,0.55) 60%, rgba(33,43,31,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
  padding: 0 1.5em;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.8em;
  opacity: 0.9;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.4em;
}
.hero-tagline {
  font-size: 1.05rem;
  margin-bottom: 1.8em;
  opacity: 0.95;
}

/* Philosophy */
.philosophy {
  padding: 4.5em 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream-soft);
}
.philosophy-content {
  max-width: 640px;
  color: var(--forest-dark);
}
.philosophy-content p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}
.philosophy-cta {
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-size: 1rem !important;
  font-weight: 600;
  margin-top: 1em;
  color: var(--rust-dark);
}

/* Formats section */
.formats {
  padding: 5em 1.5em 3em;
  max-width: 1100px;
  margin: 0 auto;
}
.section-intro { text-align: center; max-width: 600px; margin: 0 auto 2em; }

.format-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
  margin-bottom: 3.5em;
}
.format-nav a {
  text-decoration: none;
  padding: 0.5em 1.1em;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-dark);
}
.format-nav a:hover { background: var(--forest); color: var(--white); }

.format {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 3em;
  box-shadow: 0 4px 20px rgba(38, 36, 31, 0.08);
  scroll-margin-top: 90px;
}
.format-banner {
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.format-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(33,43,31,0.75) 0%, rgba(33,43,31,0.05) 60%);
}
.format-banner h3 {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 1.5em;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.format-body { padding: 2em 2em 2.2em; }
.format-intro { font-size: 1.05rem; color: #4a4a42; }

.itineraries {
  display: grid;
  gap: 1.4em;
  margin: 1.8em 0;
}
.itinerary {
  padding: 1.2em 1.4em;
  background: var(--cream-soft);
  border-radius: 10px;
  border-left: 3px solid var(--rust);
}
.itinerary h4 { margin-bottom: 0.35em; font-size: 1.1rem; }
.itinerary p { margin: 0; font-size: 0.95rem; color: #4a4a42; }

.itinerary-with-image {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.4em;
  align-items: start;
}
.itinerary-with-image img { border-radius: 8px; width: 100%; height: auto; display: block; }
.itinerary-figure { margin: 0; display: flex; flex-direction: column; gap: 0.3em; }
.itinerary-figure figcaption { font-size: 0.7rem; color: #8a8578; text-align: right; }

.itinerary-sur-mesure {
  background: transparent;
  border-left-color: var(--forest);
  border: 1px dashed var(--forest);
}

.format-footer {
  margin-top: 2em;
  padding-top: 1.6em;
  border-top: 1px solid #e6ddc9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em 1.6em;
}
.format-price { font-size: 1.05rem; margin: 0; }
.format-infos { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: #6b675c; }
.format-lieu { margin: 0; font-size: 0.95rem; color: #4a4a42; }
.format-footer .btn { margin-left: auto; }

/* About */
.apropos {
  max-width: 1100px;
  margin: 2em auto 5em;
  padding: 0 1.5em;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3em;
  align-items: center;
  scroll-margin-top: 90px;
}
.apropos-image img { border-radius: 14px; box-shadow: 0 8px 24px rgba(38,36,31,0.15); }
.apropos-credential {
  font-weight: 600;
  color: var(--forest-dark);
}

/* CTA banner */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6em 1.5em;
  text-align: center;
}
.cta-banner-overlay { position: absolute; inset: 0; background: rgba(30, 24, 20, 0.55); }
.cta-banner-content { position: relative; z-index: 1; color: var(--white); max-width: 560px; margin: 0 auto; }
.cta-banner-content h2 { color: var(--white); }

/* Simple content page (e.g. Conditions générales) */
.page-header {
  padding: 8em 1.5em 1.5em;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.page-content {
  max-width: 700px;
  margin: 0 auto 6em;
  padding: 0 1.5em;
}
.page-content p { margin-bottom: 1em; }
.page-content h2 { font-size: 1.15rem; margin-top: 2em; }
.page-content ul { margin: 0 0 1em; padding-left: 1.2em; }
.page-content li { margin-bottom: 0.4em; }

/* Contact */
.contact {
  max-width: 700px;
  margin: 5em auto;
  padding: 0 1.5em;
  scroll-margin-top: 90px;
}
.contact-note { margin-top: 0.6em; }
.contact-form {
  background: var(--white);
  padding: 2.2em;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(38, 36, 31, 0.08);
}
.form-row { margin-bottom: 1.2em; display: flex; flex-direction: column; gap: 0.4em; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid #d8cfb9;
  border-radius: 8px;
  background: var(--cream);
}
.form-note { font-size: 0.85rem; color: #6b675c; margin-top: 1em; margin-bottom: 0; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2em 1.5em;
  background: var(--forest-dark);
  color: var(--cream);
  font-size: 0.85rem;
}
.site-footer a { color: var(--cream); text-decoration: underline; }
.footer-contact { margin-top: 0.4em; opacity: 0.85; }
.contact-note a { color: var(--rust); font-weight: 600; text-decoration: none; }
.contact-note a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 820px) {
  .apropos { grid-template-columns: 1fr; }
  .itinerary-with-image { grid-template-columns: 1fr; }
  .itinerary-with-image img { max-width: 280px; }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1em 1.5em;
    gap: 0.2em;
    display: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--charcoal); padding: 0.7em 0; }
  .nav-toggle { display: flex; }
  .format-footer .btn { margin-left: 0; width: 100%; text-align: center; }
}
