/* Style pour pc */
@media only screen and (min-width: 768px) {
  #shortcode-list h3 {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #dedede;
    padding-bottom: 12px;
    margin-bottom: 42px !important;
  }

  #shortcode-list article {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 42px 0px;
    padding-left: 32px;
    border-left: 2px solid black;
    gap: 12px;
    transition: all ease 300ms;
  }

  #shortcode-list article h2.article-title {
    font-size: 24px !important;
    margin: 12px 0 !important;
  }

  #shortcode-list
    article
    :is(
      .article-date-start,
      .article-date-end,
      .article-price,
      .article-place,
      .article-excerpt
    ) {
    margin: 4px 0px;
  }

  #shortcode-list article .dates-div {
    width: 24%;
    min-width: 348px;
    padding: 12px 18px;
    background-color: #0d2c3d;
  }

  #shortcode-list article .dates-div :is(h4, p) {
    color: white;
  }

  #shortcode-list article .dates-div h4 {
    font-size: 20px;
  }

  #shortcode-list article .dates-div p {
    margin: 8px 16px;
    font-size: 18px !important;
    color: white !important;
  }

  #shortcode-list article .article-price {
    position: absolute;
    background-color: white;
    padding: 14px 16px;
    top: 0px;
    right: 112px;
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #0d2c31;
  }

  #shortcode-list article .article-excerpt {
    font-size: 14px;
    opacity: 0.64;
  }

  #shortcode-list article:hover {
    margin-left: 24px;
    border-left-width: 6px;
  }

  #shortcode-list article a {
    display: block;
    width: max-content;
    padding: 8px 12px;
    text-align: center;
    font-weight: bold;
    font-style: italic;
  }
}

/* Style smartphone */

@media only screen and (max-width: 767px) {
  #shortcode-list h3 {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #dedede;
    padding-bottom: 12px;
    margin-bottom: 42px !important;
  }

  #shortcode-list article {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 28px 0px;
    padding-left: 18px;
    border-left: 2px solid black;
    gap: 8px;
    transition: all ease 300ms;
  }

  #shortcode-list article h2.article-title {
    font-size: 18px !important;
    margin: 12px 0 !important;
  }

  #shortcode-list
    article
    :is(
      .article-date-start,
      .article-date-end,
      .article-price,
      .article-place,
      .article-excerpt
    ) {
    margin: 4px 0px;
  }

  #shortcode-list article .dates-div {
    width: 55%;
    min-width: 224px;
    padding: 10px 16px;
    background-color: #0d2c3d;
  }

  #shortcode-list article .dates-div :is(h4, p) {
    color: white;
  }

  #shortcode-list article .dates-div h4 {
    font-size: 20px;
  }

  #shortcode-list article .dates-div p {
    margin: 6px 12px;
    font-size: 16px !important;
    color: white !important;
  }

  #shortcode-list article .article-price {
    position: absolute;
    background-color: white;
    padding: 8px 10px;
    top: 0px;
    right: 0;
    border-radius: 4px;
    border: 1px solid #0d2c31;
    z-index: 999;
  }

  #shortcode-list article .article-excerpt {
    font-size: 12px;
    opacity: 0.64;
  }

  #shortcode-list article a {
    display: block;
    width: max-content;
    padding: 6px 10px;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    font-style: italic;
  }
}

/* AJAX Loader */

#shortcode-list .loader-ajax {
  color: black;
  font-size: 30px;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 72px auto;
  position: relative;
  transform: translateZ(0);
  animation: load 1.7s infinite ease, round 1.7s infinite ease;
  display: inline-block;
}

@keyframes load {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
      -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}

@keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Boutton ajax */

#shortcode-list #load-more-ajax {
  margin: 32px 0 0 0;
  display: block;
  border: none;
  background-color: rgba(13, 44, 61, 0.5);
  padding: 12px 18px;
  border-radius: 25px;
  transition: all ease 300ms;
  cursor: pointer;
  color: white;
}

#shortcode-list #load-more-ajax:hover {
  scale: 1.1;
}
