/* ---------- Média de type Document ----------- */

.fichier-telecharge.card-img {
  margin: 12px;
  width: 395px;
  height: 522px;
  background: #44A3DD; /* Old browsers */
  position: relative;
  outline: none;
  padding-top: 60px;
}

.result-container .fichier-telecharge .images {
    margin: unset;
}
.result-container .fichier-telecharge .images .field--type-entity-reference {
    margin: unset;
}

.fichier-telecharge.border-round {
  border-radius: 10px;
}

.fichier-telecharge .file-title, .fichier-telecharge .file-title a {
  font-family: NunitoSans;
  font-size: 26px;
  font-weight: 800;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.31;
  letter-spacing: normal;
  color: #ffffff;
  margin: 13px 0;
  text-decoration: none;
  position: relative;
}

.fichier-telecharge .box-infos {
  width: 107px;
  height: 18px;
  opacity: 0.8;
  font-family: NunitoSans;
  font-size: 13px;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #ffffff;

}

.fichier-telecharge .file-date {
    opacity: 0.8;
    font-family: NunitoSans;
    font-size: 13px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.result-container .fichier-telecharge .file-date {
  opacity: 0.8;
  font-family: NunitoSans;
  font-size: 13px;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  display:block !important;
}

.fichier-telecharge .foot .file-date {
  display:  none !important;
}


.fichier-telecharge .file-description {
  position: absolute;
  padding: 25px 20px;
  bottom: 0;
  background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  border-radius: 0 0 10px 10px;
  left: 0;
  right: 0;
  border: none;
}

.fichier-telecharge .icon {
  height: 260px;
}

.fichier-telecharge .file-type {
  float: left;
  width: 70%;
  text-align: left;
  text-transform: uppercase;
  font-size: 13px;
  font-family: NunitoSans;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #ffffff;
  text-transform: uppercase;
  flex: 0 0 70%;
  max-width: 70%;
  opacity: 0.8;
}

.fichier-telecharge .file-reading-time {
  float: right;
  width: 30%;
  text-align: right;
  font-size: 13px;
  flex: 0 0 30%;
  max-width: 30%;
}

.fichier-telecharge .icon-download {
  margin: 15px;
  float: right;
  transition: transform 0.5s;
  position: absolute;
  top: 0;
  right: 0;
}

.fichier-telecharge > a, .fichier-telecharge > a:hover {
  outline: none;
  color: white;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.fichier-telecharge:hover .icon-download{
  transform: scale(1.2);
}

.image-document-under{
  border-radius: 0% !important;
  width: 200px;
  height: 260px;
  margin: auto;
  margin-top: 56px;
}

.image-document-upper{
  width: 200px;
  height: 260px;
  background-size: cover;
  border-radius: 0% !important;
  transform: rotate(-10deg);
  box-shadow: 2px 4px 4px 2px rgba(0,0,0,.2);
  position: absolute;
  top: 60px;
  right: 97px;
  transition: transform 0.5s;
}

.image-document-upper img, .image-document-under img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  margin: 0;
  background-color: white;
}

.image-document-upper > div,
.image-document-under > div,
.image-document-upper .contextual-region,
.image-document-under .contextual-region,
.image-document-upper .contextual-region .field--name-field-media-image,
.image-document-under .contextual-region .field--name-field-media-image,
.image-document-upper .field--type-image,
.image-document-under .field--type-image,
.image-document-upper .field__item,
.image-document-under .field__item,
.image-document-upper .field__item img,
.image-document-under .field__item img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.fichier-telecharge:hover .image-document-upper{
  transform:rotate(0);
}


/* Document in CKEditor */
.concertation-document {
  margin-bottom: 15px;
}

.concertation-document-container {
  display: flex;
  flex-direction: row;
}

.concertation-document-image {
  width: 100px;
  height: 132px;
  text-align: center;
  display: flex;
  overflow: hidden;
  position: relative;
  border: 2px solid white;
}

.concertation-document-image a {
  width: 100%;
  height: 100%;
  display: flex;
  text-align: center;
}

.concertation-document-image a img {
  margin: auto;
  width: auto !important;
  height: 100%;
  position: absolute;
  top: -9999px;
  bottom: -9999px;
  left: -9999px;
  right: -9999px;
  margin: auto;
}

.concertation-document-image a img.default {
  height: auto !important;
}

.concertation-document-image a > div,
.concertation-document-image .field--type-image,
.concertation-document-image .field--type-image .field__item,
.concertation-document-image .field--type-image .field__item img {
  width: 100%;
  height: 100%;
}

.concertation-document-image .field--type-image .field__item {
  background-color: white;
  overflow: hidden;
}

.concertation-document-text {
  padding-left: 20px;
  padding-top: 30px;
}

.concertation-document-text .document-title {
  font-weight: bold;
}

.concertation-document-text .document-theme,
.concertation-document-text .document-info .type {
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.8;
  margin-right: 30px;
}

.concertation-document-text .document-info .size {
  color: #FFFFFF;
  opacity: 0.8;
}

.media-library.fichier-telecharge .image-document-under {
  width: auto;
  height: auto;
  margin: 0;
  position: relative;
}

.media-library.fichier-telecharge .image-document-under img {
  width: 157px;
  height: 200px;
  object-fit: contain;
  background: white;
  position: relative;
}

.media-library.fichier-telecharge .file-description {
  position: relative;
  background: none;
  border-radius: 0;
  padding: 0;
}

.media-library.fichier-telecharge .file-title {
  font-size: 14px;
}


@media only screen and (max-width: 767px) {
  .fichier-telecharge.card-img {
    padding: 0;
    margin: var(--rte-vignette-margin-mobile);
    width: var(--rte-vignette-width-mobile);
    height: var(--rte-vignette-height-mobile);
    max-width: none;
  }

  .fichier-telecharge .file-description {
    border-top: none;
  }

  .fichier-telecharge .file-title, .fichier-telecharge .file-title a {
    font-size: 21.8px;
  }

   .image-document-upper {
    top: 56px;
    right: 27.5%;
    width: 45%;
    height: 45%;
   }

  .image-document-under {
    padding: 0;
    border-radius: 0% !important;
    width: 45%;
    height: 45%;
    position: absolute;
    right: 27.5%;
  }

  .image-document-upper img, .image-document-under img {
    width: 100%;
    height: 100%;
  }

  .concertation-document-text {
    width: calc(100% - 100px);
    padding-top: 0;
  }
}
