:root {
  --color-bg: #faf8f4;
  --color-text: #2b2620;
  --color-primary: #6a7f3f;
  --color-primary-dark: #4f5f2f;
  --color-border: #e0dcd2;
  --max-width: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--color-primary-dark); }

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.25rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 420px) {
  .site-title { font-size: 1.05rem; }
  .site-logo { width: 40px; height: 40px; }
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-text);
}

.site-header nav a:hover { color: var(--color-primary-dark); }

main.container { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }

.breadcrumbs {
  font-size: 0.85rem;
  color: #6b6355;
  margin-bottom: 1rem;
}

.breadcrumbs a { color: #6b6355; }
.breadcrumbs span { margin: 0 0.4rem; }

.hero-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #2b2620;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 48s infinite;
}

@keyframes hero-fade {
  0%, 100% { opacity: 0; }
  4%, 9% { opacity: 1; }
  12.5% { opacity: 0; }
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 18, 12, 0.85) 0%, rgba(20, 18, 12, 0.15) 65%);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.hero-banner-content h1 {
  margin-top: 0;
  font-size: 2.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-banner-content p { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.hero-banner-content strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

.card h2 { margin-top: 0; font-size: 1.1rem; }

.page-list { list-style: none; padding: 0; }

.page-list-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.page-list-item .meta { color: #6b6355; font-size: 0.9rem; }

.carte-section { margin-top: 2rem; }
.carte-section:first-child { margin-top: 0; }
.carte-section h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.carte {
  height: 480px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  isolation: isolate;
}

@media (max-width: 600px) {
  .carte { height: 360px; }
}

.carte .leaflet-control-layers label { line-height: 1.4; }

.carte-pastille {
  display: inline-block;
  margin: 0 0.4em 0 0.2em;
  vertical-align: middle;
}

.carte-pastille-point {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.carte-pastille-trait {
  width: 1.2em;
  height: 0.3em;
  border-radius: 2px;
}

.table-wrap { overflow-x: auto; margin-top: 1.5rem; }

.etapes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.etapes-table th,
.etapes-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.etapes-table th { color: #6b6355; font-weight: 600; }

.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.faq-item p { margin: 0; color: #4a4438; }

.source-note {
  margin-top: 1rem;
  color: #6b6355;
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  color: #6b6355;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-inner p { margin: 0; }

.footer-nav a {
  color: #6b6355;
}
