:root {
  --green: #3fa746;
  --green-dark: #2d7d33;
  --blue: #1d6fa5;
  --blue-dark: #155580;
  --orange: #f5a623;
  --ink: #223028;
  --paper: #f6f8f5;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* --- Bandeau de navigation --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.menu a {
  text-decoration: none;
  color: #4a554e;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.menu a:hover { background: #eef4ef; color: var(--green-dark); }
.menu a.active { color: var(--blue); background: #eaf3fa; }

/* --- Hero photo --- */
.hero {
  position: relative;
  min-height: 46vh;
  background-image: url("assets/hero-rivesaltes.jpg");
  background-size: cover;
  background-position: center 65%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  width: 100%;
  height: 100%;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(20,40,30,0.35) 0%, rgba(20,40,30,0.15) 40%, rgba(246,248,245,1) 100%);
}
.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero .tagline {
  margin: 0.4rem 0 0;
  color: #eafaf0;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* --- Carte de contenu --- */
.card {
  width: 100%;
  max-width: 480px;
  margin: -2.5rem auto 2rem;
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(29, 111, 165, 0.12), 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.intro {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #445048;
  margin: 0 0 1.75rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.link .icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
}
.link .icon svg { width: 100%; height: 100%; fill: currentColor; }

.facebook  { background: #1877F2; }
.instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.mastodon  { background: #6364FF; }
.bluesky   { background: #0085ff; }
.email     { background: linear-gradient(90deg, var(--green), var(--green-dark)); }

/* --- Pages placeholder (actualités, événements, etc.) --- */
.placeholder {
  max-width: 560px;
  margin: 3rem auto;
  padding: 2.5rem 1.75rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(29, 111, 165, 0.1);
  text-align: center;
}
.placeholder h2 {
  color: var(--blue-dark);
  margin-top: 0;
}
.placeholder p { color: #556058; line-height: 1.6; }
.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

footer.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #7a8580;
  padding: 1.5rem 1rem 2.5rem;
}

@media (max-width: 400px) {
  .card { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .hero h1 { font-size: 2rem; }
}
