/* Conteneur principal */
.recyclage-content {
  background-color: #fff;
  padding: 40px 20px;
  line-height: 1.7;
}

/* Sous-titres (h3) */
.recyclage-content h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: #1f2f2c;
  margin-top: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #366150;
  padding-left: 8px;
}

/* Paragraphes */
.recyclage-content p {
  color: #444;
  margin-bottom: 15px;
}

/* Titre principal - version desktop */
.recyclage-content .page-title {
  text-align: center;
  margin-top: 100px !important;
}

/* Adaptation mobile */
@media (max-width: 767px) {
  .recyclage-content .page-title {
    margin-top: 10px !important; /* réduit l’espace pour mobile */
    font-size: 1.9em;            /* ajuste la taille du texte si nécessaire */
    line-height: 1.2;            /* améliore la lisibilité sur petit écran */
  }
}


/* Images */
.recyclage-content img {
  margin-top: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recyclage-content img.shadow {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.recyclage-content img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Bouton d'appel à l'action */
.recyclage-content .btn-success {
  background-color: #366150;
  border-color: #366150;
  font-weight: 600;
  padding: 12px 25px;
  text-transform: uppercase;
}

.recyclage-content .btn-success:hover {
  background-color: #27463f;
  border-color: #27463f;
}

/* Galerie recyclage */
.recyclage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.recyclage-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recyclage-gallery figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.recyclage-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.recyclage-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(54,97,80,0.85); /* vert foncé canon */
  color: #fff;
  font-size: 0.95em;
  text-align: center;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recyclage-gallery figure:hover figcaption {
  opacity: 1;
}

.modal-header {
  border-bottom: none;
}

.modal-footer {
  border-top: none;
}

#formRecyclage label {
  font-weight: 600;
  color: #366150;
}

.modal-title {
  color: #fff; /* texte blanc */
}

.modal-header .close {
  color: #fff;
  opacity: 1; /* pleine opacité */
}
.modal-header .close:hover {
  color: #eee; /* blanc mat au survol */
}

.required {
  color: red;        /* couleur rouge */
  font-weight: bold; /* gras */
  margin-left: 4px;  /* petit espace après le texte */
}

/* Ajustement du titre sur mobile */
@media (max-width: 767px) {
  h2.page-title {
    margin-top: 10px !important;   /* force la marge réduite */
    padding-top: 0 !important;
  }
}

/* Bouton responsive */
.cta-btn {
  display: inline-block;
  width: 100%;          /* prend toute la largeur sur mobile */
  max-width: 300px;     /* limite la largeur sur grand écran */
  margin: 10px auto;    /* centre le bouton */
  padding: 12px 20px;   /* espace interne */
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
}

.cta-btn {
  display: block;
  margin: 20px auto;   /* centre le bouton */
  max-width: 400px;    /* limite la largeur sur desktop */
  width: 100%;         /* pleine largeur sur mobile */
}

.cta-btn {
  white-space: normal;   /* autorise le retour à la ligne */
  word-wrap: break-word; /* coupe le texte si nécessaire */
  text-align: center;    /* centre le texte */
  padding: 12px 20px;    /* espace interne suffisant */
  width: 100%;           /* pleine largeur sur mobile */
  max-width: 400px;      /* limite sur desktop */
  margin: 20px auto;     /* centre le bouton */
}

