/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * BASE STYLE .............................
*/

.paragraph--type--video ~ .details--plus {
  padding: 0 1rem;
}

.paragraph--type--video.align-item-center {
  display: flex;
  justify-content: center;
}

.paragraph--type--video.align-item-left {
  display: flex;
  justify-content: left;
}

.paragraph--type--video.align-item-right {
  display: flex;
  justify-content: right;
}

.paragraph.paragraph--type--video img {
  width: 100%;
}

.paragraph.paragraph--type--video {
  position: relative;
  align-self: center;
  width: 100%;
}

.paragraph--type--video iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

.paragraph--type--video .video-datas .video-title h2,
.paragraph--type--video .video-datas .video-title h3,
.paragraph--type--video .video-datas .video-title h4 {
  color: var(--bs-white);
}

.paragraph--type--video .video-datas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 43%;
  color: var(--bs-white);
}

.paragraph--type--video .video-datas:before {
  content: '';
  position: absolute;
  z-index: 0;
  bottom: 0;
  top: 0;
  background: var(--bs-violet);
  clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 75% 100%, 75% 75%, 100% 75%);
  width: 100%;
  left: 0;
}

.paragraph--type--video .video-title {
  position: relative;
  width: 100%;
  display: inline-block;
  padding: 2rem 4rem 0;
}

.paragraph--type--video .video-title .field--name-field-video-title {
  font-size: 2rem;
  font-style: normal;
  line-height: 2.5rem;
  margin-bottom: 0;
}

.paragraph--type--video .video-title:after {
  position: absolute;
  top: 11%;
  right: 6%;
  content: '\f144';
  font-family: 'Font Awesome 6 Pro', serif;
  font-weight: 100;
  font-size: 3.827rem;
  color: var(--bs-white);
}

.paragraph--type--video.no-title .video-button {
  background-color: var(--bs-yellow);
  padding: 0.5rem 1.5rem;
  font-size: 4em;
  color: var(--bs-blue);
  border: 0;
}

.paragraph--type--video.no-title .video-button:after {
  content: unset;
}

.paragraph--type--video.no-title .video-datas {
  width: 100%;
  justify-content: flex-end;
  display: flex;
}

.modal.modal--iframe .modal-dialog .modal-header button.btn i {
  margin-left: 0;
}

.paragraph--type--video.no-title .video-link {
  width: fit-content;
  padding: 0.5rem 1.5rem;
  min-width: unset;
  aspect-ratio: 1/1;
  font-size: 4rem;
  color: var(--bs-blue);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.paragraph--type--video .video-link {
  position: relative;
  padding: 1rem 4rem 3rem;
}

.paragraph--type--video .cta--link::after {
  right: 0;
  padding-bottom: 0.5rem;
  content: '\f144';
}

.paragraph--type--video .cta--link {
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
}

.paragraph--type--video .cta--link::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  bottom: -2px;
  background-color: var(--bs-white);
  transition: all 1s;
}

.paragraph--type--video
  a.stretched-link:hover
  ~ .video-datas
  .cta--link::before {
  width: calc(100% + 0.5rem);
}

.paragraph--type--video .stretched-link:hover ~ * .cta--link:after,
.paragraph--type--video .stretched-link:hover ~ * .cta--link i,
.stretched-link:where(:hover, :focus, :active) ~ * .video-link i {
  color: var(--bs-white);
}

.paragraph--type--video .stretched-link:hover ~ * .cta--link,
.paragraph--type--video .stretched-link:focus ~ * .cta--link,
.paragraph--type--video .cta--link,
.paragraph--type--video .cta--link::after,
.paragraph--type--video .cta--link:active,
.paragraph--type--video .cta--link:active::after,
.paragraph--type--video .cta--link:focus,
.paragraph--type--video .cta--link:focus::after,
.paragraph--type--video .cta--link:hover,
.paragraph--type--video .cta--link:hover::after {
  color: var(--bs-white);
  text-decoration: none;
}

/* ------------------------------------ *\
  ==FENETRE MODALE
\* ------------------------------------ */
.video--modal .modal-dialog {
  width: 60%;
  max-width: unset;
  border: 0;
}

.video--modal .modal-dialog .modal-content {
  border-radius: 0;
}

.video--modal .modal-dialog .modal-header {
  border: 0;
}

.video--modal .modal-dialog .modal-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  max-width: 100%;
  height: auto;
}

.video--modal .modal-body {
  text-align: center;
}

.video__container .stretched-link:hover ~ * .cta--link,
.video__container .stretched-link:active ~ * .cta--link,
.video__container .stretched-link:focus ~ * .cta--link,
.video__container .stretched-link:hover ~ .cta--link,
.video__container .stretched-link:focus ~ .cta--link,
.video__container .stretched-link:active ~ .cta--link,
.video__container .paragraph--type--video .stretched-link:hover ~ * .cta--link,
.video__container .paragraph--type--video .stretched-link:focus ~ * .cta--link,
.video__container .stretched-link:hover ~ .cta--link:after,
.video__container .stretched-link:active ~ .cta--link:after,
.video__container .stretched-link:focus ~ .cta--link:after,
.video__container .stretched-link:hover ~ * .cta--link:after,
.video__container .stretched-link:active ~ * .cta--link:after,
.video__container .stretched-link:focus ~ * .cta--link:after,
.video__container .cta--link:hover:after,
.video__container .cta--link:focus:after,
.video__container .cta--link:active:after {
  color: var(--bs-white);
}

@media screen and (max-width: 1199px) {
  .paragraph--type--video .video-datas {
    position: absolute;
    width: 60%;
    bottom: unset;
    top: 0;
  }
}

@media screen and (max-width: 899px) {
  .paragraph--type--video .video-title {
    padding: 2rem 2rem 0;
  }

  .paragraph--type--video .video-link {
    padding: 1rem 2rem 2rem;
  }
}

@media screen and (max-width: 599px) {
  .paragraph--type--video .video__container {
    position: relative;
    height: 100%;
  }

  .paragraph--type--video .video-title .field--name-field-video-title {
    margin-right: 10%;
  }

  .paragraph--type--video .video-datas .video-title::after {
    display: none;
  }

  .paragraph--type--video .video-datas {
    position: relative;
    bottom: unset;
    width: 100%;
  }

  .field--name-field-header-video
    .modal
    .modal-dialog.modal-dialog-centered.modal-lg,
  .field--name-field-project-video
    .modal
    .modal-dialog.modal-dialog-centered.modal-lg {
    width: 100%;
    margin: 0;
  }
}
