body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4fdf6;
  color: #1b4332;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1b5e20;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

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

nav {
  margin-top: 0;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: max-height 0.4s;
}

nav a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: #388e3c;
  color: #c8e6c9;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: 1rem;
}

.hamburger span {
  height: 4px;
  width: 28px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #2e7d32;
}
h1 {
  color: white;
}

input, textarea {
  width: 90%;
  max-width: 500px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  margin-top: 10px;
  padding: 0.8rem 1.5rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1b5e20;
}

.button {
  margin-top: 10px;
  padding: 0.8rem 1.5rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.button:hover {
  background-color: #1b5e20;
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
  z-index: 1;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Embellissement de la carte d'information */
.card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10), 0 1.5px 6px rgba(46, 125, 50, 0.08);
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 500px;
  transition: box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(44, 62, 80, 0.18), 0 2px 8px rgba(46, 125, 50, 0.12);
}

.card p {
  margin: 0.7rem 0;
  font-size: 1.08rem;
  color: #2e7d32;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.card p:first-child {
  font-weight: bold;
  color: #1b4332;
  font-size: 1.15rem;
}

.card img {
  display: block;
  margin: 1.5rem auto 0 auto;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
  border: 2px solid #c8e6c9;
  transition: transform 0.2s;
}

.card img:hover {
  transform: scale(1.03) rotate(-1deg);
}

.card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #a5d6a7 60%, transparent 100%);
  opacity: 0.25;
  z-index: 0;
}

.card p, .card img {
  position: relative;
  z-index: 1;
}


main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Cartes forum */
.forum-list {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.forum-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.forum-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
}

.forum-info {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.forum-title {
  font-weight: bold;
  color: #1b4332;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.forum-map {
  width: 220px;
  min-width: 180px;
  background: #c8e6c9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-map iframe {
  border: 0;
  width: 100%;
  height: 160px;
  border-radius: 0 16px 16px 0;
}

/* Images forum à droite */
.forum-img {
  width: 220px;
  min-width: 180px;
  background: #c8e6c9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.forum-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
  border: 2px solid #c8e6c9;
}

/* Responsive */
@media (max-width: 1198px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
  }
  nav ul {
    flex-direction: column;
    background: #1b5e20;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 10;
  }
  nav ul.open {
    max-height: 400px;
    padding-bottom: 1rem;
    padding-top: 10px;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 503px) {
  header {
    padding: 1rem 0.5rem;
    text-align: left;
  }
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    gap: 0;
  }
  .navbar h1 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .hamburger {
    display: flex;
    margin-left: 0.5rem;
    margin-right: 0;
    width: 32px;
    height: 32px;
  }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #1b5e20;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
  }
  nav ul.open {
    max-height: 600px; /* assez grand pour tous les liens */
    padding-bottom: 1rem;
    padding-top: 10px;
    transition: max-height 0.4s;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-size: 1.05rem;
  }
}



/* ...existing code... */

/* Badge Référent */
.forum-card .answers .referent-badge,
.forum-card .referent-badge {
  background: #388e3c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.85em;
  margin-left: 6px;
  display: inline-block;
}

/* Badge Résolu */
.forum-card .resolved-badge {
  background: #a5d6a7;
  color: #1b4332;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  margin-left: 8px;
  display: inline-block;
}

/* Bouton "Merci" (like) */
.forum-card button[onclick^="likeAnswer"] {
  background: #c8e6c9;
  color: #1b4332;
  font-size: 0.95em;
  padding: 2px 10px;
  margin-right: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.forum-card button[onclick^="likeAnswer"]:hover {
  background: #a5d6a7;
}

/* Formulaire de réponse */
.forum-card form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.forum-card form input,
.forum-card form textarea {
  width: 100%;
  max-width: 350px;
  font-size: 1em;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  padding: 0.5rem;
}

/* Responsive forum-card */
@media (max-width: 700px) {
  .forum-card {
    flex-direction: column;
  }
  .forum-img img {
    border-radius: 0 0 16px 16px;
  }
}



/* Embellissement du select */
select, #categoryFilter {
  background: #e8f5e9;
  color: #1b4332;
  border: 1.5px solid #a5d6a7;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: border-color 0.2s;
  outline: none;
}
select:focus, #categoryFilter:focus {
  border-color: #388e3c;
  background: #c8e6c9;
}

/* Boîte jolie pour chaque réponse */
.answers > div {
  background: linear-gradient(120deg, #e8f5e9 80%, #f1f8e9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  margin-bottom: 0.7rem;
  padding: 0.8rem 1.2rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.answers > div:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
}

/* Nom de l'auteur et badge dans la réponse */
.answers > div span {
  vertical-align: middle;
}

/* Pour éviter que le bouton "Merci" déborde */
.answers > div button {
  margin-top: 0.3rem;
}

/* Responsive pour le select */
@media (max-width: 700px) {
  select, #categoryFilter {
    width: 100%;
    margin: 0.5rem 0 0 0;
  }
}

/* Boîte pour le formulaire de réponse sur une ligne */
.forum-card form {
  background: #f1f8e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: row;      /* <-- sur une ligne */
  gap: 0.5rem;
  align-items: center;      /* <-- pour centrer verticalement */
}


.forum-card form input,
.forum-card form textarea {
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 1em;
  width: auto;
  flex: 1 1 0;
  margin: 0;
  resize: vertical;
  min-width: 80px;
  max-width: 180px;
}

.forum-card form textarea {
  min-width: 120px;
  max-width: 220px;
  height: 2.2em;
}

.forum-card form button {
  align-self: flex-start;
  margin-top: 0;
  white-space: nowrap;
}


/* ...existing code... */

@media (max-width: 600px) {
  .forum-card form {
    flex-direction: column;
    max-width: 100%;
    padding: 0.8rem 0.6rem;
    gap: 0.4rem;
  }

  .forum-card form input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 1em;
  }

  .forum-card form textarea {

    font-size: 1em;
    height: 2.5em;
    min-height: 80px;
    width: fit-content;
  }

  .forum-card form button {
    width: 100%;
    margin-top: 0.3rem;
  }
}


/* ...existing code... */

/* FAQ Styles */
.faq-list {
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: linear-gradient(120deg, #e8f5e9 80%, #f1f8e9 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #1b4332;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 1.1rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #a5d6a7;
}

.faq-question:hover {
  background: #c8e6c9;
}

.faq-icon {
  font-size: 1.7em;
  color: #388e3c;
  margin-left: 1.2rem;
  font-weight: bold;
  transition: color 0.2s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #f1f8e9;
  color: #2e7d32;
  font-size: 1.05rem;
  padding: 0 1.5rem;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  border-radius: 0 0 16px 16px;
}

.faq-answer.open {
  padding: 1.1rem 1.5rem;
  max-height: 400px;
}

.faq-answer ul {
  margin: 0.5em 0 0 1.2em;
  padding: 0;
}

.faq-answer a {
  color: #1b5e20;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .faq-list {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  .faq-question, .faq-answer {
    font-size: 1em;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* ...existing code... */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.event-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(120deg, #e8f5e9 80%, #f1f8e9 100%);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.event-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
}

.event-date {
  background: #388e3c;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 1.2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.event-day {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
}

.event-month {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.event-info {
  flex: 1;
  padding: 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-info h3 {
  margin: 0 0 0.5rem 0;
  color: #1b4332;
  font-size: 1.25rem;
}

.event-info p {
  margin: 0.2rem 0;
  color: #2e7d32;
  font-size: 1.05rem;
}

/* Formulaire événement */
.event-form {
  background: #f1f8e9;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  padding: 1.5rem 2rem;
  margin: 2rem auto 1rem auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.event-form input,
.event-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
}

.event-form button {
  align-self: flex-end;
  padding: 0.8rem 1.5rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.event-form button:hover {
  background-color: #1b5e20;
}

@media (max-width: 700px) {
  .events-list {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  .event-card {
    flex-direction: column;
  }
  .event-date {
    flex-direction: row;
    min-width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1.2rem;
  }
  .event-info {
    padding: 1rem 1.2rem;
  }
  .event-form {
    padding: 1rem 0.7rem;
  }
}


/* Ajoutez ceci dans style.css */
.inscription-btn {
    margin-top: 0.5rem;
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.inscription-btn:hover {
    background: #388e3c;
}

/* Beautify Mon composteur panel */
.mon-composteur-panel {
  margin-top: 2em;
  padding: 2em 1.5em;
  background: linear-gradient(120deg, #e8f5e9 60%, #f1f8e9 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(60,120,60,0.08);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.composteur-flex {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.composteur-card {
  flex: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(60,120,60,0.07);
  padding: 1em 1.5em;
  min-width: 250px;
}

.composteur-card h3 {
  margin-top: 0;
  color: #388e3c;
  font-size: 1.2em;
}

.composteur-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.composteur-card li {
  margin-bottom: 0.5em;
  font-size: 1em;
}

.composteur-horaires {
  flex: 1;
  background: #f9fbe7;
  border-radius: 12px;
  padding: 1em 1.2em;
  min-width: 180px;
  box-shadow: 0 1px 6px rgba(60,120,60,0.04);
}

.composteur-horaires h4 {
  margin-top: 0;
  color: #689f38;
  font-size: 1.1em;
}

.composteur-horaires ul {
  padding-left: 1em;
  margin: 0.5em 0 0 0;
}

.checklist {
  margin-top: 1em;
  background: #fff;
  border-radius: 10px;
  padding: 1em 1.5em;
  box-shadow: 0 1px 6px rgba(60,120,60,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.checklist label {
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.checklist input[type="checkbox"] {
  accent-color: #43a047;
  width: 1.1em;
  height: 1.1em;
}