/* =========================================================
   PAGE INTÉRIEURE D'UN PROJET
   ========================================================= */

/* CONTENEUR GÉNÉRAL */

.projet-interieur {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  box-sizing: border-box;
}

/* INFORMATIONS À GAUCHE + IMAGE À DROITE */

.projet-haut {
  display: grid;
  grid-template-columns: 550px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 100px);
}


/* =========================================================
   PANNEAU D'INFORMATIONS
   ========================================================= */

.projet-infos {
  padding: 28px 28px 20px;
  background: #f9f9f9;
  text-align: left;
  box-sizing: border-box;
}

.projet-infos h1 {
  margin: 0;
  color: #111;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.projet-separateur {
  width: 80px;
  height: 4px;
  margin: 17px 0;
  background: #111;
}

.projet-infos h2 {
  margin: 0 0 20px;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.projet-texte {
  margin: 0 0 18px;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  text-align: justify;
}

/* =========================================================
   DÉTAILS DU PROJET
   ========================================================= */

.projet-details {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.projet-details li {
  margin-bottom: 11px;
}

.projet-details li:last-child {
  margin-bottom: 0;
}

.projet-details strong,
.projet-details span {
  display: block;
}

.projet-details strong {
  margin-bottom: 2px;
  color: #111;
  font-size: 11px;
  text-transform: uppercase;
}

.projet-details span {
  color: #666;
  font-size: 13px;
}

.retour-projets {
  display: inline-block;
  margin-top: 18px;
  color: #111;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.retour-projets:hover {
  color: #48b245;
}

/* =========================================================
   CARROUSEL À GLISSEMENT
   ========================================================= */

.carousel {
  position: relative;
  width: calc(100% + 1px);
  min-width: 0;
  height: calc(100vh - 100px);
  margin-left: -1px;
  overflow: hidden;
  background: transparent;
}

.carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.btn {
  position: absolute;
  top: 50%;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background: rgba(20, 20, 20, 0.25);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  background: rgba(72, 178, 69, 0.9);
  border-color: rgba(72, 178, 69, 1);
  transform: translateY(-50%) scale(1.08);
}

.btn:active {
  transform: translateY(-50%) scale(0.96);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* =========================================================
   SUPPRESSION DE LA LIGNE ENTRE LES INFORMATIONS
   ET LE CARROUSEL
   ========================================================= */

.projet-interieur,
.projet-infos,
.carousel,
.carousel-viewport,
.carousel-track,
.carousel-slide {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media screen and (max-width: 1000px) {
  .projet-interieur {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .projet-infos {
    padding: 25px 22px 18px;
  }

  .projet-infos h1 {
    font-size: 22px;
  }

  .projet-texte {
    font-size: 12px;
    line-height: 1.45;
  }

  .carousel {
    height: calc(100vh - 100px);
  }
}

/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media screen and (max-width: 768px) {
  .projet-haut {
    display: block;
    min-height: 0;
  }

  .projet-interieur {
    display: block;
    min-height: 0;
  }

  .projet-infos {
    padding: 30px 20px;
  }

  .projet-infos h1 {
    font-size: 23px;
  }

  .projet-texte {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .carousel {
    width: 100%;
    height: 60vh;
    min-height: 320px;
    margin-left: 0;
  }

  .carousel-slide {
    height: 100%;
    min-height: 320px;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }

  .btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
}
