:root {
  --bg: #f3f0e8;
  --bg-deep: #e5e0d2;
  --ink: #1c241c;
  --muted: #5a6558;
  --brand: #2f5d3a;
  --brand-dark: #1f3f28;
  --accent: #c45c26;
  --card: rgba(255, 252, 246, 0.88);
  --line: rgba(28, 36, 28, 0.12);
  --shadow: 0 18px 50px rgba(28, 36, 28, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 93, 58, 0.18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  min-height: 100vh;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 240, 232, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 53px;
  object-fit: contain;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: rgba(255, 252, 246, 0.9);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-auth:hover,
.nav-auth.is-in {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.event-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: end;
  min-height: min(78vh, 640px);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 10ch;
  animation: rise 0.8s ease both;
}

.hero p {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
  animation: rise 0.8s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #f8f6ef;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  color: var(--brand-dark);
}

.section {
  padding: 2.5rem 0 3.5rem;
}

.section h1,
.section h2,
.panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.lede {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

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

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.panel li + li {
  margin-top: 0.35rem;
}

.statuts article h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.statuts article p,
.statuts article li {
  max-width: 58rem;
}

.flash {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.flash-success {
  background: rgba(47, 93, 58, 0.12);
  color: var(--brand-dark);
}

.flash-error {
  background: rgba(196, 92, 38, 0.14);
  color: #7a2e0f;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

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

.hp {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(47, 93, 58, 0.12);
  color: var(--brand-dark);
  vertical-align: middle;
}

h2 .badge {
  margin-left: 0.35rem;
  font-family: var(--font-body);
}

.badge-member {
  background: rgba(28, 36, 28, 0.08);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.panel-highlight {
  border-color: rgba(47, 93, 58, 0.28);
  background:
    linear-gradient(135deg, rgba(47, 93, 58, 0.08), transparent 55%),
    var(--card);
}

.panel-highlight h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.cta-pic {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.4fr 1fr;
  background:
    linear-gradient(135deg, rgba(47, 93, 58, 0.92), rgba(31, 63, 40, 0.96)),
    var(--brand);
  color: #f7f4ea;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.cta-pic h2,
.cta-pic p,
.cta-pic a {
  color: inherit;
}

.cta-pic p {
  margin: 0;
  opacity: 0.92;
}

.cta-pic .btn-primary {
  background: #f7f4ea;
  color: var(--brand-dark);
}

.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: #dfe6df;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.members-map {
  height: 420px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #dfe6df;
}

.contact-map {
  height: 320px;
  margin-top: 0.5rem;
}

.qr {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem;
}

.doc-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.doc-list li + li {
  margin-top: 0.35rem;
}

.comite-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.inline-check {
  font-weight: 400;
  display: inline;
  margin-right: 0.35rem;
}

.actions-cell form {
  margin-top: 0.25rem;
}

.actions-cell details {
  margin-bottom: 0.35rem;
}

.actions-cell summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
}

@media (max-width: 760px) {
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-end {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.25rem 0.75rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .cta-pic,
  .split,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
