:root {
  --ink: #2C2416;
  --forest: #2C4A1E;
  --leaf: #3B6D11;
  --sage: #EAF3DE;
  --parch: #FAF7F0;
  --muted: #888780;
  --rouge: #A32D2D;
  --blanc: #FFFFFF;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--parch);
  color: var(--ink);
  line-height: 1.6;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

h2, h3 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--forest);
  margin-top: 30px;
  margin-bottom: 15px;
}

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessibilité : lien d'évitement, focus clavier, texte masqué visuellement */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10001;
  padding: 10px 16px;
  background: var(--blanc);
  color: var(--forest);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--leaf);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.submit-btn:focus-visible,
.footer-link-as-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}

a:focus-visible {
  text-decoration: underline;
}

.warn-strip a:focus-visible {
  outline-color: var(--blanc);
  outline-offset: 4px;
}

.footer-links .footer-link-as-btn:focus-visible {
  outline-color: var(--sage);
}

/* Warn Strip */
.warn-strip {
  background-color: var(--forest);
  color: var(--blanc);
  font-size: 12px;
  text-align: center;
  padding: 10px 20px;
}

.warn-strip a {
  color: var(--blanc);
  font-weight: bold;
  text-decoration: underline;
}

/* Header & Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
  font-family: 'Special Elite', cursive;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.nav-phone {
  font-weight: 700;
  color: var(--forest);
}

.link-external-operator {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf);
}

.badge-18 {
  background-color: var(--rouge);
  color: var(--blanc);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
}

.burger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  text-align: center;
  color: var(--blanc);
  min-height: 280px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 36, 22, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--blanc);
  font-size: 40px;
}

.stamp {
  font-family: 'Special Elite', cursive;
  display: inline-block;
  border: 2px solid var(--rouge);
  color: var(--rouge);
  padding: 10px 20px;
  transform: rotate(-2deg);
  margin-top: 20px;
  font-size: 18px;
  background: rgba(255,255,255,0.9);
}

/* Main Content */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background: var(--blanc);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  padding-top: 40px;
  padding-bottom: 40px;
}

#contenu-principal {
  scroll-margin-top: 100px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.breadcrumbs a {
  color: var(--forest);
}

/* Boxes */
.red-box {
  background-color: #fdf3f4;
  border-left: 4px solid var(--rouge);
  color: var(--rouge);
  padding: 15px 20px;
  margin: 20px 0;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
}

.green-box {
  background-color: var(--sage);
  border-left: 4px solid var(--leaf);
  color: var(--forest);
  padding: 15px 20px;
  margin: 20px 0;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.stat-item {
  background: var(--parch);
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 42px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* Map Section */
.map-section {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  align-items: flex-start;
}
.map-placeholder {
  flex: 1.5;
  background: var(--sage);
  border: 2px dashed var(--leaf);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  color: var(--forest);
  font-family: 'Caveat', cursive;
  font-size: 22px;
  text-align: center;
  padding: 20px;
}
.camp-list {
  flex: 1;
}
.camp-list ul {
  list-style: none;
}
.camp-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.camp-list li strong {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
  margin-right: 10px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}
th {
  background-color: var(--forest);
  color: var(--blanc);
  font-weight: 600;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin-top: 30px;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forest);
}
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background-color: var(--parch);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--leaf);
}
.btn {
  background-color: var(--leaf);
  color: var(--blanc);
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  background-color: var(--forest);
  text-decoration: none;
  color: var(--blanc);
}

.submit-btn {
  background-color: var(--leaf);
  color: var(--blanc);
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-family: inherit;
}

.submit-btn:hover {
  background-color: var(--forest);
  color: var(--blanc);
}

.rgpd-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--ink);
  color: var(--muted);
  padding: 40px 20px;
  font-size: 13px;
  text-align: center;
  margin-top: 60px;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--sage);
}

.footer-link-as-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: inherit;
  color: var(--sage);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 2px;
}

.footer-link-as-btn:hover {
  color: var(--blanc);
}

.footer-reg-list {
  list-style: none;
  margin: 30px 0 0 0;
  padding: 30px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-reg-list--primary {
  align-items: center;
}

.footer-reg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  outline-offset: 3px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-reg-link--tile {
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.footer-reg-link--tile:hover,
.footer-reg-link--tile:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.footer-reg-link:focus-visible {
  box-shadow: 0 0 0 2px #7eb8ff;
}

.footer-reg-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 44vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.footer-reg-logo--white {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

.footer-reg-logo--sos {
  height: 44px;
  max-width: min(140px, 32vw);
}

@media (max-width: 520px) {
  .footer-reg-logo {
    height: 36px;
    max-width: min(180px, 52vw);
  }

  .footer-reg-logo--sos {
    height: 36px;
    max-width: min(120px, 40vw);
  }
}

/* Bannière cookies (styles dédiés, sans handlers inline) */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--blanc);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.cookie-banner.cookie-banner--open {
  display: block;
}

.cookie-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.cookie-banner__text {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--sage);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  border: none;
}

.cookie-btn--accept {
  background: var(--leaf);
  color: var(--blanc);
}

.cookie-btn--accept:hover,
.cookie-btn--accept:focus-visible {
  opacity: 0.92;
}

.cookie-btn--refuse {
  background: transparent;
  color: var(--blanc);
  border: 1px solid var(--muted);
}

.cookie-btn--refuse:hover,
.cookie-btn--refuse:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* Desktop : zone de clic et repères visuels pour la navigation */
@media (min-width: 992px) {
  .nav-links a[href] {
    padding: 6px 4px;
    border-radius: 4px;
  }

  .nav-links a[href]:hover {
    background-color: rgba(59, 109, 17, 0.08);
    text-decoration: underline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stamp {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .burger {
    display: inline-flex;
  }

  .map-section {
    flex-direction: column;
  }
}
