@keyframes scaleRotate {
  0% {
    transform: scale(1.1) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.project-list-container {
  container-name: project-list-container;
  container-type: inline-size;
}
.project-list-container h2.wp-block-post-title {
  font-size: clamp(1.25rem, 0.781rem + 0.977vi, 1.563rem) !important;
}

.is-style-cerse-projet-horizontale-card .projet .cerse_projets div {
  display: block !important;
}
.is-style-cerse-projet-horizontale-card .projet .cerse_projets div > .is-vertical {
  padding: 16px 16px 0 16px;
}
.is-style-cerse-projet-horizontale-card .projet .cerse_projets div h2 {
  line-height: 1;
}
.is-style-cerse-projet-horizontale-card .projet .cerse_projets div figure {
  overflow: hidden;
}
.is-style-cerse-projet-horizontale-card .projet .cerse_projets div img {
  transition: transform 0.3s ease-out;
  transform: scale(1.17) rotate(8deg);
}
.is-style-cerse-projet-horizontale-card .projet .cerse_projets div:hover img {
  transform: scale(1) rotate(0deg);
}

.nouvelles-list-ul li.category-nouvelles figure {
  overflow: hidden;
}
.nouvelles-list-ul li.category-nouvelles img {
  transition: transform 0.3s ease-out;
  transform: scale(1.17) rotate(6deg);
}
.nouvelles-list-ul li.category-nouvelles:hover img {
  transform: scale(1) rotate(0deg);
}

.swiper-wrapper:has(.projet-list-item__image) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.swiper-wrapper:has(.projet-list-item__image) li {
  margin-top: 0 !important;
}

.projet-list-item__titre {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 25px;
}
.projet-list-item__titre::before {
  content: "";
  display: block;
  width: 100%;
  height: 30px;
  background-color: #ffffff;
  opacity: 1;
  background-size: 12px 12px;
  background-image: repeating-linear-gradient(0deg, var(--wp--preset--color--orange-light), var(--wp--preset--color--orange-light) 2px, #ffffff 2px, #ffffff);
}
.projet-list-item__titre.vert::before {
  background-image: repeating-linear-gradient(0deg, var(--wp--preset--color--vert), var(--wp--preset--color--vert) 2px, #ffffff 2px, #ffffff);
}
.projet-list-item__titre.blogue {
  padding-top: 10px !important;
  padding-bottom: 0 !important;
  line-height: 1.15 !important;
}
.projet-list-item__titre.blogue::before {
  content: none;
}

.projet-list-item__image {
  position: relative;
}
.projet-list-item__image .wp-block-post-terms {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70%;
  padding: 15px;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.projet-list-item__image .wp-block-post-featured-image {
  overflow: hidden;
}
.projet-list-item__image .wp-block-post-featured-image img {
  transition: transform 0.3s ease-out;
  transform: scale(1.17) rotate(6deg);
}
.projet-list-item__image .wp-block-post-featured-image:hover img {
  transform: scale(1) rotate(0deg);
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  --bg: #ffffff !important;
  --fg: currentColor !important;
  font-family: var(--wp--preset--font-family--carlito);
  font-weight: 700;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0 0 16px;
  --svg: url('data:image/svg+xml,<svg width="8" height="16" viewBox="0 0 8 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 8.00931L0.0554273 0H0V4.63795L3.34411 8.00931L0 11.362V16H0.0554273L8 8.00931Z" fill="white"/></svg>');
  transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  color: var(--fg);
}

.wp-block-query-pagination-next::before {
  content: "";
  width: 1px;
  display: block;
  background-color: var(--fg);
  opacity: 0.6;
  order: 2;
  align-self: stretch;
  margin-left: 16px;
  transition: background-color 0.3s ease-in-out;
}
.wp-block-query-pagination-next::after {
  content: "";
  width: 13px;
  height: 10px;
  order: 3;
  background-color: var(--fg);
  padding: 15px 13px 15px 16px;
  /* Chrome, still requires prefix in 2022 */
  -webkit-mask: var(--svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: auto;
  /* Firefox and Safari */
  -webkit-mask: var(--svg);
          mask: var(--svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: auto;
  align-self: stretch;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.wp-block-query-pagination-next:hover::after {
  animation: arrow-hover;
  animation-duration: 0.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes arrow-hover-back {
  0% {
    transform: translateX(0) rotate(180deg);
  }
  40% {
    transform: translateX(-5px) rotate(180deg);
  }
  100% {
    transform: translateX(0) rotate(180deg);
  }
}
.wp-block-query-pagination-previous {
  padding: 0;
}
.wp-block-query-pagination-previous span {
  order: 3;
}
.wp-block-query-pagination-previous::before {
  content: "";
  width: 13px;
  height: 10px;
  order: 0;
  background-color: var(--fg);
  padding: 15px 16px 15px 16px;
  /* Chrome, still requires prefix in 2022 */
  -webkit-mask: var(--svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: auto;
  /* Firefox and Safari */
  -webkit-mask: var(--svg);
          mask: var(--svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: auto;
  align-self: stretch;
  transition: background-color 0.3s ease-in-out;
  transform: rotate(180deg);
}
.wp-block-query-pagination-previous::after {
  content: "";
  width: 1px;
  display: block;
  background-color: var(--fg);
  opacity: 0.6;
  order: 2;
  align-self: stretch;
  margin-right: 16px;
  transition: background-color 0.3s ease-in-out;
  background-image: none;
}
.wp-block-query-pagination-previous:hover::before {
  animation: arrow-hover-back;
  animation-duration: 0.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@container project-list-container (min-width: 360px) {
  .is-style-cerse-projet-horizontale-card .projet .cerse_projets div {
    display: flex !important;
    align-items: stretch;
  }
  .is-style-cerse-projet-horizontale-card .projet .cerse_projets div figure {
    aspect-ratio: 1/1;
    flex: 1 0 30%;
  }
  .is-style-cerse-projet-horizontale-card .projet .cerse_projets div figure img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .is-style-cerse-projet-horizontale-card .projet .cerse_projets div > .is-vertical {
    padding: 16px 16px 0 0;
  }
}
