/**
 * Lot 018 - finitions de l'accueil sur ordinateur et mobile.
 */

/* Reassurance : conserve les trois colonnes, avec une hauteur plus compacte. */
body.home
  .moliner-home-reassurance
  > .row_col_wrap_12
  > .wpb_column
  > .vc_column-inner {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

body.home
  .moliner-home-reassurance
  > .row_col_wrap_12
  > .wpb_column
  > .vc_column-inner
  > .wpb_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.home
  .moliner-home-reassurance
  > .row_col_wrap_12
  > .wpb_column
  > .vc_column-inner
  > .wpb_wrapper
  > .divider-wrap:first-child,
body.home
  .moliner-home-reassurance
  > .row_col_wrap_12
  > .wpb_column
  > .vc_column-inner
  > .wpb_wrapper
  > .divider-wrap:last-child {
  height: 20px !important;
}

body.home .moliner-home-reassurance .nectar_icon_wrap {
  display: flex !important;
  width: 60px !important;
  height: 60px !important;
  margin: 0 auto 14px !important;
  align-items: center;
  justify-content: center;
}

body.home .moliner-home-reassurance .nectar_icon_wrap i {
  width: 48px !important;
  height: 48px !important;
  font-size: 48px !important;
  line-height: 48px !important;
}

body.home .moliner-home-reassurance .nectar_icon_wrap + .divider-wrap {
  height: 8px !important;
}

body.home .moliner-home-reassurance .wpb_text_column {
  margin-bottom: 14px !important;
}

body.home .moliner-home-reassurance .nectar-cta {
  margin-top: 14px !important;
  margin-bottom: 10px !important;
}

/* Showroom : iframe sans ligne de base et contenus centres verticalement. */
body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:first-child {
  min-height: 550px;
}

body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:first-child
  > .vc_column-inner,
body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:first-child
  > .vc_column-inner
  > .wpb_wrapper {
  height: 100%;
}

body.home .moliner-home-showroom iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:first-child
  .wpb_raw_code,
body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:first-child
  .wpb_raw_code
  > .wpb_wrapper {
  height: 100% !important;
}

body.home
  .moliner-home-showroom
  > .row_col_wrap_12
  > .wpb_column:last-child
  > .vc_column-inner
  > .wpb_wrapper {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

@media only screen and (max-width: 690px) {
  /* Carte Les Pergolas du Sud : logo au-dessus, texte lisible dessous. */
  body.home .pergolasdusud .nectar-fancy-box {
    min-height: 245px !important;
    padding: 24px !important;
    align-items: center;
  }

  body.home .pergolasdusud .nectar-fancy-box .inner {
    width: 100%;
  }

  body.home .pergolasdusud .nectar-fancy-box .heading-wrap {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  body.home .pergolasdusud .nectar-fancy-box .fancy-box-custom-icon {
    display: block !important;
    width: min(190px, 78%) !important;
    max-width: 190px !important;
    height: 71px !important;
    margin: 0 auto !important;
  }

  body.home .pergolasdusud .nectar-fancy-box h4 {
    width: 100%;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
    text-align: center;
  }

  /* Gouttiere commune de 5vw : categories, chantier et realisations. */
  body.home .moliner-home-categories {
    left: 50%;
    width: 90vw !important;
    margin-right: 0 !important;
    margin-left: -45vw !important;
  }

  body.home
    .moliner-home-categories
    > .row_col_wrap_12 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.home
    .moliner-home-categories
    > .row_col_wrap_12
    > .wpb_column {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.home
    .moliner-home-categories
    .inner_row
    > .row_col_wrap_12_inner {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.home
    .moliner-home-categories
    .inner_row
    > .row_col_wrap_12_inner
    > .wpb_column {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.home
    #ajax-content-wrap
    #intro.moliner-home-project-media-moved
    > .row_col_wrap_12 {
    padding-right: 5vw !important;
    padding-left: 5vw !important;
  }

  body.home .moliner-home-realizations-section {
    left: 50%;
    width: 90vw !important;
    margin-right: 0 !important;
    margin-left: -45vw !important;
  }

  /* Chantier du mois : media entre le titre principal et le texte. */
  body.home #intro.moliner-home-project-media-moved {
    padding-bottom: 8px !important;
  }

  body.home
    #intro.moliner-home-project-media-moved
    > .row_col_wrap_12
    > .wpb_column:first-child {
    width: 100% !important;
  }

  body.home
    #intro.moliner-home-project-media-moved
    > .row_col_wrap_12
    > .wpb_column:nth-child(2) {
    display: none !important;
  }

  body.home .moliner-home-project-carousel-mobile {
    width: 100% !important;
    height: auto !important;
    margin: 12px 0 !important;
    aspect-ratio: 1 / 1;
  }

  body.home
    #intro.moliner-home-project-media-moved
    .nectar-split-heading {
    margin-bottom: 0 !important;
  }

  body.home
    .moliner-home-project-carousel-mobile
    .flickity-viewport {
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    aspect-ratio: 1 / 1;
  }

  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .cell,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .inner-wrap-outer,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .inner-wrap,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .img-with-aniamtion-wrap,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .inner,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .hover-wrap,
  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .hover-wrap-inner {
    height: 100% !important;
  }

  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    .cell {
    width: 100% !important;
    padding: 0 !important;
    aspect-ratio: 1 / 1;
  }

  body.home
    .moliner-home-project-carousel-mobile
    .flickity-slider
    img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
  }

  /* Actualites reellement bord a bord, texte plus respire. */
  body.home
    #ajax-content-wrap
    .container.main-content
    > .row
    > .wpb_row.moliner-home-news-section {
    left: 50% !important;
    width: 100vw !important;
    margin-right: 0 !important;
    margin-left: -50vw !important;
    padding-top: 0 !important;
  }

  body.home .moliner-home-news-track .blog-content {
    padding: 32px 5vw 38px !important;
  }

  /* Reassurance mobile compacte, mais toujours empilee. */
  body.home
    .moliner-home-reassurance
    > .row_col_wrap_12 {
    flex-direction: column !important;
  }

  body.home
    .moliner-home-reassurance
    > .row_col_wrap_12
    > .wpb_column {
    width: 100% !important;
  }

  body.home
    .moliner-home-reassurance
    > .row_col_wrap_12
    > .wpb_column
    > .vc_column-inner {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  body.home
    .moliner-home-reassurance
    > .row_col_wrap_12
    > .wpb_column
    > .vc_column-inner
    > .wpb_wrapper
    > .divider-wrap:first-child,
  body.home
    .moliner-home-reassurance
    > .row_col_wrap_12
    > .wpb_column
    > .vc_column-inner
    > .wpb_wrapper
    > .divider-wrap:last-child {
    height: 10px !important;
  }

  body.home .moliner-home-reassurance .nectar_icon_wrap {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 10px !important;
  }

  body.home .moliner-home-reassurance .nectar_icon_wrap i {
    width: 42px !important;
    height: 42px !important;
    font-size: 42px !important;
    line-height: 42px !important;
  }

  body.home .moliner-home-reassurance .wpb_text_column {
    margin-bottom: 9px !important;
  }

  body.home .moliner-home-reassurance .nectar-cta {
    display: flex !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 6px !important;
    align-items: center;
    justify-content: center !important;
    text-align: center !important;
  }

  body.home .moliner-home-reassurance .nectar-cta .link_wrap {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  /* Espace plus confortable entre la map et les informations showroom. */
  body.home
    .moliner-home-showroom
    > .row_col_wrap_12
    > .wpb_column:last-child
    > .vc_column-inner {
    padding: 30px 5vw 38px !important;
  }

  /* Partenaires : largeur utile accrue, logos agrandis, fleches exterieures. */
  body.home .moliner-home-partners {
    left: 50%;
    width: 90vw !important;
    margin-right: 0 !important;
    margin-left: -45vw !important;
  }

  body.home .moliner-home-partners .wpb_column {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.home .moliner-home-partners .nectar-flickity {
    width: 100% !important;
    overflow: visible !important;
  }

  body.home .moliner-home-partners .flickity-viewport {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
  }

  body.home .moliner-home-partners .flickity-slider .cell {
    width: 82% !important;
    padding: 6px !important;
  }

  body.home .moliner-home-partners .flickity-slider .cell img {
    width: 100% !important;
    max-width: 235px !important;
    max-height: 115px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    object-fit: contain;
  }

  body.home
    .moliner-home-partners
    .flickity-prev-next-button.previous {
    left: -8px !important;
  }

  body.home
    .moliner-home-partners
    .flickity-prev-next-button.next {
    right: -8px !important;
  }

  body.home
    .moliner-home-partners
    .flickity-prev-next-button {
    transform: translateY(-50%) scale(0.78) !important;
  }
}
