@charset "UTF-8";
/* ----------------- Base / Desktop ------------------- */

.info-image, .overlay-image {
  transition: transform 0.3s ease-out;
  will-change: transform; /* pour optimiser la perf */
}


.info-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  padding: 2rem 15rem 4rem 5cm;
  background: #fff;
  color: #828282;
  gap: 3rem;
}

.images-block {
  position: relative;
  flex: 1 0 500px;
  min-width: 400px;
  height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.info-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 500px;
  height: 500px;
  object-fit: cover;
  background: #efefef;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.04);
}

.overlay-image {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 20%;
  left: calc(500px * 0.8);
  object-fit: cover;
  background: #eaeaea;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.09);
  margin-left: 15px;
}

.info-content {
  flex: 1 1 380px;
  max-width: 600px;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.info-content p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #5E5A54;
  margin: 0 0 2rem 0;
  line-height: 1.7;
}

.cta-button {
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: #cbb990;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #b59c45;
}

.images-block-mobile {
  display: none;/* pour cacher les images block mobile par défaut */
}



/* ----------------- Tablette portrait (601px - 1024px) ------------------- */
@media (max-width: 1024px) and (min-width: 601px) {
  .info-block {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10rem;
    padding: 2rem 1rem;
    min-height: 340px;
  }

  .images-block {
    position: relative;
    flex: 0 0 170px;
    min-width: 140px;
    height: 200px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .info-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 300px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.04);
  }

  .overlay-image {
    position: absolute;
    width: 90px;
    height: 100px;
    top: 30px;
    left: 87px;
    object-fit: cover;
    border-radius: 6px;
    display: none;
  }

  .info-content {
    flex: 1 1 0;
    max-width: 70vw;
    padding-left: 30px;
    word-break: break-word;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
  }
}
/* ----------------- Tablette paysage (1024px - 1279px) ------------------- */

@media (min-width: 1024px) and (max-width: 1279px) {
  .info-block {
    padding: 2rem 5rem 4rem 5rem;
  }
  .overlay-image {
    display: none;
  }
}
/* ----------------- Mobile (max-width: 480px) ------------------- */

@media (max-width: 480px) {
  .info-block {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0.5rem;
    min-height: auto;
  }

  .images-block {
    display: none;/* On cache images-block à cause d'un bug flex */
  }

  .images-block-mobile {  /* Affiche seulement les images bloquées mobiles */
    display: block;
    margin-bottom: -30px;
  }

  .info-image {
    position: static;
    height: 300px;
    max-width: 100vw;
    border-radius: 0;
    object-fit: cover;
    margin: 0;
  }

  .overlay-image {
    display: none;
  }

  .info-content {
    width: 100%;
    max-width: 100vw;
    padding-left: 30px;
    margin-top: 30px;
    align-items: flex-start;
    margin-right: 16px;
    margin-left: -16px;
  }

  .info-content h2 {
    margin: 0 0 5px 0;
  }
}

/* correction du viewport pour pc 13 pouces affichage pc portable bureau */
@media (min-width: 1200px) and (max-width: 1537px) {
  .overlay-image {
    left: calc(350px * 0.8);
  }
}

/* correction du viewport pour pc 13 pouces affichage pc portable bureau */
@media (min-width: 1200px) and (max-width: 3000px) {
.info-block {margin-bottom:-5rem;}
}

