.view-heading{
  display: flex;
  padding: 12px 0;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  align-self: stretch;
}

.view-heading > *{
  align-self: stretch;
}

.view-filters{
  padding-bottom: 10px;
}

.view-heading h1{
  color: #222;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  font-family: hurme_bold, sans-serif;
}
@media (max-width: 600px) {
  .view-heading h1{
    font-size: 32px;
    padding: 0 1rem;
  }
}

.view-ressources .views-exposed-form{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  align-self: stretch;
}

.view-ressources .views-exposed-form .exposed-filters{
  display: flex;
  align-items: flex-start;
  gap: 50px;
  align-self: stretch;
  flex-wrap: wrap;
}

.view-ressources .views-exposed-form .form-item{
  flex: 1 1 calc(25% - 50px);
  display: flex;
  border: 1px solid;
  gap: 10px;
  align-items: center;
  position: relative;
  margin: 0;
}

@media (max-width: 1200px) {
  .view-ressources .views-exposed-form .exposed-filters{
    gap:20px
  }
  .view-ressources .views-exposed-form .form-item{
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

.view-ressources .views-exposed-form .form-item:hover select{
  text-decoration: none;
}

.view-ressources .views-exposed-form .form-item select{
  display: flex;
  padding: 8px 17px;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
  flex: 1 0 0;
  background: transparent;

  color: var(--primary-color);
  font-family: hurme, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.view-ressources .views-exposed-form .form-item::after{
  position: absolute;
  pointer-events: none;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px; 
  height: 24px; 
  display: inline-block;
  background-size: cover;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none'%3E%3Cpath d='M6.5 9L12.5 15L18.5 9' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.view-ressources .views-exposed-form .form-actions{
  position: initial;
  opacity: 1;
  z-index: initial;
}

.view-ressources .views-exposed-form .form-actions .button{
  background: transparent;
  color: #222;
  padding: 0;
}

.submit-reset{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.view-ressources .view-content{
  padding: 50px 0 40px 0;
  background: #F3F3EF;
}

.view-ressources .view-content > .inner{
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 70px 50px;
  align-self: stretch;
  flex-wrap: wrap;
}

.view-ressources .view-content > .inner::after {
  content: "";
  flex: 1 1 calc(33.333% - 50px);
}

.view-ressources .view-content > .inner::after {
  content: "";
  flex: 1 1 calc(33.333% - 50px);
}

.view-ressources .view-content .inner .views-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  flex: 1 1 calc(33.333% - 50px); /* 3 colonnes par défaut */
}
@media (max-width: 1200px) {
  .view-ressources .view-content > .inner::after{
    flex: 1 1 calc(50% - 50px);
  }
  .view-ressources .view-content .inner .views-row{
    flex: 1 1 calc(50% - 50px);
  }
}

.view-ressources .view-content .inner .views-row .inner{
  align-self: stretch;
}

.view-ressources .ressourceItem .itemContent{
  display: flex;
  padding: 20px 15px 15px 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  background: #fff;
  font-family: hurme_bold, sans-serif;
}

.ressourceItem .itemContent .itemCat{
  color: #222;
  font-size: 19.2px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; 
  text-transform: uppercase;
  align-self: stretch;
}

.ressourceItem .itemContent .itemTitle{
  color: #222;
  font-size: 24.64px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; 
  align-self: stretch;
}

.ressourceItem .itemContent .itemCompo{
  color: #222;
  font-size: 17.6px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; 
  align-self: stretch;
}

.ressourceItem a{
  min-width: 138px;
  display: flex;
  padding: 8px 42px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 3px;

  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 154%; 
  border: 2px solid var(--primary-color);
}

.ressourceItem a svg path{
  fill: #fff;
}

.ressourceItem.protégé a{
  padding: 8px;
}

.ressourceItem a.inversed{
  font-size: 15px;
}

.ressourceItem:hover .button,
.ressources .list .content .button:hover{
  text-decoration: none;
  background-color: transparent;
  color: var(--primary-color);
}

.ressourceItem:hover{
  cursor: pointer;
}

.ressourceItem .visuel,
.ressourceItem picture,
.ressourceItem img{
  width: 100%;
}

.ressourceItem picture{
  overflow: hidden;
}

.ressourceItem img{
  max-width: 100%;
  transition: all .5s ease;
}

.ressourceItem:hover img{
  transform: scale(1.2);
}

.ressourceItem:hover .itemTitle{
  color: var(--primary-color);
}

.ressourceItem:hover svg path,
.ressourceItem .button:hover svg path{
  fill: var(--primary-color);
}

@media (max-width: 1100px) {
  .view-filters{
    padding: 1rem;
  }
}

@media(max-width: 600px){
  .view-ressources .view-content .inner{
    gap: 20px;
  }
  .view-ressources .view-content .inner .views-row {
    width: 100%;
    flex: auto
  }
}