/* Titres spécifiques page Services */
.page-title {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--graphite);
}

/* Bouton hero plus impactant */
.btn--hero {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  box-shadow: 0 18px 40px rgba(12, 63, 46, 0.3);
  border-radius: 999px;
}

.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(12, 63, 46, 0.4);
}

/* Étapes */

.steps__timeline {
  position: relative;
  padding-left: 0.5rem;
}

.steps__line {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  width: 3px;
  height: calc(100% - 1.6rem);
  background: linear-gradient(to bottom, rgba(12, 63, 46, 0.2), rgba(12, 63, 46, 0.6));
}

.step {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step__marker {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 3px solid var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep);
}

.step__content {
  flex: 1;
}

.step__title {
  margin: 0 0 0.4rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
}

.step__text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .steps__timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
    padding-left: 0;
  }

  .steps__line {
    display: none;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .step__marker {
    margin-bottom: 0.6rem;
  }
}

/* ===========================
   PAGE SERVICES HLH
   =========================== */

.section--beige {
  background-color: var(--beige);
}

.section--soft {
  background-color: #f8f7f4;
}

/* Hero services */

.services-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.services-hero__text {
  max-width: 620px;
}

.services-hero__tags {
  margin: 0 0 1.2rem;
}

.services-hero__cta {
  margin-top: 0.4rem;
}

.services-hero__visual {
  display: flex;
  justify-content: flex-end;
}

.services-hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  max-width: 340px;
}

.services-hero-card__illu {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-sapin));
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.services-hero-card__icon {
  font-size: 2.4rem;
}

.services-hero-card__caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Étapes */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.step-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.step-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(12, 63, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.step-card__number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-deep);
}

.step-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--graphite);
}

.step-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Liste des services */

.services-list-section {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 63, 46, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}


.service-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Neutralise l’underline global sur les <a> : la carte entière est cliquable */
a.service-card--link:hover,
a.service-card--link:active,
a.service-card--link:visited {
  text-decoration: none;
  color: inherit;
}
a.service-card--link:hover * {
  text-decoration: none;
}
.service-card--link:focus-visible {
  outline: 3px solid rgba(12, 63, 46, 0.22);
  outline-offset: 4px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  border-color: rgba(12, 63, 46, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.90));
}



.service-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-card__tag {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background-color: rgba(12, 63, 46, 0.08);
  color: var(--green-deep);
  font-weight: 600;
}

.service-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--graphite);
}

.service-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}


.service-card .kw {
  color: var(--green-deep);
  font-weight: 600; /* pas trop gras */
}

.service-card__list li::marker {
  color: rgba(12, 63, 46, 0.75);
}

.service-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-card__list li + li {
  margin-top: 0.45rem;
}

.service-card__ideal {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid rgba(12, 63, 46, 0.22);
}

.service-card__ideal-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  font-weight: 600;
}

.service-card__ideal-text {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
}



/* Profils / combinaisons */

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.profile-card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--graphite);
}

.profile-card__text {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}


.service-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--green-sapin);
  text-decoration: none;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 63, 46, 0.06);
  border: 1px solid rgba(12, 63, 46, 0.10);
}


.service-card__cta-icon {
  display: inline-block;
  transform: translateX(0);
  transition: transform var(--transition-fast);
}

.service-card--link:hover .service-card__cta-icon {
  transform: translateX(6px);
}

.service-card--link:hover .service-card__cta {
  background: rgba(12, 63, 46, 0.10);
  color: var(--green-deep);
  border-color: rgba(12, 63, 46, 0.18);
}



/* FAQ */

/* Section FAQ avec image de fond + parallax doux (comme "Nos principaux services" sur Accueil) */
.section.services-faq {
  position: relative;
  background: #f9f7f3;
  overflow: hidden;
}

/* Image de fond + blur léger */
.section.services-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/services-questions.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  filter: blur(0.6px);
}

@media (min-width: 1024px) {
  .section.services-faq::before {
    background-attachment: fixed;
  }
}

/* Voile doux + touche "green" discrète pour harmoniser */
.section.services-faq::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(12, 63, 46, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(249, 247, 243, 0.55), rgba(249, 247, 243, 0.75));
  z-index: 1;
}

.services-faq .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 1023px) {
  /* Sur mobile on évite le fixed + la charge GPU (comme sur Accueil) */
  .section.services-faq::before,
  .section.services-faq::after {
    opacity: 0;
    background: none;
    background-image: none;
  }
}

.services-faq .faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.75rem;
}

.faq-item[open] {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

.faq-item__question {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--graphite);
  position: relative;
  padding-right: 1.4rem;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item[open] .faq-item__question::after {
  content: "–";
}

.faq-item__answer {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA final */

.services-cta-final {
  background: linear-gradient(135deg, var(--green-deep), var(--green-sapin));
  color: var(--white);
}

.services-cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.services-cta-final__text .section-title {
  color: var(--white);
}

.services-cta-final__text .section-intro {
  color: #f0f5f2;
}

.services-cta-final__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Responsive */

@media (max-width: 960px) {
  .services-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-hero__visual {
    justify-content: flex-start;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profiles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-cta-final__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Image du hero services */
.services-hero-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Steps illustrés avec images de fond dans les badges */
.steps--illustrated .step__marker {
  position: relative;
  overflow: hidden;
}

.steps--illustrated .step__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: none;
  opacity: 0.95;
}

.steps--illustrated .step__number {
  position: relative;
  z-index: 1;
  padding: 0.2rem 0.1rem;
}

/* Images différentes par étape */
.steps--illustrated .step:nth-of-type(1) .step__marker::before {
  background-image: url("../images/icon-service-visite.svg");
}

.steps--illustrated .step:nth-of-type(2) .step__marker::before {
  background-image: url("../images/icon-service-maprimerenov.svg");
}

.steps--illustrated .step:nth-of-type(3) .step__marker::before {
  background-image: url("../images/icon-service-suivi.svg");
}

.steps--illustrated .step:nth-of-type(4) .step__marker::before {
  background-image: url("../images/icon-service-cee.svg");
}



/* Hero services - ajustements visuels */
.services-hero-card {
  max-width: 380px;
}

.services-hero__reassurance {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.services-hero__reassurance-line strong {
  color: var(--green-deep);
}

.services-hero__scroll {
  margin-top: 0.8rem;
}

.services-hero__scroll-link {
  font-size: 0.88rem;
  color: var(--green-sapin);
  text-decoration: none;
}

.services-hero__scroll-link:hover {
  text-decoration: underline;
}

/* CTA final principal plus mis en avant */
.btn--cta-main {
  padding: 1rem 2.1rem;
  font-size: 1.02rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.btn--cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 960px) {
  .services-hero-card {
    max-width: 100%;
  }
}


/* Override: pas d'image dans les numéros, mais bulles illustrées pour chaque étape */
.steps--illustrated .step__marker {
  overflow: visible;
}

.steps--illustrated .step__marker::before {
  content: none;
}

.steps--illustrated .step {
  position: relative;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.2rem 1.4rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(1px);
  z-index: 0;
}

.steps--illustrated .step__content,
.steps--illustrated .step__marker {
  position: relative;
  z-index: 1;
}

/* Images différentes par étape, appliquées sur la bulle complète */
.steps--illustrated .step:nth-of-type(1)::before {
  background-image: url("../images/icon-service-visite.svg");
}

.steps--illustrated .step:nth-of-type(2)::before {
  background-image: url("../images/icon-service-maprimerenov.svg");
}

.steps--illustrated .step:nth-of-type(3)::before {
  background-image: url("../images/icon-service-suivi.svg");
}

.steps--illustrated .step:nth-of-type(4)::before {
  background-image: url("../images/icon-service-cee.svg");
}

/* Bandeau final Services : fond crème + CTA très visible */
.services-cta-final {
  background: var(--beige);
  color: var(--graphite);
}

.services-cta-final .section-title {
  color: var(--graphite);
}

.services-cta-final .section-intro {
  color: var(--text-muted);
}

.btn--cta-main {
  padding: 1.05rem 2.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.btn--cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Override 2: bulles avec image plein fond + voile de lisibilité renforcé */
.steps--illustrated .step {
  position: relative;
  border-radius: 18px;
  padding: 1.3rem 1.3rem 1.3rem 1.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

/* Image de fond propre à chaque étape */
.steps--illustrated .step:nth-of-type(1) {
  background-image: url("../images/services-step-1.jpg");
}

.steps--illustrated .step:nth-of-type(2) {
  background-image: url("../images/services-step-2.jpg");
}

.steps--illustrated .step:nth-of-type(3) {
  background-image: url("../images/services-step-3.jpg");
}

.steps--illustrated .step:nth-of-type(4) {
  background-image: url("../images/services-step-4.jpg");
}

/* Voile entre l’image et le texte pour une meilleure lisibilité */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 247, 244, 0.96),
    rgba(248, 247, 244, 0.9)
  );
  backdrop-filter: blur(3px);
  z-index: 0;
}

/* Texte et numéro au-dessus du voile */
.steps--illustrated .step__content,
.steps--illustrated .step__marker {
  position: relative;
  z-index: 1;
}

/* On s'assure qu'aucune image ne reste dans les numéros */
.steps--illustrated .step__marker::before {
  content: none !important;
  background-image: none !important;
}


/* Override 3: nettoyage des anciens pictogrammes + voile très lisible */
.steps--illustrated .step__marker::before {
  content: none !important;
  background: none !important;
  background-image: none !important;
}

.steps--illustrated .step {
  position: relative;
  border-radius: 18px;
  padding: 1.3rem 1.3rem 1.3rem 1.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

/* Image de fond propre à chaque étape (appliquée sur la carte elle-même) */
.steps--illustrated .step:nth-of-type(1) {
  background-image: url("../images/services-step-1.jpg");
}

.steps--illustrated .step:nth-of-type(2) {
  background-image: url("../images/services-step-2.jpg");
}

.steps--illustrated .step:nth-of-type(3) {
  background-image: url("../images/services-step-3.jpg");
}

.steps--illustrated .step:nth-of-type(4) {
  background-image: url("../images/services-step-4.jpg");
}

/* Voile crème bien marqué pour la lisibilité */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 247, 244, 0.98),
    rgba(248, 247, 244, 0.94)
  ) !important;
  backdrop-filter: blur(4px);
  z-index: 0;
}

/* Texte et numéro au-dessus du voile */
.steps--illustrated .step__content,
.steps--illustrated .step__marker {
  position: relative;
  z-index: 1;
}

/* On annule toute image de fond appliquée sur ::before plus haut dans le fichier */
.steps--illustrated .step:nth-of-type(1)::before,
.steps--illustrated .step:nth-of-type(2)::before,
.steps--illustrated .step:nth-of-type(3)::before,
.steps--illustrated .step:nth-of-type(4)::before {
  background-image: none !important;
}


/* Override 4: voile vertical moderne 0.65 -> 0.85 */
.steps--illustrated .step::before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(248,247,244,0.65),
    rgba(248,247,244,0.85)
  ) !important;
  backdrop-filter: blur(2px);
  z-index:0;
}


/* Override 5: voile plus visible + texte plus foncé dans les steps */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 247, 244, 0.8),
    rgba(248, 247, 244, 0.95)
  ) !important;
  backdrop-filter: blur(3px);
  z-index: 0;
}

.steps--illustrated .step__title,
.steps--illustrated .step__text {
  color: var(--graphite);
}



/* Override 6: gradient directement combiné avec l'image de fond */
.steps--illustrated .step {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* On coupe complètement l'ancien ::before pour éviter les conflits */
.steps--illustrated .step::before {
  content: none !important;
}

/* Chaque step : gradient + photo combinés */
.steps--illustrated .step:nth-of-type(1) {
  background-image: linear-gradient(
      to bottom,
      rgba(248, 247, 244, 0.7),
      rgba(248, 247, 244, 0.9)
    ),
    url("../images/services-step-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps--illustrated .step:nth-of-type(2) {
  background-image: linear-gradient(
      to bottom,
      rgba(248, 247, 244, 0.7),
      rgba(248, 247, 244, 0.9)
    ),
    url("../images/services-step-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps--illustrated .step:nth-of-type(3) {
  background-image: linear-gradient(
      to bottom,
      rgba(248, 247, 244, 0.7),
      rgba(248, 247, 244, 0.9)
    ),
    url("../images/services-step-3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps--illustrated .step:nth-of-type(4) {
  background-image: linear-gradient(
      to bottom,
      rgba(248, 247, 244, 0.7),
      rgba(248, 247, 244, 0.9)
    ),
    url("../images/services-step-4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Légère impression de douceur sur la carte complète */
.steps--illustrated .step {
  backdrop-filter: blur(1.5px);
}



/* Override 7: Gradient premium asymétrique */
.steps--illustrated .step:nth-of-type(1),
.steps--illustrated .step:nth-of-type(2),
.steps--illustrated .step:nth-of-type(3),
.steps--illustrated .step:nth-of-type(4) {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps--illustrated .step:nth-of-type(1) {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248,247,244,0.20) 0%,
      rgba(248,247,244,0.45) 40%,
      rgba(248,247,244,0.80) 100%
    ),
    url("../images/services-step-1.jpg");
}

.steps--illustrated .step:nth-of-type(2) {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248,247,244,0.20) 0%,
      rgba(248,247,244,0.45) 40%,
      rgba(248,247,244,0.80) 100%
    ),
    url("../images/services-step-2.jpg");
}

.steps--illustrated .step:nth-of-type(3) {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248,247,244,0.20) 0%,
      rgba(248,247,244,0.45) 40%,
      rgba(248,247,244,0.80) 100%
    ),
    url("../images/services-step-3.jpg");
}

.steps--illustrated .step:nth-of-type(4) {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248,247,244,0.20) 0%,
      rgba(248,247,244,0.45) 40%,
      rgba(248,247,244,0.80) 100%
    ),
    url("../images/services-step-4.jpg");
}

/* S'assurer qu'aucun ::before ne recouvre ce gradient */
.steps--illustrated .step::before {
  content: none !important;
}



/* Override 8: effet blur sur l'image de fond plutôt que voile coloré */
.steps--illustrated .step {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* On remet une image de fond "pure" sur chaque step */
.steps--illustrated .step:nth-of-type(1) {
  background-image: url("../images/services-step-1.jpg") !important;
}
.steps--illustrated .step:nth-of-type(2) {
  background-image: url("../images/services-step-2.jpg") !important;
}
.steps--illustrated .step:nth-of-type(3) {
  background-image: url("../images/services-step-3.jpg") !important;
}
.steps--illustrated .step:nth-of-type(4) {
  background-image: url("../images/services-step-4.jpg") !important;
}

.steps--illustrated .step:nth-of-type(1),
.steps--illustrated .step:nth-of-type(2),
.steps--illustrated .step:nth-of-type(3),
.steps--illustrated .step:nth-of-type(4) {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Calque au-dessus de l'image : léger voile + blur pour lisibilité */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 247, 244, 0.20),
    rgba(248, 247, 244, 0.50)
  );
  backdrop-filter: blur(6px);
  z-index: 0;
}

/* Texte et numéro au-dessus du calque flouté */
.steps--illustrated .step__content,
.steps--illustrated .step__marker {
  position: relative;
  z-index: 1;
}



/* Override 9: blur localisé derrière la zone de texte uniquement */

/* On supprime tout voile/blur global précédemment posé sur la carte */
.steps--illustrated .step::before {
  content: none !important;
}

/* Zone de contenu : base pour le blur localisé */
.steps--illustrated .step__content {
  position: relative;
}

/* Plaque floutée derrière le titre + texte */
.steps--illustrated .step__content::before {
  content: "";
  position: absolute;
  inset: -0.6rem -0.9rem -0.8rem -0.9rem; /* marges autour du bloc texte */
  border-radius: 16px;
  background: rgba(248, 247, 244, 0.42);
  backdrop-filter: blur(10px);
  z-index: 0;
}

/* Le contenu reste au-dessus */
.steps--illustrated .step__title,
.steps--illustrated .step__text {
  position: relative;
  z-index: 1;
}



/* Override 10: double blur subtil
   - léger blur global sur l'image de fond
   - blur plus discret sous le bloc texte
*/

/* Calque global floutant légèrement le fond de la carte */
.steps--illustrated .step {
  position: relative;
  overflow: hidden;
}

.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: -6px; /* pour éviter de voir les bords du blur */
  background: rgba(248, 247, 244, 0.06);
  backdrop-filter: blur(1.5px);
  z-index: 0;
}

/* Bloc texte : plaque verre dépoli plus légère */
.steps--illustrated .step__content {
  position: relative;
}

.steps--illustrated .step__content::before {
  content: "";
  position: absolute;
  inset: -0.4rem -0.8rem -0.6rem -0.8rem;
  border-radius: 16px;
  background: rgba(248, 247, 244, 0.32);
  backdrop-filter: blur(4px);
  z-index: 0;
}

/* Titre + texte au-dessus des calques */
.steps--illustrated .step__title,
.steps--illustrated .step__text {
  position: relative;
  z-index: 1;
}



/* Override 11: Mix A + C (blur + légère teinte + effet cinématique) */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: rgba(248, 247, 244, 0.10); /* micro teinte crème 10% */
  backdrop-filter: blur(3px) saturate(110%) contrast(95%);
  z-index: 0;
}



/* Override 12: correct overlay blur + opacity visible */
.steps--illustrated .step {
  position: relative;
  overflow: hidden;
}

/* Global image softening overlay */
.steps--illustrated .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248,247,244,0.12); /* image opacity ~0.88 */
  backdrop-filter: blur(3px) saturate(110%) contrast(95%);
  z-index: 0;
}

/* Lift content above blur */
.steps--illustrated .step > * {
  position: relative;
  z-index: 1;
}



/* Override 13: adjust background blur + stronger text plaque blur */

/* Reduce global background blur to 2px */
.steps--illustrated .step::after {
  backdrop-filter: blur(2px) saturate(110%) contrast(95%) !important;
}

/* Increase text plaque blur to 6px */
.steps--illustrated .step__content::before {
  backdrop-filter: blur(6px) !important;
}



/* Override 14: blur 8px + contour + ombre + hover 'glass-lift' */

/* Plaque verre dépoli sous le texte : blur plus fort */
.steps--illustrated .step__content::before {
  backdrop-filter: blur(8px) !important;
}

/* Card glass effect: contour + ombre douce */
.steps--illustrated .step {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

/* Hover: léger lift + ombre renforcée */
.steps--illustrated .step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}



/* Override 15: suppression de la plaquette et blur global renforcé */

/* On supprime la plaquette verre dépoli sous le texte */
.steps--illustrated .step__content::before {
  content: none !important;
  background: none !important;
  backdrop-filter: none !important;
}

/* Blur global plus fort sur toute la carte */
.steps--illustrated .step {
  position: relative;
  overflow: hidden;
}

.steps--illustrated .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 244, 0.14); /* micro teinte crème ~0.14 */
  backdrop-filter: blur(4px) saturate(110%) contrast(95%);
  z-index: 0;
}

/* Le contenu reste au-dessus de l'overlay */
.steps--illustrated .step > * {
  position: relative;
  z-index: 1;
}



/* Override 16: couche blanche 22% pour meilleure lisibilité */
.steps--illustrated .step::after {
  background: rgba(255,255,255,0.22) !important;
}



/* Override 17: glass ultra-clean + opacité blanche renforcée */

/* Cards: bordure utile + ombre pour bien faire ressortir les steps */
.steps--illustrated .step {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

/* Hover léger pour donner du relief */
.steps--illustrated .step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Voile verre dépoli global : blanc 50% + blur propre */
.steps--illustrated .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(5px) saturate(108%) contrast(100%);
  z-index: 0;
}

/* Contenu au-dessus du voile */
.steps--illustrated .step > * {
  position: relative;
  z-index: 1;
}



/* Override 18: retour à une opacité faible + lisibilité par "scrim" + poids de police, sans bordure blanche */

/* On retire le contour blanc (et on garde une ombre propre) */
.steps--illustrated .step {
  border: none !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10) !important;
}

/* Glass ultra-clean mais plus léger: voile blanc 0.20 + blur */
.steps--illustrated .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: blur(5px) saturate(108%) contrast(100%);
  z-index: 0;
}

/* Scrim doux (gradient) pour aider le texte SANS plaquette */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.10) 45%,
    rgba(255,255,255,0.24) 100%
  );
  z-index: 1;
}

/* Contenu au-dessus des calques */
.steps--illustrated .step > * {
  position: relative;
  z-index: 2;
}

/* Lisibilité: on renforce légèrement le poids sans tout mettre en gras */
.steps--illustrated .step__title {
  font-weight: 650; /* si la fonte supporte, sinon fallback vers 600/700 */
  letter-spacing: -0.01em;
}

.steps--illustrated .step__text {
  font-weight: 500;
}

/* Micro aide de contraste, très subtile (évite l'effet "gras agressif") */
.steps--illustrated .step__title,
.steps--illustrated .step__text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}



/* Override 19: rollback typo tweaks + overlay blanc 0.65 (priorité à la lisibilité) */

/* On retire le scrim (dégradé) */
.steps--illustrated .step::before {
  content: none !important;
  background: none !important;
}

/* Voile blanc plus fort */
.steps--illustrated .step::after {
  background: rgba(255, 255, 255, 0.65) !important;
}

/* On annule les tweaks typographiques agressifs */
.steps--illustrated .step__title,
.steps--illustrated .step__text {
  font-weight: inherit !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
}

/* On garde une ombre propre et sobre, sans contour */
.steps--illustrated .step {
  border: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}



/* Override 20: titres verts + mots-clés mis en valeur + image légèrement adoucie */

/* Titres de steps : vert foncé + gras */
.steps--illustrated .step__title {
  font-weight: 700;
  color: var(--green-dark, #0f3d2e);
}

/* Mots-clés mis en valeur dans le texte */
.steps--illustrated .step__text strong {
  font-weight: 600;
  color: var(--green-dark, #0f3d2e);
}

/* Image de fond : très léger blur + légère transparence */
.steps--illustrated .step {
  background-blend-mode: normal;
}

.steps--illustrated .step img,
.steps--illustrated .step::after {
  /* rien ici */
}

/* On agit directement sur le fond via un calque */
.steps--illustrated .step::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.05);
  z-index: 0;
}

/* Contenu au-dessus */
.steps--illustrated .step > * {
  position: relative;
  z-index: 1;
}



/* Override 21: titres plus grands + gras (force) + mots-clés <strong> visibles */

/* Titres steps: un poil plus grands + gras + vert */
.steps--illustrated .step__title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--green-dark, #0f3d2e) !important;
}

/* Mots-clés: gras modéré + vert */
.steps--illustrated .step__text strong {
  font-weight: 700 !important;
  color: var(--green-dark, #0f3d2e) !important;
}



/* Override 22: hiérarchie finale lisible et élégante */

/* Sous-titres steps : plus grands (+4px env), gras assumé */
.steps--illustrated .step__title {
  font-size: calc(1.05rem + 4px) !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--green-dark, #0f3d2e) !important;
}

/* Mots-clés : entre-deux (moins agressif que 700) */
.steps--illustrated .step__text strong {
  font-weight: 600 !important;
  color: var(--green-dark, #0f3d2e) !important;
}
