:root {
  --green-950: #102415;
  --green-900: #17351f;
  --green-800: #1f4d2b;
  --green-700: #2e6336;
  --green-600: #3c7b45;
  --cream: #f5f0e6;
  --sand: #dfd1b6;
  --brown: #6b4f3a;
  --ink: #172018;
  --muted: #61705f;
  --white: #fff;
  --shadow: 0 18px 45px rgba(16, 36, 21, .14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6
}

a {
  color: inherit
}

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

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

.skip {
  position: absolute;
  left: -999px
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: white;
  padding: 10px;
  border-radius: 8px
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 36, 21, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 4px
}

.brand strong {
  display: block;
  font-size: 1.05rem
}

.brand span {
  display: block;
  color: #d6e4d2;
  font-size: .82rem
}

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

.nav-links a,
.nav-links button {
  border: 0;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links .active {
  background: rgba(255, 255, 255, .14)
}

.menu-toggle {
  display: none;
  border: 0;
  background: white;
  color: var(--green-900);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: white;
  overflow: hidden
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 36, 21, .88), rgba(16, 36, 21, .55), rgba(16, 36, 21, .1)), url('../images/hero-cerf.jpg') center/cover;
  z-index: -2
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--cream));
  z-index: -1
}

.hero-content {
  max-width: 760px;
  padding: 85px 0 140px
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-weight: 800;
  color: #e9f4e6
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: .96;
  margin: 18px 0
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 650px;
  color: #edf4e9
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--green-700);
  color: white;
  text-decoration: none;
  border: 1px solid var(--green-700);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 77, 43, .22)
}

.btn.secondary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5)
}

.btn.light {
  background: white;
  color: var(--green-900);
  border-color: white
}

.section {
  padding: 86px 0
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  margin: 0;
  color: var(--green-950)
}

.section .lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 720px
}

.grid {
  display: grid;
  gap: 22px
}

.grid-2 {
  grid-template-columns: 1.05fr .95fr
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(23, 53, 31, .1);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow)
}

.card h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.22rem
}

.card p {
  margin: 0;
  color: var(--muted)
}

.photo-card {
  overflow: hidden;
  padding: 0
}

.photo-card img {
  height: 100%;
  min-height: 380px;
  width: 100%;
  object-fit: cover
}

.mission {
  position: relative;
  overflow: hidden
}

.mission .icon {
  font-size: 2rem
}

.badge {
  display: inline-flex;
  background: #e5efdf;
  color: var(--green-800);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem
}

.events-list {
  display: grid;
  gap: 16px
}

.event {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  align-items: center
}

.event-date {
  background: var(--green-800);
  color: white;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  font-weight: 900
}

.event-date span {
  display: block;
  font-size: .9rem;
  opacity: .85
}

.timeline {
  position: relative;
  padding-left: 22px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--sand)
}

.timeline-item {
  position: relative;
  margin: 0 0 18px;
  padding: 18px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 31, .1)
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 5px var(--cream)
}

.contact-wrap {
  grid-template-columns: .85fr 1.15fr
}

.info-list {
  display: grid;
  gap: 12px
}

.info-list div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 53, 31, .12)
}

.form {
  display: grid;
  gap: 14px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(23, 53, 31, .18);
  border-radius: 14px;
  background: white;
  font: inherit
}

.form textarea {
  min-height: 140px;
  resize: vertical
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .92rem
}

.map-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 53, 31, .12);
  overflow: hidden;
  background: white
}

.doc-grid {
  grid-template-columns: repeat(3, 1fr)
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.rules {
  columns: 2;
  column-gap: 22px
}

.rule-item {
  break-inside: avoid;
  background: white;
  border-radius: 18px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(23, 53, 31, .09)
}

.member-box {
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
  color: white
}

.member-box h2 {
  color: white
}

.login-card {
  max-width: 460px
}

.login-card input {
  width: 100%;
  padding: 14px 15px;
  border: 0;
  border-radius: 14px;
  margin: 7px 0;
  font: inherit
}

.dashboard {
  display: none;
  margin-top: 22px
}

.dashboard.show {
  display: grid
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4d7;
  color: #634900;
  border: 1px solid #e8c869;
  display: none
}

.alert.show {
  display: block
}

.footer {
  background: var(--green-950);
  color: white;
  padding: 54px 0 22px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px
}

.footer a {
  display: block;
  color: #dce9d8;
  text-decoration: none;
  margin: 6px 0
}

.legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #c5d3c2;
  font-size: .9rem
}

.mobile-only {
  display: none
}

.notice {
  background: #eef7ea;
  border-left: 5px solid var(--green-700);
  padding: 18px;
  border-radius: 16px;
  color: var(--green-900)
}

@media(max-width:900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-950);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow)
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    text-align: left;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .contact-wrap,
  .doc-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .event {
    grid-template-columns: 1fr;
  }

  .event-date {
    text-align: left;
  }

  .rules {
    columns: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 60px;
  }

  .photo-card img {
    min-height: 280px;
  }

  .mobile-only {
    display: block;
  }
}


/* Pages juridiques et bandeau cookies */
.page-hero {
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
  color: white;
  padding: 86px 0 70px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  margin: 0 0 14px;
}

.page-hero p {
  max-width: 780px;
  color: #eaf4e8;
  font-size: 1.08rem;
}

.legal-page {
  padding: 72px 0;
}

.legal-content {
  background: white;
  border: 1px solid rgba(23, 53, 31, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 54px);
}

.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 34px;
  color: var(--green-900);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin: 8px 0;
}

.legal-warning {
  background: #fff8e6;
  border-left: 5px solid #c48b1b;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 22px 0;
  color: #5d4111;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1040px;
  margin: auto;
  background: rgba(16, 36, 21, .97);
  color: white;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 18px;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: #d8e7d5
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.cookie-actions a {
  color: white;
  font-weight: 800
}

@media(max-width:760px) {
  .cookie-banner {
    display: none;
    align-items: stretch;
    flex-direction: column
  }

  .cookie-banner.show {
    display: flex
  }

  .cookie-actions {
    align-items: stretch
  }

  .cookie-actions .btn {
    width: 100%
  }
}