/**
* Styles to display the vehicle single page
*/

/** Wrapper */

.single-vehicules_occasion .vehicules_occasion {
  width: 90%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
}


/** Back button */

.single-vehicules_occasion .btn--back {
  opacity: 0.5;
  display: block;
  text-align: center;
  margin-bottom: 32px;
  text-decoration: none;
  font-size: 90%;
}

.single-vehicules_occasion .btn--back:hover,
.single-vehicules_occasion .btn--back:active,
.single-vehicules_occasion .btn--back:focus {
  opacity: 1;
}

.single-vehicules_occasion .btn--back svg {
  margin-right: 8px;
  display: inline-block;
}


/** Carousel */

.occasion__carousel {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.swiper-container {
  position: relative;
}

ul.carousel__slides {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.carousel__big .carousel__slides {
  cursor: -webkit-grab;
  cursor: grab;
}

.carousel__big .carousel__slides:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.carousel__slides > li {
  list-style: inherit;
  margin: 0;
}

.carousel__slides img {
  display: block;
  width: 100%;
}

.carousel__big:hover > .carousel__button {
  display: block;
}

.carousel__button.swiper-button-prev,
.carousel__button.swiper-button-next {
  display: none;
  font-size: 0;
  line-height: 0;
  padding: 0;
  color: transparent;
  border: none;
  outline: none;
  background-color: rgba(0,0,0,0.75);
  background-repeat: no-repeat;
  background-size: auto 60%;
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: calc(50% - 44px / 2);
}

.carousel__button.swiper-button-prev {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23fff' d='M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z'/%3E%3C/svg%3E");
  background-position: 45% 50%;
}

.carousel__button.swiper-button-next {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23fff' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E");
  background-position: 55% 50%;
}

.no-js .carousel__thumbs,
.no-js .carousel__nav {
  display: none;
}

.carousel__thumbs ul {
  padding: 4px;
  box-sizing: border-box;
  width: calc(100% - 4px);
}

.carousel__thumbs li:not(.swiper-slide-thumb-active) {
  opacity: 0.5;
  cursor: pointer;
}


/** Vehicle infos */

article.vehicules_occasion .vehicule__infos {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  overflow: hidden;
  margin-top: 16px;
}

article.vehicules_occasion .infos__main {
  padding: 16px 24px;
}

article.vehicules_occasion .vehicule__infos h2 {
  margin-bottom: 0;
}

article.vehicules_occasion .vehicule__infos p {
  margin-bottom: 0;
}

article.vehicules_occasion .vehicule__infos .vehicule__version {
  font-size: 0.875em;
}

article.vehicules_occasion table {
  width: 100%;
  opacity: 0.75;
  margin-top: 16px;
  margin-bottom: 0;
  border: 0;
}

article.vehicules_occasion table td {
  padding-top: 8px;
  padding-bottom: 8px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

article.vehicules_occasion table td:first-child {
  width: 160px;
}

article.vehicules_occasion table td:last-child {
  font-weight: bold;
}

article.vehicules_occasion .vehicule__prix {
  margin-top: 16px;
}

article.vehicules_occasion .vehicule__prix span {
  font-weight: bold;
  font-size: 18px;
  vertical-align: baseline;
  display: inline-block;
  margin-left: 4px;
}

article.vehicules_occasion table a {
  transition: none;
}


/** Contact buttons */

article.vehicules_occasion .infos__contact {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0,0,0,0.15);
  padding: 8px;
}

.infos__contact .btn {
  border-width: 1px;
  border-style: solid;
  font-size: 14px;
  padding: 16px;
  line-height: 1;
  border-radius: 4px;
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  text-decoration: none;
  font-weight: bold;
  box-sizing: border-box;
  cursor: pointer !important;
}

.infos__contact .btn:hover,
.infos__contact .btn:active,
.infos__contact .btn:focus {
  text-decoration: none;
}

.infos__contact .btn.is-visible {
  background-color: transparent;
}

.infos__contact .btn.is-visible:hover,
.infos__contact .btn.is-visible:active,
.infos__contact .btn.is-visible:focus {
  text-decoration: underline;
  background-color: transparent;
}

.infos__contact .btn span {
  width: 100%;
}

.infos__contact .btn span::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.5;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

.infos__contact .btn.icon__phone span::before {
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/%3E%3C/svg%3E");
}

.infos__contact .btn.icon__phone.is-visible span::before {
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%230b5c8f' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z'/%3E%3C/svg%3E");
}

.infos__contact .btn.icon__email span::before {
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E");
}

.infos__contact .btn.icon__email.is-visible span::before {
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%230b5c8f' d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E");
}

.infos__contact .btn + .btn,
.infos__contact .btn + div {
  margin-top: 8px;
}

@media screen and (min-width: 900px) {

  article.vehicules_occasion .occasion__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
  }

  article.vehicules_occasion .occasion__carousel {
    flex: 0 1 auto;
    width: 57%;
  }

  article.vehicules_occasion .vehicule__infos {
    flex: 0 1 auto;
    width: calc(43% - 32px);
    margin-top: 0;
  }

  article.vehicules_occasion .infos__main {
    padding: 24px 32px;
  }

  article.vehicules_occasion .vehicule__infos h2 {
    font-size: 22px;
  }

  .vehicules_occasion .vehicule__infos .vehicule__garantie {
    font-size: 0.875em;
  }

  article.vehicules_occasion .vehicule__prix span {
    font-size: 1.25em;
    opacity: 1;
  }

  article.vehicules_occasion .infos__contact {
    display: flex;
    justify-content: space-between;
  }

  .infos__contact > .btn,
  .infos__contact > div {
    width: calc(50% - 4px);
  }

  .infos__contact .btn {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
  }

  .infos__contact > div .btn {
    width: 100%;
  }

  .infos__contact .btn {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .infos__contact .btn + div,
  .infos__contact > div .btn:first-of-type {
    margin-top: 0;
  }
}


/** Fiche technique & équipements */

.vehicule__more {
  padding: 24px 32px;
  margin: 24px 0;
  background-color: rgba(0,0,0,0.025);
}

.vehicule__technique ul {
  margin-bottom: 32px;
}

.vehicule__technique ul span {
  display: inline-block;
  width: calc(100% - 135px - 4px);
  vertical-align: top;
}

.vehicule__more h3 {
  font-weight: bold;
  font-size: 0.875em;
  padding: 16px;
  opacity: 0.75;
  background-color: rgba(0,0,0,0.065);
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.vehicule__more h3 > svg,
.vehicule__more h3 span {
  display: inline-block;
  vertical-align: middle;
}

.vehicule__more h3 span {
  width: auto;
  line-height: 1.25;
  padding-right: 32px;
}

.vehicule__more h3 > svg {
  width: 16px;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.no-js .vehicule__more h3 button svg {
  display: none;
}

.vehicule__more .toggle__view {
  position: absolute;
  top: 0;
  right: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-transform: none;
  line-height: 1;
  font-size: 100%;
  font-family: inherit;
  margin: 0;
  background-color: transparent !important;
  border: 0;
  padding: 0 24px;
  display: block;
  height: 100%;
  width: 100%;
  text-align: right;
  opacity: 0.85;
  cursor: pointer !important;
}

.vehicule__more .toggle__view:hover,
.vehicule__more .toggle__view:active,
.vehicule__more .toggle__view:focus {
  opacity: 1;
}

.vehicule__more h3:not(.is-hidden) .toggle__view svg {
  transform: rotate(180deg);
  transform-origin: center;
}

.vehicule__more h3.is-hidden + ul {
  display: none;
}

.vehicule__more ul {
  opacity: 0.75;
  margin: 16px 0 0;
  list-style: none;
  padding-left: 0;
}

.vehicule__more ul > li {
  list-style: inherit;
  font-size: 0.75em;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.vehicule__more .technique__title {
  width: 135px;
}

.vehicule__more .technique__detail {
  font-weight: bold;
}

.vehicule__more .vehicule__options {
  margin-top: 40px;
}

@media screen and (min-width: 600px) {

  .vehicule__more ul {
    display: flex;
    flex-wrap: wrap;
  }

  .vehicule__more ul > li {
    flex: 0 1 auto;
    width: calc(50% - 16px);
    margin-left: 8px;
    margin-right: 8px;
  }

}

@media screen and (min-width: 900px) {

  .vehicule__more {
    padding: 40px 48px 32px;
    margin: 40px 0;
    flex-basis: 100%;
  }

  .vehicule__more ul > li {
    width: calc(100% / 3 - 16px);
    margin-left: 8px;
    margin-right: 8px;
  }

  .single-vehicules_occasion .btn--back {
    margin-bottom: 48px;
  }
}

@media screen and (min-width: 1200px) {

  .vehicule__more ul > li {
    width: calc(25% - 16px);
  }
}
