.view-ada-ressources .form--inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.view-filters.inline .form--inline .form-email, 
.view-filters.inline .form--inline .form-text {
  width: auto;
  display: inline-block;
} 

.view-filters.inline .form--inline .form-actions {
  clear: none;
}

.view-filters.inline {
  margin-bottom: 2rem;
}

.view-filters.inline h2 {
  color: black;
  font-weight: normal;
  font-size: 4rem;
}

.ada-resource {
  position: relative;
  color: black;
  text-decoration: none !important;
  border-bottom: 4px solid var(--ada-page-color);
  padding-bottom: 1rem;
  display: block;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  height: 100%;
  margin-bottom: 3rem;
}

.ada-resource .ada-resource__image {
  margin-bottom: 1rem;
  background-color: lightgray;
  height: 200px;
  width: 100%;
}

.ada-resource .ada-resource__image .field--name-field-image-du-fichier {
  display: none;
}

.ada-resource .ada-resource__image > div {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.ada-resource .ada-resource__image > div img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ada-resource .ada-resource__content {
  padding: 1rem;
}

.ada-resource .ada-resource__title {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1rem;
}

.ada-resource .ada-resource__title > span {
  font-size: 1.75rem;
  line-height: 1;
}

.ada-resource .ada-resource__type {
  margin-bottom: 0.5rem;
}

.ada-resource .ada-resource__type .field__item  {
  background-color: var(--ada-page-color);
  color: white;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
}

.ada-resource .ada-resource__text {
  color: black;
  font-size: 1.4rem;

  display: -webkit-box;
  -webkit-line-clamp: 4; /* Number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ada-resource-highlight .ada-resource {
  padding-bottom: 0;
  border-bottom: 0;
}

.ada-resource-highlight .ada-resource__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ada-resource-highlight .ada-resource:not(.ada-resource-video) .ada-resource__image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0,0,0);
  background: linear-gradient(360deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,0) 100%);
  z-index: 0;
}

.ada-resource-highlight .ada-resource__image {
  position: relative;
  margin-bottom: 0;
}

.ada-resource-highlight .ada-resource__image {
  height: 0;
  padding-bottom: 59.75%;
}

.ada-resource-highlight .ada-resource__image > div {
  height: 0;
  padding-bottom: 59.75%;
}

.ada-resource-highlight-small .ada-resource__image {
  height: 0;
  padding-bottom: 57.9%;
}

.ada-resource-highlight-small .ada-resource__image > div {
  height: 0;
  padding-bottom: 57.9%;
}

.ada-resource-highlight .ada-resource__image > div img {
  position: absolute;
  top: 0;
  left: 0;
}

.ada-resource-highlight .ada-resource__title span {
  color: white;
  font-size: 3rem;
}

.ada-resource-highlight-small .ada-resource__title span {
  color: white;
  font-size: 2rem;
}

.ada-resource-highlight .ada-resource__text {
  color: white;
}

.ada-resource-highlight-small .ada-resource__text {
  display: none;
}

.ada-resource-similar .ada-resource {
  box-shadow: none;
  border-bottom: 0;
}

.ada-resource-similar .ada-resource__image > div {
  height: 0;
  padding-bottom: 140%;
  position: relative;
}

.ada-resource-similar .ada-resource__image {
  height: 0;
  padding-bottom: 140%;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.ada-resource-similar .ada-resource__image > div img {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(0);
  border: 0;
}

.ada-resource-similar .ada-resource__image .field--name-field-image-du-fichier {
  display: block;
}

.ada-resource-similar .ada-resource__image .field--name-field-image {
  display: none;
}

@media (max-width: 1199px) {
  .ada-resource-highlight-small .ada-resource__title span {
    color: white;
    font-size: 1.5rem;
  }

  .ada-resource-highlight .ada-resource__image {
    height: 0;
    padding-bottom: 86.5%;
  }

  .ada-resource-highlight .ada-resource__image > div {
    height: 0;
    padding-bottom: 86.5%;
  }

  .ada-resource-highlight-small .ada-resource__image {
    height: 0;
    padding-bottom: 57.9%;
  }

  .ada-resource-highlight-small .ada-resource__image > div {
    height: 0;
    padding-bottom: 57.9%;
  }
}

@media (max-width: 992px) {
  .ada-resource-highlight .ada-resource__title span {
    color: white;
    font-size: 2rem;
  }

  .ada-resource-highlight-small .ada-resource__title span {
    color: white;
    font-size: 2rem;
  }

  .ada-resource-highlight-small .ada-resource__text {
    display: block;
  }

  .ada-resource-highlight .ada-resource__image {
    height: 0;
    padding-bottom: 57.9%;
  }

  .ada-resource-highlight .ada-resource__image > div {
    height: 0;
    padding-bottom: 57.9%;
  }
}

@media only screen and (max-width: 991px) {
  .flex-row {
    gap: 0;
  }
}

@media only screen and (max-width: 768px) {
  .flex-row {
    gap: 0;
  }
}

/** Videos */

.ada-resource.ada-resource-video .ada-resource__image {
  position: relative;
}

.ada-resource.ada-resource-video .ada-resource__image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjgwMHB4IiB3aWR0aD0iODAwcHgiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgDQoJIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBkPSJNNDUuNTYzLDI5LjE3NGwtMjItMTVjLTAuMzA3LTAuMjA4LTAuNzAzLTAuMjMxLTEuMDMxLTAuMDU4QzIyLjIwNSwxNC4yODksMjIsMTQuNjI5LDIyLDE1djMwDQoJCWMwLDAuMzcxLDAuMjA1LDAuNzExLDAuNTMzLDAuODg0QzIyLjY3OSw0NS45NjIsMjIuODQsNDYsMjMsNDZjMC4xOTcsMCwwLjM5NC0wLjA1OSwwLjU2My0wLjE3NGwyMi0xNQ0KCQlDNDUuODM2LDMwLjY0LDQ2LDMwLjMzMSw0NiwzMFM0NS44MzYsMjkuMzYsNDUuNTYzLDI5LjE3NHogTTI0LDQzLjEwN1YxNi44OTNMNDMuMjI1LDMwTDI0LDQzLjEwN3oiLz4NCgk8cGF0aCBkPSJNMzAsMEMxMy40NTgsMCwwLDEzLjQ1OCwwLDMwczEzLjQ1OCwzMCwzMCwzMHMzMC0xMy40NTgsMzAtMzBTNDYuNTQyLDAsMzAsMHogTTMwLDU4QzE0LjU2MSw1OCwyLDQ1LjQzOSwyLDMwDQoJCVMxNC41NjEsMiwzMCwyczI4LDEyLjU2MSwyOCwyOFM0NS40MzksNTgsMzAsNTh6Ii8+DQo8L2c+DQo8L3N2Zz4="), linear-gradient(360deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 9%, rgba(0,0,0,0) 100%);
  background-position: center center;
  background-size: 30% 30%, 100% 100%;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-size 0.12s ease-in-out;
}

.ada-resource-highlight-small .ada-resource.ada-resource-video .ada-resource__image:after {
  background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjgwMHB4IiB3aWR0aD0iODAwcHgiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgDQoJIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBkPSJNNDUuNTYzLDI5LjE3NGwtMjItMTVjLTAuMzA3LTAuMjA4LTAuNzAzLTAuMjMxLTEuMDMxLTAuMDU4QzIyLjIwNSwxNC4yODksMjIsMTQuNjI5LDIyLDE1djMwDQoJCWMwLDAuMzcxLDAuMjA1LDAuNzExLDAuNTMzLDAuODg0QzIyLjY3OSw0NS45NjIsMjIuODQsNDYsMjMsNDZjMC4xOTcsMCwwLjM5NC0wLjA1OSwwLjU2My0wLjE3NGwyMi0xNQ0KCQlDNDUuODM2LDMwLjY0LDQ2LDMwLjMzMSw0NiwzMFM0NS44MzYsMjkuMzYsNDUuNTYzLDI5LjE3NHogTTI0LDQzLjEwN1YxNi44OTNMNDMuMjI1LDMwTDI0LDQzLjEwN3oiLz4NCgk8cGF0aCBkPSJNMzAsMEMxMy40NTgsMCwwLDEzLjQ1OCwwLDMwczEzLjQ1OCwzMCwzMCwzMHMzMC0xMy40NTgsMzAtMzBTNDYuNTQyLDAsMzAsMHogTTMwLDU4QzE0LjU2MSw1OCwyLDQ1LjQzOSwyLDMwDQoJCVMxNC41NjEsMiwzMCwyczI4LDEyLjU2MSwyOCwyOFM0NS40MzksNTgsMzAsNTh6Ii8+DQo8L2c+DQo8L3N2Zz4="), linear-gradient(360deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,0) 100%);
  background-size: 32% 32%, 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

.ada-resource.ada-resource-video:hover .ada-resource__image:after {
  background-size: 32% 32%, 100% 100%;
}

.ada-resource-highlight-small .ada-resource-video .ada-resource__content .ada-resource__title {
  margin-bottom: 0;
}

.ada-resource-highlight-small .ada-resource-video .ada-resource__content .ada-resource__title span {
  font-size: 1.75rem;
}

.ada-resource-highlight-small .ada-resource-video .ada-resource__content .ada-resource__type,
.ada-resource-highlight-small .ada-resource-video .ada-resource__content .ada-resource__text {
  display: none;
}

@media only screen and (max-width: 991px) {
  .ada-resource-highlight .ada-resource-video .ada-resource__content {
    /* display: none; */
  }

  .ada-resource-highlight-small .ada-resource-video .ada-resource__content {
    /* display: none; */
  }
}

/** Main page */

.page-node-type-ada-ressource .region-content {
  position: relative;
}

.ada-resource-full {
  position: relative;
  margin-bottom: 2rem;
}

.ada-resource-full .ada-resource__content {
  padding-left: 4rem;
  padding-top: 2rem;
  position: relative;
}

.ada-resource-full .ada-resource__content:before {
  position: absolute;
  content: "";
  top: -10px;
  left: 0;
  width: 200vw;
  height: calc(100% + 4rem);
  background: #f4f4f4;
  transform: translateX(-50%);
  z-index: 0;
}

.ada-resource-full .ada-resource__image {
  border: 0;
  height: auto;
  z-index: 1;
  position: relative;
  padding-top: 2rem;
}

.ada-resource-full .ada-resource__image img {
  border: 0;
}

.ada-resource-full .ada-resource__title {
  margin-bottom: 3rem;
  font-size: 3rem;
  line-height: 1rem;
  position: relative;
  z-index: 1;
}

.ada-resource-full .ada-resource__title > span {
  font-size: 4rem;
  line-height: 1;
}

.ada-resource-full .ada-resource__type {
  margin-bottom: 0.5rem;
}

.ada-resource-full .ada-resource__type .field__item {
  background-color: var(--ada-page-color);
  color: white;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 1.5rem;
}

.ada-resource-full .ada-resource__file {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0 1rem;
}

.ada-resource-full .ada-resource__file .separator {
  margin: 0;
}

.ada-resource-full .ada-resource__file > span {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.2rem;
}

.ada-resource-full .ada-resource__file img {
  border: 0;
}

.ada-resource-full .ada-resource__infos {
  padding-right: 5rem;
}

.ada-resource-full .ada-resource__infos ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.ada-resource-full .ada-resource__text > span > span {
  font-weight: bold;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.ada-resource-full .ada-resource__text p {
  /* font-size: 1.4rem; */
}

.ada-resource-full .ada-resource__text {
  position: relative;
}

.ada-resource-full .ada-resource__text:before {
  position: absolute;
  content: "";
  width: 1px;
  top: 1rem;
  bottom: 3rem;
  left: -3rem;
  background: rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 991px) {
  .ada-resource-full .ada-resource__content {
    padding-left: 0rem;
  }

  .ada-resource-full .ada-resource__image {
    display: none;
  }

  .ada-resource-full .ada-resource__text {
    margin-top: 2rem;
  }

  .ada-resource-full .ada-resource__text:before {
    display: none;
  }
}

/** Main page video */

.page-node-type-ada-ressource-video .field--name-field-media-oembed-video {
  height: 0;
  padding-bottom: 56.75%;
  position: relative;
}

.page-node-type-ada-ressource-video .field--name-field-media-oembed-video > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.ada-resource-full-video .ada-resource__video {
  margin-bottom: 2rem;
}

.ada-resource-full-video {
  padding-top: 2rem;
  margin-bottom: 5rem;
}

.ada-resource-full-video .ada-resource__content {
  padding: 0;
}

.ada-resource-full-video .ada-resource__title {
  margin-bottom: 1rem;
}

.ada-resource-full.ada-resource-full-video .ada-resource__content:before {
  display: none;
}

.ada-resource-full.ada-resource-full-video:before {
  position: absolute;
  content: "";
  top: -10px;
  left: 0;
  width: 200vw;
  height: calc(100% + 4rem);
  background: #f4f4f4;
  transform: translateX(-50%);
  z-index: 0;
}

.ada-resource-full.ada-resource-full-video .ada-resource__content:before {
  position: absolute;
  content: "";
  top: -10px;
  left: 0;
  width: 200vw;
  height: calc(100% + 4rem);
  background: #f4f4f4;
  transform: translateX(-50%);
  z-index: 0;
}
