/* 🌿 Titres de page */
.content h1 {
  color: var(--gris-fonce);
  font-size: 2em;
  margin-bottom: 0.2em;
}

/* 🧱 Grille des rubriques (À propos, etc.) */
.rubrique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

/* 🧾 Carte individuelle de rubrique */
.rubrique-card {
  background-color: #f9f9f9;
  border-left: 4px solid var(--vert-clair);
  padding: 1.2em;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.rubrique-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rubrique-card h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  line-height:1.2em;
  text-align:left;
  font-weight: 700;
}

.rubrique-card h2 a {
  color: var(--vert-fonce);
  font-size: 0.9em;
  line-height:0.8em;
  text-align:left;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rubrique-card h2 a:hover {
  color: var(--vert-clair);
}

.rubrique-card p {
  margin-bottom: 1em;
  font-size: 0.95em;
  line-height: 1.5;
}

.rubrique-card .button {
  align-self: flex-start;
  font-size: 0.9em;
  padding: 0.4em 0.8em;
}

.portrait-block {
  text-align: center;
  margin: 2rem 0;
}

.portrait {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
}


/* 🖼️ Bloc image en haut de page */
.image-block {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin: 0em 0;
  position: relative;
}

/* Teinte verte subtile en overlay */
.image-block::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 115, 70, 0.08); /* #1A7346 avec 8% d’opacité */
  pointer-events: none;
}


.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(90%);
  background-color: #1a7946;
  mix-blend-mode: multiply;
}

/* 📋 Listes numérotées stylisées */
section.content ol {
  list-style: none;
  counter-reset: item;
  padding-left: 2em;
  margin-bottom: 1.5em;
}

section.content ol li {
  position: relative;
  margin-bottom: 0.8em;
  padding-left: 2em;
}

section.content ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0.5em;
  top: 0;
  font-size: 1em;
  font-weight: 900;
  color: #85b64d;
}

/* 📌 Listes à puces personnalisées */
section.content ul {
  list-style: none;
  padding-left: 2em;
  margin-bottom: 1.5em;
}

section.content ul li {
  position: relative;
  margin-bottom: 0.8em;
  padding-left: 1.5em;
}

section.content ul li::before {
  content: "";
  position: absolute;
  left: 0.5em;
  top: 0.3em;
  width: 30px;
  height: 18px;
  background-image: url('../img/puce.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* 🏗️ Grille des secteurs */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

/* 🧩 Carte individuelle de secteur */
.sector-card {
  background-color: #f9f9f9;
  border: 1px solid var(--gris-clair);
  border-radius: 6px;
  padding: 1.2em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-align:left;
}

.sector-card h3 {
  margin-top: 0;
  font-size: 1.1em;
  color: var(--vert-fonce);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sector-card h3 i {
  font-size: 1.2em;
  color: var(--vert-fonce);
}

.sector-card .montant {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
}

.sector-card ul {
  padding-left: 1em;
  margin: 0;
}

/* 📅 Date de mise à jour */
.update-date {
  font-style:normal;
  color: var(--gris-fonce);
  margin-top: 0em;
  font-weight: 600;
 font-size:0.8em !important;
}

/* 📬 Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.3em;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid var(--gris-clair);
  border-radius: 4px;
  font-size: 1em;
}

/* 📍 Bloc d’infos contact */
.contact-info {
  margin-top: 3em;
  background-color: #f9f9f9;
  padding: 1.5em;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ⚠️ Alertes formulaire */
.alert {
  padding: 1em;
  margin-top: 1em;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.alert.success {
  background-color: #e6f4ea;
  color: var(--vert-fonce);
}

.alert.error {
  background-color: #fbeaea;
  color: #c00;
}

/* 🧭 Mise en page contact */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  margin-top: 2em;
  align-items: flex-start;
}

.contact-form-wrapper {
  flex: 1 1 500px;
  min-width: 300px;
}

.contact-info {
  flex: 0 0 320px;
  margin-top: 0;
  background-color: #f9f9f9;
  padding: 1.5em;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 📱 Responsive mobile */
@media screen and (max-width: 768px) {
  .rubrique-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .rubrique-card {
    padding: 1em;
    font-size: 0.95em;
  }

  .rubrique-card h2 {
    font-size: 1.2em;
  }

  .rubrique-card .button {
    font-size: 0.85em;
    padding: 0.5em 1em;
  }

  .contact-layout {
    flex-direction: column;
    gap: 2em;
  }

  .contact-form-wrapper,
  .contact-info {
    width: 100%;
    flex: none;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1em;
    padding: 0.6em;
    width: 90%;
    margin: auto auto;
  }

  .contact-info {
    font-size: 0.95em;
    padding: 1em;
    width: 90%;
    margin: 10px auto;
  }

  .image-block {
    height: 220px;
  }

  .image-cover {
    object-position: center;
    filter: none;
    mix-blend-mode: normal;
  }

  section.content ul,
  section.content ol {
    padding-left: 1em;
    margin-bottom: 1.2em;
  }

  section.content ul li,
  section.content ol li {
    font-size: 0.95em;
    line-height: 1.5;
    padding-left: 1em;
  }

  section.content ul li::before {
    left: 0.2em;
    top: 0.4em;
    width: 24px;
    height: 14px;
  }

  section.content ol li::before {
    left: 0;
    font-size: 0.9em;
  }
  @media screen and (min-width: 1024px) {
    .rubrique-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5em;
    }

    .rubrique-card {
      padding: 1em;
      min-height: 260px;
    }

    .rubrique-card h2 {
      font-size: 1.2em;
      margin-bottom: 0.4em;
    }

    .rubrique-card p {
      font-size: 0.9em;
      line-height: 1.4;
    }

    .rubrique-card .button {
      font-size: 0.85em;
      padding: 0.4em 0.8em;
    }
  }
