/* Variables */
:root {
  --primary-color: #0097c2;
  --secondary-color: #0a5c84;
  --bg-color: #d9e8ed;
}

/* Styles communs pour tous les simulateurs */
.page-simulateur-capacite-demprunt,
.page-simulateur-credit-immobilier,
.page-simulateur-defiscalisation-pinel {
  /* Reset margin */
  .c27-top-content-margin {
    margin-top: 0 !important;
    height: 0;
  }

  /* Section formulaire */
  #simform {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('/wp-content/themes/b2b-immo/img/back-pagesim.jpg') top
      left/auto 100% no-repeat #fff;
    margin-bottom: 0;
    padding-bottom: 100px;

    .section-title {
      width: 100%;
      height: auto !important;
      margin-bottom: 0;

      h2 {
        font-weight: 400 !important;
        color: var(--secondary-color);
        text-transform: uppercase;
        font-size: 2.6em;
        padding: 100px 0 20px;
        display: inline-block;
        position: relative;
        z-index: 2;

        &:after {
          content: '';
          width: 70%;
          border-bottom: 2px solid var(--secondary-color);
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }

  #simform .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    width: 90vw;
    #form {
      width: 1000px;
      margin: 0 auto;
    }
  }

  /* Style du scroll */
  .scroll {
    position: absolute !important;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  /* Footer du formulaire */
  #formfooter {
    height: 100vh;
    position: relative;
    padding: 0;
    background: url('/wp-content/themes/b2b-immo/img/back-simu.jpg') top
      right/auto 100% no-repeat var(--bg-color);
    margin-bottom: 0;

    > .elementor-container {
      display: flex;
      width: 100%;
      height: 100%;
    }

    .footer-text {
      padding-top: 100px;
      text-align: center;

      p {
        font-size: 2em;
        color: var(--secondary-color);
      }

      .section-content {
        width: 70%;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }

      .icon {
        text-align: center;

        /* Style commun pour toutes les icônes SVG */
        svg {
          width: 35%;
          height: auto;
          aspect-ratio: 1/1;
          object-fit: contain;
          opacity: 0.8;
          transform: scale(1);
          transition: all 0.2s ease-in;
        }
      }

      /* Animation au survol */
      .elementor-column:hover .icon svg {
        opacity: 1;
        transform: scale(1.1);
      }

      .elementor-column:hover .sim-col h4 {
        color: var(--secondary-color);
      }

      .elementor-column:hover .sim-col .button {
        background: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .sim-col {
        h4 {
          color: var(--primary-color);
          letter-spacing: 2px;
          font-size: 1.8em;
          text-transform: uppercase;
          text-align: center;
          font-weight: 400;
          margin: 30px 0;
        }

        .button {
          background: var(--primary-color);
          text-align: center;
          width: 30%;
          padding: 15px;
          margin: 40px auto 0;
          transition: all 0.2s ease-in;
          color: #fff;
          font-size: 1.2em;
          text-transform: uppercase;
          font-weight: 600;
        }
      }
    }
  }
}

/* Styles pour l'iframe de la calculette */
.cyberpretCalculettes {
  text-align: center;
}

.cyberpretCalculettes iframe {
  width: 100% !important;
}

/* Si besoin d'augmenter la spécificité */
body .cyberpretCalculettes,
#c27-site-wrapper .cyberpretCalculettes {
  text-align: center !important;
}

/* Pour le conteneur de l'iframe */
.elementor-widget-container .cyberpretCalculettes {
  display: flex;
  justify-content: center;
  align-items: center;
}
