/* ------------CSS pour carte projet � droite  --------------------*/

.ref-card {
  display: flex;
  flex-direction: row;
  border: 1px solid #d9d9d9;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* height: 380px; */
  width: 100%;
  position: relative;
  min-height: 420px;
  /* background: linear-gradient(133deg, hsl(241 50% 51% / 1) 2%, rgb(38 255 0) 75%); */
  /* background: linear-gradient(122deg, hsl(227 51% 39% / 1) 2%, rgb(255 162 0 / 65%) 100%); */
  /* width: 1000px */
  /* background-color: #eeeeee; */
  /* border-right: #63de10; */
}

.right-content {
  width: 100%;
  background-color: #ffffff;

  padding: 40px;
  position: relative;
  border-radius: 24px;

  overflow: hidden; /* essentiel : masque la bande dans les coins arrondis */

  /* SUPPRIMER CETTE LIGNE : La box-shadow cr�e la duplication */
  /* box-shadow: inset -8px 0 0 0 #f78c1f; */
}

/* .right-content:hover {
        border-right: 8px solid #1a1a1a;
    } */

/* NOUVEL �L�MENT : Cr�er la bande orange fixe (le fond) */
.right-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  /* 8px de large */
  height: 100%;
  /* 100% de haut */
  /* background-color: #f78c1f; */
  /* La couleur orange de base */
  z-index: 1;
  /* S'assurer qu'il est en dessous de l'animation noire (z-index par d�faut est 0) */
}

/* 2a. Cr�ation de la Bande Noire (cach�e initialement) */
.right-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  /* �paisseur de la bande */
  background-color: #fd8a17;
  /* Couleur finale (noir) */

  /* Hauteur initiale � 0% (cach�e) */
  height: 0;

  /* S'assurer qu'il est au-dessus du fond orange */
  z-index: 2;

  /* Animation: la hauteur grandit sur 0.25s */
  transition: height 0.18s ease-out;
}

/* 2b. �tat au Survol: Affiche la Bande */
.ref-card:hover .right-content::after {
  /* La hauteur passe de 0% � 100% au survol */
  height: 100%;
}

.right-content p {
  color: #444;
  line-height: 1.6;
  border-radius: 24px;
}

.right-content em {
  color: #666;
}

.ref-card .technologie {
  display: flex;
  flex-direction: row;
  max-width: 600px;
  list-style: none;
  padding: 0px;
  gap: 10px;
  color: #df7e3a;
  font-weight: bold;
  margin-top: 7px;

  flex-wrap: wrap;
}

.technologie li {
  padding: 4px 10px;
  background: #f4f4f4;
  border-radius: 6px;
  font-weight: 600;
  color: #df7e3a;
  font-size: 14px;

   white-space: nowrap;
   flex-shrink: 0;
}

.ref-card .image {
  width: 280px;
  flex-shrink: 0;
  margin: 32px;
  border-radius: 24px;
  background-color: rgb(255, 255, 255);
  /* border: 1px solid rgb(168, 168, 168); */

  display: flex;
  /* transforme le conteneur en flex */
  align-items: center;
  /* centre verticalement l�enfant (l�image) */
  justify-content: center;
  /* optionnel : centre aussi horizontalement */
  overflow: hidden;
}

.ref-card .image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.ref-card em {
  display: inline-block;
  margin-bottom: 0px;
  color: #303030;
}

.ref-card h4 {
  display: inline-block;
  margin-bottom: 13px;
  color: #303030;
   font-size: 18px !important;
  font-weight: 600 !important;
}


/* .ref-card label {
  display: inline-block;
  margin-bottom: 13px;
  color: #303030;

  /* text-decoration: underline; */
  /* font-size: 18px;
  font-weight: 600;
}  */

.right-content h3 {
  margin-bottom: 7px !important;
}

/* ------------ fin CSS pour carte projet � droite  --------------------*/

/*---------------Debut css pour carte projet align� � gauche -------------*/

.ref-card-reverse {
  display: flex;
  flex-direction: row;
  border: 1px solid #d9d9d9;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
 /* height: 350px; */
  width: 100%;
  position: relative;
  min-height: 420px;
  /* background: linear-gradient(133deg, hsl(241 50% 51% / 1) 2%, rgb(38 255 0) 75%); */
  /* background: linear-gradient(122deg, hsl(227 51% 39% / 1) 2%, rgb(255 162 0 / 65%) 100%); */
  /* width: 1000px */
  /* background-color: #eeeeee; */
  /* border-right: #63de10; */
}

.left-content {
  width: 100%;
  background-color: #ffffff;

  padding: 40px;
  position: relative;
  text-align: right;
  border-radius: 24px;
  overflow: hidden; /* essentiel : masque la bande dans les coins arrondis */
  /* SUPPRIMER CETTE LIGNE : La box-shadow cr�e la duplication */
  /* box-shadow: inset -8px 0 0 0 #f78c1f; */
}

/* .right-content:hover {
        border-right: 8px solid #1a1a1a;
    } */

/* NOUVEL �L�MENT : Cr�er la bande orange fixe (le fond) */
.left-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  /* 8px de large */
  height: 100%;
  /* 100% de haut */
  /* background-color: #f78c1f; */
  /* La couleur orange de base */
  z-index: 1;
  /* S'assurer qu'il est en dessous de l'animation noire (z-index par d�faut est 0) */
}

/* 2a. Cr�ation de la Bande Noire (cach�e initialement) */
.left-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  /* �paisseur de la bande */
  background-color: #fd8a17;
  /* Couleur finale (noir) */

  /* Hauteur initiale � 0% (cach�e) */
  height: 0%;

  /* S'assurer qu'il est au-dessus du fond orange */
  z-index: 2;

  /* Animation: la hauteur grandit sur 0.25s */
  transition: height 0.18s ease-out;
}

/* 2b. �tat au Survol: Affiche la Bande */
.ref-card-reverse:hover .left-content::after {
  /* La hauteur passe de 0% � 100% au survol */
  height: 100%;
}

.left-content p {
  color: #444;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 14px;
   margin-left: auto;
  text-align: right;
}

.left-content em {
  color: #666;
}

.ref-card-reverse .technologie {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
  list-style: none;
  padding: 0px;
  gap: 10px;
  color: #d47d00;
  font-weight: bold;
  margin-top: 7px;
}

.technologie li {
  padding: 4px 10px;
  background: #f4f4f4;
  border-radius: 6px;
  font-weight: 600;
  color: #d47d00;
  font-size: 14px;
}

.ref-card-reverse .image {
  width: 280px;
  flex-shrink: 0;
  margin: 32px;
  border-radius: 24px;
  background-color: rgb(255, 255, 255);
  /* border: 1px solid rgb(168, 168, 168); */

  display: flex;
  /* transforme le conteneur en flex */
  align-items: center;
  /* centre verticalement l�enfant (l�image) */
  justify-content: center;
  /* optionnel : centre aussi horizontalement */
  overflow: hidden;
}

.ref-card-reverse .image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.ref-card-reverse em {
  display: inline-block;
  margin-bottom: 0px;
  color: #303030;
}

.ref-card-reverse h4 {
  display: inline-block;
  margin-bottom: 13px;
  color: #303030;
   font-size: 18px !important;
  font-weight: 600 !important;
}

.left-content h3 {
  margin-bottom: 7px;
}

/*---------------Fin css pour carte projet align� � gauche -------------*/

/*------------debut css carte synthse proje page détail projet-------------*/











/* ============================================
   RESPONSIVE – TABLETTE (< 1024px)
   ============================================ */

@media (max-width: 1200px) {
}

@media (max-width: 1024px) {
  .ref-card {
    /* flex-direction: column;*/
    height: auto; 
  }
.ref-card-reverse {
    /* flex-direction: column;*/
    height: auto; 
  }
  .ref-card .image {
    width: 180px;
    margin: 10px;
    margin-bottom: 20px; 
    /* display: none; */
  }
    .ref-card-reverse .image {
    width: 180px;
    margin: 10px;
    margin-bottom: 20px; */
    /* display: none; */
  }

  .right-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
  
  }
  .left-content{
     padding: 20px;
    display: flex;
    flex-direction: column;

  }
  .ref-card-reverse .technologie {
    width: 100%;
    flex-wrap: wrap;
  }

  .right-content .wp-block-button {
    position: static !important; /* enlève ton inline absolute */
    margin-top: auto;
    align-self: flex-end;
  }

  .ref-card .technologie {
    width: 100%;
    flex-wrap: wrap;
  }

  .ref-card-reverse .image {
    /* width: 100%;
    margin: 50px;
    margin-bottom: 20px; */
    /* display: none; */
  }
}
/*---------fin responsiv tablette ------------*/
@media (max-width: 768px) {

       .ref-card-reverse .image {

     display: none; 
  }

  .ref-card .image {
  display:none;
}
}
