/* === STYLES PAGES SOLUTIONS === */
.solution-intro {
  margin-bottom: 60px;
}

.solution-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2%;
  align-items: flex-start;
}

.solution-flex img {
  width: 48%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.solution-flex .text {
    width: 48%;
}

.solution-text {
  margin-top: 40px;
}

.solution-etapes {
  margin-top: 80px;
}

.solution-etapes h2.center {
  text-align: center;
  margin-bottom: 50px;
}

.etape {
  margin-bottom: 60px;
}

.etape h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #222;
}

.etape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.etape-grid img {
  width: 100%;
  border-radius: 8px;
}

.solution-conclusion {
  margin-top: 60px;
  background: #fafafa;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 48%;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .solution-flex img,
  .gallery {
    width: 100%;
  }
}

/* --- Ajustements et ajouts pour toutes les solutions --- */

/* Conteneur général */
section.intro, 
section.etapes, 
section.conclusion {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Titres */
section.etapes h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #222;
}

section.etapes h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #c2a661;
  padding-left: 10px;
}

/* Paragraphes */
section p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Grilles & galeries */
section .grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

section .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  width: 100%;
}

section .gallery img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section .gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Figures */
section figure {
  text-align: center;
  margin: 0;
}

section figure figcaption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
}

/* Etapes */
.etape {
  background: #fafafa;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.etape:nth-child(even) {
  background: #fff;
}

/* Images standardisées */
.etape img, .intro img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Conclusion */
section.conclusion {
  text-align: center;
  background: #f9f9f9;
  border-top: 3px solid #c2a661;
  border-radius: 0 0 12px 12px;
  padding: 60px 20px;
}

section.conclusion p {
  font-size: 1.1rem;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  section.intro .grid img,
  section.etapes .grid img {
    width: 100% !important;
  }

  .etape {
    padding: 20px;
  }

  section.etapes h2 {
    font-size: 1.6rem;
  }

  section.etapes h3 {
    font-size: 1.2rem;
  }

  .gallery img {
    max-width: 180px;
  }
}
