/* CONTENEUR */
.process-step {
  position: relative;
	aspect-ratio: 1 / 1;
	width:100%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

/* VARIANTE PORTRAIT */
.process-step.variant-portrait {
    aspect-ratio: 2 / 3 !important; /* Ratio vertical (Largeur / Hauteur) */
}
/* Ajustement optionnel : s'assurer que l'image couvre bien toute la nouvelle hauteur */
.process-step.variant-portrait .process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EFFET BUMP + OMBRE AU HOVER */
.process-step:hover {
  /*transform: translateY(-3px);*/
  box-shadow: 0 8px 18px rgba(0,0,0,0.25); /* ombre douce */
}

.process-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
  z-index: 2;
}

.process-step:hover::after {
  background: rgba(0,0,0,0.35); /* voile noir au survol */
}

/* IMAGE */
.process-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.process-bg img.process-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* ZOOM IMAGE AU HOVER */
.process-step:hover .process-bg img.process-image {
  transform: scale(1.1);
  filter: blur(6px);
}

/* DÉGRADÉ NOIR BAS FIXE (1/3 de l’image) */
.process-bg::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%; /* environ 1/3 */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
  pointer-events: none;
}

/* NUMÉRO OPTIONNEL */
.process-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #f28705;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* OPTION : numéro sans fond (juste le texte blanc) */
.process-number.no-bg {
  background: none;
  box-shadow: none;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6); /* pour rester lisible sur image */
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
}


/* MASQUER LE NUMÉRO AU HOVER */
.process-step:hover .process-number {
  opacity: 0;
  transform: scale(0.8);
}

/* TITRE INITIAL EN BAS A GAUCHE */
.process-title-initial {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  font-size: 22px !important;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
	line-height: 1.2em;
}

/* MASQUER LE TITRE INITIAL AU HOVER */
.process-step:hover .process-title-initial {
  opacity: 0;
  transform: translateY(20px);
}

/* CONTENU AU HOVER */
.process-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  text-align: center;
  color: #fff;
  z-index: 4; /* au-dessus du voile noir */
  transition: opacity 0.4s ease;
}

/* TEXTE AU HOVER */
.process-hover-text {
  font-size: 16px;
  line-height: 1.6;
	font-weight: 300;
  margin-bottom: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
	text-align: left;
}

/* Style texte intérieur hover */
.desc-expertise {
	text-align: left !important;
	justify-content: left !important;
  align-items: left !important;
}

/* BOUTON (variante 2) OLD */
/*.process-button {
  padding-right: 15px !important;
  padding-left: 15px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  color: #FFFFFF !important;
  border-radius: 60px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: rgba(255,255,255,0.12);
  border: 2px solid white;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.4s ease;
	text-align: left;
}*/

/* Style de base du bouton */
.process-button {
    display: inline-block;
    position: relative;
    padding: 1px 15px 1px 15px !important; /* Ajusté pour laisser place à l'icône à droite */
    color: #FFFFFF !important;
    border-radius: 60px;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background-color: rgba(255,255,255,0.12);
    border: 2px solid white !important;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: left;
    text-decoration: none;
}

.process-button:hover::after {
    opacity: 1;
    /*right: 15px;*/
}

/* Variante BLEUE */
.process-button.btn-blue:hover {
    background-color: #5191cd !important;
    border-color: #5191cd !important;
    color: #fff !important;
}

/* Variante VERTE */
.process-button.btn-green:hover {
    background-color: #009358 !important;
    border-color: #009358 !important;
    color: #fff !important;
}

/* Variante ORANGE */
.process-button.btn-orange:hover {
    background-color: #f28705 !important;
    border-color: #f28705 !important;
    color: #fff !important;
}

.process-step:hover .process-button {
  transform: translateY(0);
}

/* AFFICHAGE DU CONTENU AU SURVOL */
.process-step:hover .process-content {
  opacity: 1;
}

.process-step:hover .process-hover-text {
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .process-step {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .process-title-initial {
    font-size: 20px !important;
    bottom: 20px;
    left: 20px;
  }
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
