:root {
  --bg: #0d1117;
  --text: #c9d1d9;
  --green: #238636;
  --green-hover: #2ea043;
  --blue: #58a6ff;
  --box: #161b22;
  --font: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-align: center;
}

/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--box);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-left {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-right a {
  margin-left: 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.buttons a {
  flex: 1 1 120px;
  text-align: center;
}

/* Section liens secondaires */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.actions a {
  flex: 1 1 200px;
  text-align: center;
}

/* Responsive fix pour mobile */
@media (max-width: 600px) {
  .buttons,
  .actions {
    flex-direction: column;
    align-items: center;
  }

  .buttons a,
  .actions a {
    width: 100%;
    max-width: 280px;
  }
/* Liens vers services externes */
.nav-link {
  background: var(--green);
  color: white;
}

.nav-link:hover {
  background: var(--green-hover);
}

/* Actions communautaires internes */
.nav-action {
  background: #3b3f58;
  color: #ffffffd0;
  border: 1px solid #58a6ff50;
}

.nav-action:hover {
  background: #4a4f6d;
  color: #ffffff;
}

/* === PAGE CONTENT === */
.container {
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
}

.banner {
  width: 100%;
  max-width: 600px;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #58a6ff33;
}

h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === EVENTS SECTION === */
#event-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

#event-container section {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: var(--box);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000030;
  text-align: center;
}

#event-container h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--blue);
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event {
  font-size: 1.1rem;
  margin: 0.75rem 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: inline-block;
  background-color: #161b22;
  box-shadow: 0 0 4px #00000022;
  font-weight: bold;
}

.event.prévu {
  color: #d1fadf;
  background-color: #1a472a;
}

.event.annulé {
  color: #fad1d1;
  background-color: #471a1a;
}

.event.passé {
  color: #d1d5da;
  background-color: #2d2d2d;
}

.event-heading {
  margin-top: 3rem;
  font-size: 1.6rem;
  color: var(--blue);
}