/* ===== HERO ===== */
.hero-treatments {
  position: relative;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
  text-shadow: 3px 3px 5px black;
    height: 35vh;
    width: 100%;

    background-image: url("../images/header2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-treatments .hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-treatments h1 {
  font-size: 3rem;
	color: white;
}

.hero-treatments p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== SECTIONS TRAITEMENTS ===== */
.treatment-section {
  padding: 1rem 1rem;
  background: #f8f9fb !important;
}

.treatment-section.alternate {
    background-color: #FFFFFF !important;
}

.treatment-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding:10px;
}

.treatment-section h2 {
  color: var(--main-color, #0e4a7b);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.treatment-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.2rem;
}

/* ===== ANCRE & MENU DROPDOWN ===== */
.dropdown-content li a {
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-treatments h1 {
    font-size: 1.9rem;
  }
  .treatment-section h2 {
    font-size: 1.6rem;
  }
}

.avant-apres-section {
  padding-top : 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
      background: var(--ivory);
	  height:200px;
}

.avant-apres-section img{
	  height:200px;
	  
}
.before-after-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: grab;
   height:200px;
  min-width:30%;
}

.before-after-container img {
  width:100%;
  position: absolute;
  top: 0;
  object-fit: cover;
  user-select: none;
  height:200px;
}

.before-after-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ garantit le centrage sans étirement */
  object-position: center;
  user-select: none;
}

/* ✅ image après coupée correctement et centrée */
.after-image {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease-out;
}

/* ✅ Sélecteur amélioré */
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px; /* plus large */
  height: 100%;
   background: var(--corail); 
  cursor: ew-resize;
  transform: translateX(-50%);
}

/* ✅ Ajout d’un bouton rond pour visualiser la poignée */
.slider-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: var(--corail);
  border: 3px solid var(--corail);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Image à gauche */
.container img{
  max-width: 100%;
  border-radius: 20px;
  object-fit: cover;
      background: #f8f9fb;
}

.steps-section {
  padding: 1rem 1rem 1rem 1rem;
  background-color: #f8f9fb; /* fond ivoire ou couleur douce */
}

.steps-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: #404040;
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.step-number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: var(--corail, #FF8A80); /* utilise ta couleur corail pastel */
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  color: #404040;
  margin-bottom: 1rem;
}

.step p {
  color: #666666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Réactif mobile */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.treatments {
  padding: 60px 20px;
  text-align: center;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.treatment-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  /* border-top: 4px solid #FF8A80; /* corail */
}

.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.treatment-card h3 {
  color: #404040;
  margin-bottom: 10px;
}

.treatment-card p {
  color: #666;
}

.treatment-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: auto;
}

.treatment-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 30px;
}

.treatment-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #FF8A80;
  font-weight: bold;
}

.treatment-detail {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Bloc image + texte */
.intro-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.intro-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
}

.intro-text h2 {
  margin-bottom: 15px;
}

.intro-text p {
  line-height: 1.6;
}

/* Liste */
.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 30px;
}

.detail-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #FF8A80; /* corail */
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-block {
    flex-direction: column;
    text-align: center;
  }


}

.intro-image {
  flex: 0 0 300px; /* largeur fixe propre */
  .intro-image {
  background: #FFF8F1;
  padding: 10px;
  border-radius: 12px;
}
}

.intro-image img {
  width: 100%;
  height: 300px; /* hauteur minimum */
  object-fit: contain; /* IMPORTANT pour schéma */
  border-radius: 12px;
}
.intro-text {
  background: #f8f9fb;
  padding: 20px;
  border-radius: 12px;
}

h2 {
  font-size: 2rem;
  color: #404040;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

/* Ligne décorative corail */
h2::after {
  content: "";
  width: 50%;
  height: 3px;
  background-color: #FF8A80; /* corail pastel */
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.treatment-item {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.treatment-header h3 {
  color: #404040;
  margin-bottom: 10px;
}

.treatment-header p {
  color: #666;
  max-width: 600px;
}

.treatment-content {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.treatment-text {
  flex: 1;
  min-width: 250px;
}

.treatment-visual {
  flex: 1;
  max-width: 500px;
}

.treatment-visual img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  max-height:200px;
}

.hh3 {
  font-size: 1.4rem;
  color: #404040;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 6px;
}

/* Ligne plus petite et plus discrète */
.hh3::after {
  content: "";
  width: 30%;
  height: 2px;
  background-color: #FF8A80; /* corail */
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.before-after-title {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #404040;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid #eee;
  display:block;
}


/* Layout des sliders */
.treatment-content-t {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width:100%;
}

/* Chaque bloc */
.before-after-item-t {
  text-align: center;
}

/* Titre */
.before-after-title {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #404040;
}

/* Responsive */
@media (max-width: 900px) {
  .treatment-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .treatment-content {
    grid-template-columns: 1fr;
  }
}