/*** Responsive ***/
@media (min-width: 2500px) {
  /* Simulateur section */
  body.wide.home #simulateur {
    height: 100vh;
  }
  body.wide.home #simulateur .a-propos-texte {
    position: absolute;
    transform: translateY(-50%);
  }

  /* A propos section */
  body.wide.home #a-propos {
    height: 100vh;
  }
  body.wide.home #a-propos #logo-ssl {
    width: 24vw;
  }

  /* Contact section */
  body.wide.home #contact {
    height: 100vh;
    overflow: hidden;
  }
  body.wide.home #contact .col-1 {
    position: absolute;
    transform: translateY(-50%);
    width: 50%;
    margin: 0 auto;
    display: block;
    float: left;
  }
  body.wide.home #contact .col-2 {
    position: absolute;
    transform: translateY(-50%);
    width: 50%;
    margin: 0 auto;
    padding-bottom: 200px;
    display: block;
    float: left;
  }
}

@media (min-width: 1401px) and (max-width: 1600px) {
  /* Footer */
  .footer > .container > .row:first-of-type {
    width: 36%;
  }
  footer .row .col-md-4 {
    width: 50%;
  }
  .footer-bottom {
    padding-top: 0;
  }
  .footer-bottom .social-links {
    display: none;
  }
  .copyright {
    margin-top: 1vw;
  }
  /* A propos section */
  #a-propos .a-propos-texte p {
    font-size: 1.6em;
  }
  #a-propos .a-propos-texte {
    padding-right: 6%;
  }

  /* Loan capacity simulator */
  .page-simulateur-capacite-demprunt,
  .page-simulateur-credit-immobilier,
  .page-simulateur-defiscalisation-pinel {
    #simform .section-title h2 {
      padding-top: var(--padding-mobile);
    }
  }

  /* La Reunion */
  .page-la-reunion #section1b .section1b-carte {
    padding-left: 5%;
  }
  .page-la-reunion #section2 .section-text .section2text {
    width: 80%;
  }
  .page-la-reunion #section2 .section-text .section2text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section3 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section3 .section-text .section3text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section4 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section4 .section-text .section4txt li {
    font-size: 1.4em;
  }
  .page-la-reunion #section5 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section5 .section-text .section5text {
    width: 87%;
  }
  .page-la-reunion #section5 .section-text .section5text li {
    font-size: 1.2em;
  }
  .page-la-reunion #section6 .section-text .section6txt li {
    font-size: 1.4em;
  }
  .page-la-reunion #section6 .section-text .section6txt p {
    font-size: 1.4em;
  }
  .page-la-reunion #section7 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section7 .section-text .section7text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section8 .section-text .section8txt {
    width: 90%;
  }
  .page-la-reunion #section8 .section-text .section8txt li {
    font-size: 1.4em;
  }

  /* Single listing */
  body.single-listing #contact .simulateur {
    width: 70%;

    p {
      font-size: 1.4em;
    }

    .sim-content {
      h4 {
        margin-bottom: 20px;
      }

      .button {
        margin-top: 20px;
      }
    }
  }
}

/* Desktop Large */
@media (min-width: 1200px) and (max-width: 1400px) {
  /* Header */
  body.home header #menu-main-menu li {
    font-size: 0.9em;
  }

  /* Footer */
  .footer > .container > .row:first-of-type {
    width: 36%;
  }
  footer .row .col-md-4 {
    width: 50%;
  }
  .footer-bottom {
    padding-top: 0;
  }
  .footer-bottom .social-links {
    display: none;
  }
  .copyright {
    margin-top: 1vw;
  }

  /* Programmes section */
  #programmes .programme-link .link span:before {
    width: 15%;
    left: -20%;
  }
  #programmes .programme-link .link span:after {
    width: 15%;
    right: -20%;
  }
  #programmes .programme-link .link span {
    font-size: 1.4em;
  }

  /* Simulateur section */
  #simulateur .sim-content h4 {
    font-size: 1.6em;
  }
  #simulateur .sim-content .button {
    font-size: 1em;
  }
  #simulateur .sim-content .icon svg {
    width: 28%;
  }
  #simulateur .a-propos-texte {
    top: 65%;
  }

  /* A propos section */
  #a-propos .a-propos-texte p {
    font-size: 1.4em;
  }
  #a-propos .a-propos-texte .button p {
    font-size: 1.2em;
  }

  /* Contact section */
  #contact .contact-text p {
    font-size: 1.2em;
    width: 70%;
  }
  #contact .mention .mention-text p {
    font-size: 0.8em;
  }

  /* Programmes page */
  body.page-explore
    .results-view.grid
    .lf-item:hover
    .lf-item-info
    .lf-contact
    li:nth-child(2) {
    font-size: 1.4em;
  }

  /* Loan capacity simulator */
  .page-simulateur-capacite-demprunt,
  .page-simulateur-credit-immobilier,
  .page-simulateur-defiscalisation-pinel {
    .arrow {
      display: none;
    }
    #simform {
      height: 100%;
      padding-bottom: 100px;

      .section-title h2 {
        padding-top: var(--padding-mobile);
      }
    }
  }

  /* La Reunion */
  .page-la-reunion #section1b .section1b-carte {
    padding-left: 5%;
  }
  .page-la-reunion #section2 .section-text .section2text {
    width: 80%;
  }
  .page-la-reunion #section2 .section-text .section2text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section3 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section3 .section-text .section3text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section4 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section4 .section-text .section4txt {
    width: 90%;
  }
  .page-la-reunion #section4 .section-text .section4txt li {
    font-size: 1.2em;
  }
  .page-la-reunion #section5 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section5 .section-text .section5text {
    width: 90%;
  }
  .page-la-reunion #section5 .section-text .section5text li {
    font-size: 1.1em;
  }
  .page-la-reunion #section5 .section-text .section5text p {
    font-size: 1.1em;
  }
  .page-la-reunion #section6 .section-text .section6txt li {
    font-size: 1.2em;
  }
  .page-la-reunion #section6 .section-text .section6txt p {
    font-size: 1.2em;
  }
  .page-la-reunion #section7 .section-img {
    padding-left: 1%;
  }
  .page-la-reunion #section7 .section-text .section7text li {
    font-size: 1.4em;
  }
  .page-la-reunion #section8 .section-text .section8txt {
    width: 90%;
  }
  .page-la-reunion #section8 .section-text .section8txt li {
    font-size: 1.2em;
  }

  /* Single listing */
  body.single-listing .profile-header {
    padding-bottom: 80px;
  }
  body.single-listing #contact .simulateur p {
    font-size: 1.4em;
  }
  body.single-listing #contact .simulateur .sim-content h4 {
    margin-bottom: 20px;
  }
  body.single-listing #contact .simulateur .sim-content .button {
    margin-top: 20px;
  }
}

/* Desktop & Tablet Landscape */
@media (max-width: 1024px) {
  /* Header */
  header {
    height: 120px !important;
  }
  .header .header-center {
    top: unset;
    right: unset;
  }
  .header .header-left {
    position: static;
    transform: none;
    height: 120px;
  }
  .header .header-left .mobile-menu {
    margin-left: 2vw;
    margin-top: 4vw;
  }
  .header .header-container .header-top .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto !important;
    width: 130px;
  }
  /* Footer */
  .footer-info p {
    font-size: 1em;
    line-height: unset;
  }
  .logo-snpi {
    right: 3vw;
  }
  .footer > .container > .row:first-of-type {
    width: 36%;
  }
  footer .row .col-md-4 {
    width: 50%;
  }
  .footer-bottom {
    padding-top: 0;
  }
  .footer-bottom .social-links {
    display: none;
  }
  .footer-bottom .nbp img {
    width: 3vw;
  }
  .copyright {
    margin-top: 1vw;
  }
  /* Menu styles */
  body.home header .header-left .logo {
    display: none !important;
  }

  body.home header #menu-main-menu li {
    margin-left: 0;
  }
  #header-top .logotype svg {
    width: 63vw !important;
  }

  /* Programmes section */
  #programmes .programme-link .link span {
    font-size: 1.2em;
  }
  #programmes .listing-feed .lf-item .lf-item-info .lf-contact li:nth-child(2) {
    font-size: 1.2em;
  }
  #programmes
    .listing-feed
    .lf-item:hover
    .lf-item-info
    .lf-contact
    li:nth-child(2) {
    font-size: 1.3em;
  }

  /* Simulateur section */
  #simulateur .section-title h2 {
    margin-bottom: 20px;
    font-size: 2em;
  }
  #simulateur .simulateur-subtile p {
    font-size: 1.6em;
  }
  #simulateur .sim-content h4 {
    font-size: 1.2em;
  }
  #simulateur .sim-content .button {
    font-size: 1em;
  }
  #simulateur .sim-col:first-child .sim-content .button {
    margin-top: 20px;
  }
  #simulateur .sim-col:last-child .sim-content .button {
    margin-top: 36px;
  }

  /* A propos section */
  #a-propos .a-propos-texte p {
    font-size: 1.2em;
  }
  #a-propos .a-propos-texte h2 {
    font-size: 1.6em;
  }
  #a-propos .a-propos-texte .button p {
    font-size: 1em;
    margin-top: 0;
  }
  #a-propos #logo-ssl {
    width: 32vw;
    margin-bottom: 40px;
  }

  /* Contact section */
  #contact .contact-text p {
    font-size: 1.2em;
    width: 80%;
  }
  #contact .col-1 {
    top: 43%;
  }
  #contact .mention .mention-text p {
    left: 8vw;
    padding-right: 8vw;
  }
  #contact .mention .mention-logo img {
    right: 7vw;
  }
  #contact .col-2 form .wpforms-submit {
    margin-top: 20px;
  }
  #contact .mention .mention-text p {
    font-size: 0.8em;
  }

  /* Programmes page */
  body.page-explore .results-view.grid .log-wrapper {
    width: 50%;
  }
  body.page-explore #c27-site-wrapper {
    background-position: left 120px;
  }
  .c27-top-content-margin {
    height: 60px;
  }

  /* Page La Reunion */
  .page-la-reunion [id^='section'] {
    height: 100%;
  }

  .page-la-reunion [id^='section'] > .elementor-container {
    display: flex;
    flex-direction: column;
  }

  /* Titres */
  .page-la-reunion [id^='section'] .section-title h2 {
    font-size: 1.2em;
    line-height: 1.4em;
    padding-top: 20px;
  }

  .page-la-reunion [id^='section'] .section-title h2:after {
    width: 30%;
  }

  /* Conteneur du contenu */
  .page-la-reunion [id^='section'] > .elementor-container > .elementor-row {
    position: relative;
    flex: 1;
  }

  /* Images et textes */
  .page-la-reunion [id^='section'] .section-img,
  .page-la-reunion [id^='section'] .section-text,
  .page-la-reunion [id^='section'] [class*='carte'],
  .page-la-reunion [id^='section'] [class*='-text'] {
    position: static;
    transform: none;
    margin: 0 auto;
    display: block !important;
    text-align: center;
  }

  .page-la-reunion [id^='section'] .section-img {
    width: 60% !important;
  }

  .page-la-reunion [id^='section'] .section-text [class*='text'] {
    width: calc(100% - 40px) !important;
    max-width: 80%;
    position: static;
    transform: none;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    box-sizing: border-box;
  }

  .page-la-reunion [id^='section'] .section-text [class*='text'] p,
  .page-la-reunion [id^='section'] .section-text [class*='text'] li {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  /* Ajustement conteneurs de texte */
  .page-la-reunion
    [id^='section']
    .elementor-container
    > .elementor-column
    > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Section 1 spécifique */
  .page-la-reunion #section1 {
    height: calc(100vh - 80px);
  }

  .page-la-reunion #section1 h2 {
    font-size: 1.5em;
    margin-left: 0;
  }

  /* Section 1b spécifique */
  .page-la-reunion #section1b .section1b-carte {
    width: 90% !important;
  }

  .page-la-reunion #section1b .section1b-text {
    width: 100% !important;
  }

  .page-la-reunion #section1b .section1b-text .section1b-content li {
    font-size: 1.2em;
  }

  /* Sections avec image large */
  .page-la-reunion #section2 .section-img,
  .page-la-reunion #section8 .section-img {
    width: 80% !important;
    padding-left: 0;
  }

  /* Section 6 spécifique */
  .page-la-reunion #section6 .section-text {
    width: 100% !important;
    padding-left: 0;
  }

  /* Section 7 spécifique */
  .page-la-reunion #section7 .section-title h2:after {
    border-color: var(--primary-color);
  }

  .page-la-reunion #section7 .section-text p {
    font-size: 1.1em;
  }

  /* Single listing */
  body.single-listing .profile-header {
    padding-bottom: 80px;
  }
  body.single-listing #contact .simulateur p {
    font-size: 1.4em;
  }
  body.single-listing #contact .simulateur .sim-content h4 {
    margin-bottom: 20px;
  }
  body.single-listing #contact .simulateur .sim-content .button {
    margin-top: 20px;
  }
  body.single-listing #contact .form {
    padding-right: 6%;
  }
  body.single-listing #contact .simulateur {
    width: 80%;
  }

  body.single-listing .profile-cover-image {
    height: calc(100vh - 120px);

    .main-info-mobile {
      font-size: 0.8em;

      /* Styles pour listing-main-info */
      .listing-main-info {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        transform: none;
        padding: 0;
        background: transparent;
      }

      /* Styles pour les colonnes */
      .col-md-6 {
        width: 100%;
        padding: 0;
        height: 100%;

        &:first-of-type {
          display: none;
        }
      }

      /* Styles pour price-or-date */
      .price-or-date {
        position: absolute;
        top: 50px;
        left: 0;
        background: rgba(10, 92, 132, 0.8);
        padding: 15px 100px 15px 40px;
        clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
        transition: all 0.2s ease-in;
        margin: 0;

        .value {
          font-size: 3em;

          span {
            display: block;
            text-transform: uppercase;
            font-weight: 300;
            font-size: 0.4em;
          }
        }
      }

      /* Styles pour action */
      .action {
        position: absolute;
        bottom: 0;
        right: 0;
        background: rgba(10, 92, 132, 0.8);
        width: auto;
        min-width: 30%;
        text-align: center;
        padding: 16px 16px 16px 120px;
        clip-path: polygon(32% 0%, 100% 0%, 100% 100%, 0% 100%);

        .lmb-calltoaction {
          > a {
            background: transparent;
            &:before {
              background: transparent;
              transform: none;
            }
          }

          &:first-child a span {
            font-size: 1.2em;
            font-weight: 300;
            position: relative;

            &:before,
            &:after {
              content: '';
              width: 50px;
              height: 1px;
              border-bottom: 1px solid #fff;
              position: absolute;
              bottom: 51%;
            }

            &:before {
              left: -88%;
            }

            &:after {
              right: -88%;
            }
          }

          &:nth-child(2) {
            padding: 0;

            span {
              font-size: 2em;
              letter-spacing: 1px;
              font-weight: 400;
            }
          }
        }

        /* Styles pour log */
        .log {
          .element {
            background: transparent;
            border: none;
            margin: 0;
          }

          .pf-head {
            display: inline-block;
            vertical-align: top;

            i {
              font-size: 2em;
              color: #fff !important;
              margin-right: 10px;
            }
          }

          .pf-body {
            display: inline-block;
            width: auto;
            vertical-align: middle;
            padding-top: 0;

            ul {
              margin-top: -10px;

              li {
                min-width: unset;

                i {
                  display: none;
                }

                a {
                  font-size: 1.4em;
                  text-transform: uppercase;
                  color: #fff;
                  margin-bottom: 0;
                  padding-top: 5px;

                  &:after {
                    content: '|';
                    padding: 0 10px;
                  }
                }

                &:last-of-type a:after {
                  content: '';
                }
              }
            }
          }
        }
      }
    }
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  /* Scroll to top */
  #scrolltotop {
    display: none !important;
  }
  /* Menu styles */
  header #menu-main-menu li {
    padding: 2vw;
  }

  /* Header */
  header #menu-main-menu li:hover a,
  header #menu-main-menu li:focus a {
    color: #fff !important;
  }
  .header .header-right {
    display: none;
  }

  /* Footer */
  .footer-info p {
    font-size: 1em;
    line-height: unset;
  }
  .logo-snpi {
    right: 3vw;
    top: -35%;
  }
  .footer > .container > .row:first-of-type {
    width: 36%;
  }
  footer .row .col-md-4 {
    width: 50%;
  }
  .footer-bottom {
    padding-top: 0;
  }
  .footer-bottom .social-links {
    display: none;
  }
  .footer .c_widget {
    font-size: 10px;
  }
  .footer-top {
    margin-top: 100px;
  }
  #site-footer .footer-infos {
    display: none;
  }
  #footer-bottom .nbp img {
    width: 8vw;
  }
  .copyright {
    margin-top: 1vw;
  }
  .copyright p {
    font-size: 1em;
    padding-right: 6px;
  }

  /* Body Home */
  body.home .header {
    top: 0 !important;
    left: 2vw !important;
  }
  body.home .header .header-left {
    height: auto;
    padding: 0 1vh;
  }
  body.home .header .header-left .mobile-menu {
    margin-top: 0;
    margin-left: 0;
  }
  body.home .header .header-left .mobile-menu i {
    color: #0a5c84 !important;
  }
  body.home .header .header-center {
    right: 0 !important;
  }
  body.home header #menu-main-menu li {
    margin: 0;
    padding: 2vw;
  }
  body.home header #menu-main-menu li a:after,
  body.home header #menu-main-menu li a:before {
    display: none;
  }
  body.home header #menu-main-menu li:hover {
    background: #0a5c84;
  }

  #header-top .logotype svg {
    width: 83vw !important;
  }

  /* Programmes section */
  #programmes {
    height: 100%;
  }
  #programmes .programmes-content .grid-item {
    width: 100%;
    height: 50vh;
    position: static;
  }
  #programmes .listing-feed .lf-item {
    height: 50vh;
  }
  #programmes .listing-feed .lf-item .lf-item-info .lf-contact li:nth-child(2) {
    font-size: 1.4em;
  }
  #programmes .listing-feed .lf-item .lf-head {
    padding-left: 20px;
  }
  #programmes .programme-link {
    position: static;
    width: 100%;
    height: 50vh;
    padding-bottom: 100px;
  }
  #programmes .programme-link .link span {
    font-size: 1.6em;
  }

  /* Simulateur section */
  #simulateur {
    height: 100%;
  }
  #simulateur .section-title {
    padding-top: 80px;
  }
  #simulateur .a-propos-texte {
    position: static;
    transform: none;
  }
  #simulateur .section-content .elementor-container {
    display: block;
    margin-bottom: 100px;
  }
  #simulateur .section-content .elementor-container > .elementor-row {
    display: block;
  }
  #simulateur .sim-col {
    float: none;
    width: 70%;
    margin: 0 auto 40px auto;
  }

  /* A propos section */
  #a-propos {
    height: 100%;
  }
  #a-propos .apropos-img {
    width: 100%;
    margin-bottom: 30px;
  }
  #a-propos .a-propos-texte {
    width: 90%;
    margin: 0 auto;
    display: block;
    padding: 0 0 100px 0;
  }
  #a-propos #logo-ssl {
    width: 43vw;
    margin-bottom: -20px;
  }

  /* Contact section */
  #contact {
    height: 100%;
  }
  #contact .contact-logo #logo-contact svg {
    width: 53vw !important;
  }
  #contact .col-1 {
    position: static;
    transform: none;
    width: 80%;
    margin: 0 auto;
  }
  #contact .col-2 {
    position: static;
    transform: none;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 200px;
  }
  #contact .mention .mention-logo img {
    width: 15vw;
  }
  #contact .col-2 form .wpforms-submit {
    width: 45%;
  }

  /* Programmes page */
  body.page-explore .results-view.grid .log-wrapper {
    display: none;
  }

  /* loan-capacity-simulator */
  .page-simulateur-capacite-demprunt,
  .page-simulateur-credit-immobilier,
  .page-simulateur-defiscalisation-pinel {
    /* Style du formulaire */
    #simform {
      .section-title h2 {
        padding-top: 22px;
      }
    }

    #simform #form {
      width: 100% !important;
      margin: 0 auto !important;
    }

    /* Style du footer */
    #formfooter {
      height: 100%;

      .footer-text .section-content {
        position: static;
        transform: none;
        width: 90%;
        margin: 40px auto 100px;
      }
    }
  }

  /* La Reunion */
  .page-la-reunion {
    /* Styles communs pour toutes les sections */
    [id^='section'] {
      height: 100%;

      /* Styles communs pour les images et textes */
      .section-img,
      [class*='carte'] {
        position: static;
        transform: none;
        margin: 0 auto;
        display: block !important;
      }

      /* Images par défaut */
      .section-img {
        width: 40% !important;
      }
    }

    #section1b {
      .section1b-carte {
        width: 80% !important;
      }
    }

    /* Sections avec image large */
    #section2,
    #section8 {
      .section-img {
        width: 80% !important;
        padding-left: 0;
      }
    }
  }

  /* Single listing */
  body.single-listing #contact {
    padding: 80px 0;

    .section-content {
      position: static;
      transform: none;
    }

    /* Styles communs pour emprunt et form */
    .emprunt,
    .form {
      display: block;
      width: 80%;
      margin: 0 auto;
    }

    /* Styles spécifiques pour form */
    .form {
      margin-top: 80px;
      padding: 0;
      position: relative;
      z-index: 2;
    }
  }

  body.single-listing .job-manager-pagination {
    padding: 0 15px;
  }

  body.single-listing.type-programme .cts-right-column #logocontact {
    display: none;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    background: #fff;
    font-size: 12px;
  }

  /* Header */
  #header-top .logotype svg {
    width: 88vw !important;
  }

  #cookie-law-info-again {
    display: none !important;
  }
  .mobile-menu {
    display: block;
  }
  header .header-bottom {
    display: block;
  }
  .header-left {
    display: none;
  }
  .contact-link svg {
    margin-top: -8px;
    width: 60%;
    right: -9px;
  }

  .header .header-style-default {
    height: 80px !important;
  }
  .header .header-left {
    height: 80px !important;
  }
  .header .header-container .header-top .logo {
    width: 100px;
    margin-left: 12px;
  }

  /* Footer */
  .footer-info {
    position: relative;
    left: 0;
    bottom: auto;
  }
  .footer-top {
    margin-top: 40px;
    height: auto;
    padding: 2vw;
  }
  .footer-info p {
    font-size: 0.8em;
    width: 65%;
    color: #0a5c84 !important;
    -webkit-text-fill-color: #0a5c84;
  }
  .footer-info p:last-of-type {
    margin-bottom: 0;
  }
  .footer .container {
    position: relative;
  }
  .footer .container > .row:first-of-type {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: block;
    z-index: 2;
  }
  #menu-footer-menu {
    margin: 0;
    padding: 0;
  }
  #menu-footer-menu li {
    background: #fff;
    padding: 5px 0;
    text-align: center;
  }
  #menu-footer-menu li a {
    color: #0a5c84;
    border: none;
    padding: 0;
    font-size: 1em;
    font-weight: 600 !important;
  }
  #menu-footer-menu li:first-child a {
    padding: 0 5px;
  }
  .footer > .container > .row:last-of-type {
    display: block;
    text-align: left;
  }
  .footer > .container > .row {
    margin: 0;
  }
  .footer-bottom .row {
    margin: 0;
  }
  .footer > .container > .row:last-of-type .reveal {
    padding: 0;
  }
  .copyright {
    margin-top: 0;
  }
  .copyright p {
    text-align: left;
    padding: 0;
    font-size: 0.9em;
    margin-bottom: 0;
  }
  .footer .container {
    padding: 0;
  }
  .footer-bottom {
    margin: 5px 0;
  }
  .nbp img {
    width: 33%;
  }

  /* Simulateur section */
  #simulateur .simulateur-subtile p {
    font-size: 1.2em;
  }
  #simulateur .sim-col {
    width: 80%;
  }
  #simulateur .sim-content .icon svg {
    width: 55%;
  }
  #simulateur .elementor-column:first-of-type .sim-content .icon svg {
    margin-bottom: -15px;
  }
  #simulateur .sim-content .button {
    margin-bottom: 40px;
  }

  /* Contact section */
  #contact .col-1 {
    width: 100%;
  }
  #contact .col-2 {
    width: 100%;
  }
  #contact .contact-logo #logo-contact svg {
    width: 80vw !important;
  }
  #contact .title h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
  }
  #contact .mention .mention-logo img {
    width: 25vw;
  }

  /* Programmes page */
  body.page-explore #c27-site-wrapper {
    background-position: left 80px;
  }
  body.page-explore .section-title h2 {
    font-size: 2em;
  }
  body.page-explore
    .results-view.grid
    .lf-item
    .lf-item-info
    .lf-contact
    li:nth-child(2) {
    font-size: 1.4em;
  }

  /* Loan capacity simulator */
  .page-simulateur-capacite-demprunt,
  .page-simulateur-credit-immobilier,
  .page-simulateur-defiscalisation-pinel {
    /* Section formulaire */
    #simform {
      background: #fff;

      .section-title h2 {
        font-size: 2em;
      }
    }

    /* Section footer */
    #formfooter .footer-text {
      padding-top: 50px;

      p {
        font-size: 1.3em;
      }

      .section-content {
        margin-bottom: 50px;
      }

      .sim-col {
        h4 {
          margin: 10px 0;
        }

        .button {
          margin: 20px auto 40px;
          width: 62%;
        }
      }
    }
  }

  /* Styles spécifiques par simulateur */
  .page-simulateur-credit-immobilier #formfooter .footer-text {
    .elementor-column:first-of-type .icon svg {
      transform: scale(1.3);
    }
  }

  .page-simulateur-defiscalisation-pinel #formfooter .footer-text {
    .elementor-column:nth-child(2) .icon svg {
      transform: scale(1.2);
    }
  }

  /* Page La Reunion */
  .page-la-reunion [id^='section'] {
    min-height: 100vh;
    height: auto !important;

    .elementor-container {
      min-height: unset;
      height: auto !important;
    }

    /* Styles communs pour les titres */
    .section-title h2 {
      font-size: 1.2em;
      line-height: 1.4em;
      padding-top: 20px;
    }

    .section-title h2:after {
      width: 30%;
    }

    /* Styles communs pour les images */
    .section-img {
      position: static;
      transform: none;
      margin: 0 auto;
      display: block !important;
      text-align: center;
      padding: 0;
    }

    /* Styles communs pour les textes */
    .section-text,
    [class*='text'] {
      width: calc(100% - 40px) !important;
      max-width: 90% !important;
      position: static;
      transform: none;
      margin: 16px auto;
      display: block !important;
      height: auto !important;
    }
  }

  /* Styles spécifiques par section */
  .page-la-reunion #section1 {
    height: calc(100vh - 80px) !important;

    .elementor-container {
      height: 100% !important;
    }

    [class*='text'] {
      width: 100% !important;
      max-width: unset !important;
    }

    h2 {
      padding-top: 24px !important;
    }
  }

  .page-la-reunion #section1b {
    height: 100vh !important;
    min-height: unset;
    max-height: 100vh;
    overflow-y: hidden;

    .elementor-container {
      height: 100% !important;
      display: flex;
      flex-direction: column;
      align-items: center;

      /* Titre en premier */
      .title-row {
        order: 1;
        margin-bottom: 20px;
      }

      /* Carte en deuxième */
      .section1b-carte {
        order: 2;
        width: 90% !important;
        margin: 20px auto;
        position: static;
        transform: none;
      }

      /* Texte en troisième */
      .section1b-text {
        order: 3;
        width: 100% !important;
        position: static;
        transform: none;

        .section1b-content {
          width: 90%;
          margin: 0 auto;
        }
      }

      /* Scroll en dernier */
      .scroll-down {
        order: 4;
        margin-top: auto;
        margin-bottom: 20px;
      }
    }
  }

  /* Sections avec image large */
  .page-la-reunion #section2 .section-img,
  .page-la-reunion #section8 .section-img {
    width: 80% !important;
    padding-left: 0;
  }

  /* Sections avec texte spécifique */
  .page-la-reunion #section3 .section-text .section3text {
    p,
    li {
      font-size: 1.1em;
    }
  }

  .page-la-reunion #section6 .section-text {
    width: 100% !important;
    padding-left: 0;
  }

  .page-la-reunion #section7 {
    .section-title h2:after {
      border-color: #0a5c84;
    }
    .section-text p {
      font-size: 1.1em;
    }
  }

  .page-la-reunion #section8 .section-text {
    width: 80% !important;
    position: static;
    transform: none;
    margin: 0 auto;
    display: block !important;
  }
  .page-la-reunion #section8 .section-text .section8txt {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 100px;
    padding-left: 0;
  }

  /* Ajustements pour les conteneurs Elementor */
  .page-la-reunion
    [id^='section']
    .elementor-container
    > .elementor-column
    > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Single listing */
  body.single-listing .profile-header {
    padding-bottom: 0;
  }

  body.single-listing .single-job-listing {
    padding-bottom: 0;
  }

  body.single-listing #contact {
    .simulateur {
      width: 100%;

      .sim-content {
        h4 {
          font-size: 1.3em;
        }

        .icon svg {
          width: 51%;
        }

        .button {
          width: 70%;
          font-size: 1em;
        }
      }
    }

    .col-2 form .wpforms-submit {
      width: 70%;
      font-size: 1em;
      margin-top: 20px;
    }
  }

  body.single-listing .profile-cover-image {
    height: 65vh;

    .main-info-mobile {
      font-size: 0.5em;

      .price-or-date {
        top: 20px;
        padding: 15px 60px 15px 20px;
      }

      .action {
        min-width: 100%;
        padding: 16px;
        clip-path: none;

        .lmb-calltoaction {
          > a {
            height: auto;
          }

          &:first-child a span {
            font-size: 1em;

            &:before,
            &:after {
              width: 30px;
            }
            &:before {
              left: -80%;
            }
            &:after {
              right: -80%;
            }
          }

          &:nth-child(2) span {
            font-size: 1.6em;
            margin: 8px auto;
            font-weight: 600;
          }
        }

        .log {
          .element {
            margin-bottom: 0 !important;
          }

          .pf-body ul li a {
            font-size: 1.6em;
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 480px) {
  body #c27-site-wrapper .header,
  body #c27-site-wrapper .header.header-style-default,
  html body .header.header-style-default {
    height: 80px !important;
  }
}

body.wide.home #header-top .logotype svg {
  width: auto !important;
  height: 65vh !important;
}

/* Wide Screen Styles */
@media screen and (min-width: 1400px) {
  /* Header */
  body.wide.home #header-top .logotype svg {
    width: auto !important;
    height: 65vh !important;
  }

  /* Simulateur */
  body.wide.home #simulateur {
    height: 100%;
    overflow: hidden;

    .section-title {
      padding-top: 80px;
    }

    .a-propos-texte {
      position: static;
      transform: none;
    }

    .section-content .elementor-container {
      display: block;
      margin-bottom: 100px;

      > .elementor-row {
        display: block;
      }
    }

    .sim-col {
      display: block;
      float: left;
      margin-bottom: 100px;
    }
  }

  /* A propos */
  body.wide.home #a-propos {
    height: 100%;

    .a-propos-texte {
      margin-bottom: 100px;
    }

    #logo-ssl {
      width: 43vw;
      margin-bottom: -20px;
    }
  }

  /* Contact - Home */
  body.wide.home #contact {
    height: 100%;
    overflow: hidden;

    > .elementor-container > .elementor-row {
      overflow: hidden;
    }

    .contact-logo #logo-contact svg {
      width: 110% !important;
    }

    .col-1,
    .col-2 {
      position: static;
      transform: none;
      width: 50%;
      margin: 0 auto;
      display: block;
      float: left;
    }

    .col-2 {
      padding-bottom: 200px;

      form .wpforms-submit {
        width: 45%;
      }
    }

    .mention .mention-logo img {
      width: 25vh;
    }
  }

  /* Contact - Single Listing */
  body.single-listing.wide #contact {
    height: 100%;
    overflow: hidden;

    .section-content {
      position: static;
      transform: none;
    }

    > .elementor-container > .elementor-row {
      overflow: hidden;
    }

    .contact-logo #logo-contact svg {
      width: 110% !important;
    }

    .col-2 {
      position: static;
      transform: none;
      width: 50%;
      margin: 0 auto 50px;
      display: block;
      float: left;

      form .wpforms-submit {
        width: 45%;
      }
    }

    .emprunt {
      position: static;
      transform: none;
      width: 50%;
      margin: 30px auto 0;
      padding-bottom: 100px;
      display: block;
      float: left;
    }

    .mention .mention-logo img {
      width: 25vh;
    }
  }
}

/* Variables communes */
:root {
  --header-height-mobile: 80px;
  --primary-color: #0a5c84;
  --padding-mobile: 50px;
}
