.home,
.editor-styles-wrapper .home {
  line-height: 1.15em;
}

.home article {
  padding-bottom: 0;
}

.home h1,
.editor-styles-wrapper .home h1 {
  margin-bottom: 0.5em;
  line-height: 1em;
}

/* Titles styles specifics for home page */
.home h2,
.editor-styles-wrapper .home h2 {
  font-size: 3.9em;
  margin-bottom: 1em;
}

@media screen and (max-width: 600px) {
  .home h2,
  .editor-styles-wrapper .home h2 {
    font-size: 3.5em;
    line-height: 1em;
  }
}

/* If full width content is used for background, child content must be width contrained */
.wp-block-columns.width-standard {
  padding: 0 16px;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

h1 + div div .subtitle {
  margin-bottom: 0.2em;
}

h1 + div + p {
  color: inherit !important;
}

/******** hero *********/
.tw-layout-hero {
  position: relative;
  height: min(760px, 100vw);
  background-image: url("../imgs/hero.png");
  background-position: top center;
  background-repeat: no-repeat;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-hero .tw-block-image,
.tw-layout-hero .tw-block-video {
  margin-top: 40px;
}

.tw-layout-hero img,
.tw-layout-hero video {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border: 1px solid #d0d0d0;
}

.tw-layout-hero img,
.tw-layout-hero .wp-block-video {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 600px) {
  .tw-layout-hero img,
  .tw-layout-hero .wp-block-video {
    margin-left: 16px;
    margin-right: 16px;
  }
}

.tw-layout-hero2 {
  position: relative;
  margin-top: -38px;
  min-height: 436px;
  background-image: url("../imgs/hero2.png");
  background-position: top;
  background-repeat: no-repeat;
  padding: 0 32px;
}

main .tw-layout-hero2 {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-hero2 .wp-block-columns {
  column-gap: 100px;
}

.tw-layout-hero2 .wp-block-column .wp-block-column .round-big {
  transition: all 0.5s ease-in-out;
}

.tw-layout-hero2 .wp-block-column .wp-block-column:hover .round-big {
  transform: scale(1.1);
}

.tw-layout-hero2 h3 {
  background-image: none;
  padding-bottom: 0;
  margin-top: 40px;
}

.tw-gift {
  position: relative;
  display: inline-block;
}

.tw-gift::after {
  content: "";
  position: absolute;
  display: block;
  top: -34px;
  right: -200px;
  width: 92px;
  height: 91px;
  background-image: url("../imgs/gift.png");
  background-repeat: no-repeat;
}

@media screen and (max-width: 600px) {
  .tw-gift::after {
    top: unset;
    bottom: -80px;
    scale: 80%;
    right: calc(50vw - 70px);
  }
}

/******** waiting-by-users *********/
.tw-layout-waiting-by-users {
  position: relative;
  min-height: 785px;
  background-image: image-set(url("../imgs/big-message-waiting-by-users.jpg") 1x, url("../imgs/big-message-waiting-by-users@2x.jpg") 2x);
  background-position: right -320px bottom;
  background-color: #2c6add;
  background-repeat: no-repeat;
  margin-bottom: 150px;
}

@media screen and (min-width: 1600px) {
  /* 1920px - 320px */
  .tw-layout-waiting-by-users {
    background-position: center center;
  }
}

@media screen and (max-width: 782px) {
  .tw-layout-waiting-by-users {
    min-height: 1000px;
  }
  .tw-layout-waiting-by-users > .wp-block-column:first-child {
    position: absolute;
    background: linear-gradient(to bottom, #00000040 70%, transparent 100%);
  }

  .tw-layout-waiting-by-users > .wp-block-column:first-child h2 {
    line-height: 1.2em;
  }
}

main .tw-layout-waiting-by-users {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-waiting-by-users h2 {
  color: white;
  font-size: 3em;
  font-weight: 500;
  padding: 0 80px;
  text-align: center;
  line-height: 1.5em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

@media screen and (max-width: 600px) {
  .tw-layout-waiting-by-users h2 {
    padding: 0;
  }
}

.tw-layout-waiting-by-users h2::after {
  content: "";
  display: block;
  width: 308px;
  height: 42px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  background-image: url("../imgs/underline-white.png");
  background-repeat: no-repeat;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 1));
}

@media screen and (max-width: 600px) {
  .tw-layout-waiting-by-users h2::after {
    display: none;
  }
}

.tw-layout-waiting-by-users .wp-block-column {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

/********* keyfeatures *********/
.tw-layout-keyfeatures {
  margin-top: 80px;
}

.tw-layout-keyfeatures .wp-block-column {
  justify-content: center;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 600px) {
  .tw-layout-keyfeatures figure {
    margin: 0;
  }
}

/******** example *********/
.tw-layout-example {
  position: relative;
  height: 713px;
  background-image: url("../imgs/background-example.png");
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 100px;
  margin-bottom: 150px;
}

@media screen and (max-width: 600px) {
  .tw-layout-example {
    margin-bottom: 200px;
  }
}

.tw-layout-example::after {
  content: "";
  position: absolute;
  display: block;
  bottom: -200px;
  left: 15%;
  width: 72px;
  height: 240px;
  background-image: url("../imgs/crazy-arrow.svg");
  background-repeat: no-repeat;
}

main .tw-layout-example {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-example .wp-block-column {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.tw-layout-example h2 {
  color: white;
  font-size: 3em;
  font-weight: 500;
  text-align: center;
  line-height: 1.2em;
}

.tw-layout-example p {
  color: white;
}

.tw-layout-example .btn a {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 1.5em;
  border-radius: 35px;
  padding: 24px 30px;
  box-shadow: rgba(100, 100, 111, 0.5) 0px 5px 14px 0px;
}

.tw-layout-example .btn:hover a {
  transform: scale(1.02);
}

.tw-layout-example .btn + figure {
  position: absolute;
  margin-left: 25%;
  margin-top: 0px;
  bottom: 30px;
  max-width: 60vw;
}

@media screen and (max-width: 1150px) {
  .tw-layout-example .btn + figure {
    right: 20px;
    margin: 0;
  }
}

/******** steps *********/
@media screen and (min-width: 900px) {
  .tw-layout-steps {
    background-image: url("../imgs/steps-qrcode.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 15% center;
  }

  .tw-layout-steps .wp-block-columns:first-child,
  .tw-layout-steps .wp-block-columns:nth-child(5) {
    width: 500px;
    min-height: 100px;
    max-width: 90vw;
  }
  .tw-layout-steps .wp-block-columns:nth-child(2),
  .tw-layout-steps .wp-block-columns:nth-child(4) {
    width: 580px;
    max-width: 90vw;
  }
  .tw-layout-steps .wp-block-columns:nth-child(3) {
    width: 640px;
    max-width: 90vw;
  }

  .tw-layout-steps > .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

.tw-layout-steps {
  margin-top: 80px;
}

.tw-layout-steps .wp-block-columns .wp-block-column:first-child {
  flex: 0 0 56px;
  height: 56px;
  border: 5px solid var(--tw-color-secondary);
  border-radius: 50%;
  color: var(--tw-color-secondary);
  text-align: center;
  font-weight: 900;
  font-family: "Nunito", sans-serif;
  font-size: 1.5em;
  flex-basis: 56px !important;
  background-color: white;
  margin: 0 auto;
}

.tw-layout-steps .wp-block-columns .wp-block-column:first-child p {
  margin: 10px 0;
}

.tw-layout-steps h3 {
  background-image: none;
  padding-bottom: 0;
}

/******** subscription *********/
.tw-layout-subscription {
  position: relative;
  height: 639px;
  background-image: url("../imgs/background-subscription.png");
  background-position: right center;
  background-repeat: no-repeat;
  margin-top: 100px;
  margin-bottom: 150px;
}

main .tw-layout-subscription {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-subscription h4 {
  margin-top: 140px;
  font-size: 2.5em;
}

.tw-layout-subscription .btn a {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 2em;
  font-weight: 400;
  border-radius: 50px;
  padding: 24px 30px;
  box-shadow: rgba(100, 100, 111, 0.5) 0px 5px 14px 0px;
  max-width: 550px;
  background-color: var(--tw-color-secondary);
  border: 3px solid var(--tw-color-secondary);
  margin-bottom: 0;
  margin-top: 70px;
  line-height: 0.8em;
}
.tw-layout-subscription .btn:hover a {
  transform: scale(1.02);
  background-color: var(--tw-color-secondary-lighter);
  border: 3px solid var(--tw-color-secondary-lighter);
}

.tw-layout-subscription .btn + p + figure {
  position: absolute;
  left: calc(50% + 260px);
  top: 50%;
  /* margin-left: 400px;
    margin-top: 0px;
    bottom: 50px; */
}

@media screen and (max-width: 1100px) {
  .tw-layout-subscription .btn + p + figure {
    display: none;
  }
}

/******** features *********/
.tw-layout-features {
  row-gap: 95px;
  column-gap: 100px;
  margin-bottom: 150px;
}

.tw-layout-features h3 {
  background-image: none;
  padding-bottom: 0;
}

.tw-layout-features .wp-block-columns .wp-block-column:first-child {
  width: 115px;
  flex: 0 0 115px;
}

.tw-layout-features .wp-block-columns .wp-block-column:first-child p {
  margin: 0;
  transition: all 0.5s ease-in-out;
}

/******** benefites *********/
.background-green {
  position: relative;
  color: transparent;
}
.background-green::after {
  content: "";
  position: absolute;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: var(--after-height, 2000px);
  background-image: url("../imgs/background-positive.png");
  background-repeat: no-repeat;
  background-size: 100% auto; /* Déforme pour suivre exactement le texte */
  z-index: -1;
  background-color: #e2f2e4;
}

.tw-smile {
  position: relative;
  max-width: 700px;
  margin: 0 auto 1em auto;
}
.tw-smile::before {
  content: "";
  position: absolute;
  top: -100px; /* ou 50% + transform si vous préférez centrer verticalement */
  left: -190px;
  width: 175px;
  height: 162px;
  background-image: url("../imgs/smile.svg");
  /* background-size: contain; */
  background-repeat: no-repeat;
}
@media screen and (max-width: 1100px) {
  .tw-smile::before {
    display: none;
  }
}

.tw-layout-benefites {
  margin-top: 120px;
  margin-bottom: 0px;
  /* background-color: #E2F2E4; */
}

.tw-layout-benefites.tw-layout-benefites-visitors {
  margin-top: 200px;
  /* background-color: #E2F2E4; */
}

.tw-layout-benefites .wp-block-columns:first-child h3 {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 4em;
  font-weight: 400;
  transform: rotate(-11deg);
  background-image: url("../imgs/subtitle.png");
  background-repeat: no-repeat;
  background-position: 40px 86px;
  padding-bottom: 25px;
}

/******** user love *********/
.tw-layout-user-love {
  position: relative;
  min-height: 903px;
  background-color: #e2f2e4;
  background-image: url("../imgs/background-user-love.png");
  background-position: left -250px top 100px;
  background-repeat: no-repeat;
  margin-bottom: 150px;
  padding-top: 200px;
}

@media screen and (min-width: 1670px) {
  /* 1920px - 250px */
  .tw-layout-user-love {
    background-position: left 0 top 100px;
  }
}

@media screen and (max-width: 700px) {
  .tw-layout-user-love {
    background-position: left 30% top 100px;
  }
}

main .tw-layout-user-love {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-user-love .wp-block-column {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.tw-layout-user-love h2 {
  color: white;
  font-size: 3em;
  font-weight: 500;
  text-align: center;
  line-height: 1.1em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

/********* logos *********/
.tw-layout-logos {
  /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); ajustable */
  row-gap: 10px; /* espace entre les éléments */
  column-gap: 50px; /* espace entre les éléments */
  justify-content: center; /* centre toute la grille */
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap !important;
}

.tw-layout-logos figure {
  display: flex;
  align-items: center; /* centre verticalement */
  justify-content: center; /* centre horizontalement */
  height: 100%; /* utile si vous définissez une hauteur */
  min-width: 200px;
}

/********* products *********/

.tw-layout-prices {
  position: relative;
  min-height: 620px;
  background-image: url("../imgs/hero.png");
  background-position: top center;
  background-repeat: no-repeat;
}

main .tw-layout-prices {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-prices .wp-block-columns .wp-block-column {
  padding: 100px 16px;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tw-stripe-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, 360px);
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.tw-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  box-shadow: rgba(100, 100, 111, 0.5) 0px 7px 20px 0px;
  border: 1px solid #d0d0d0;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
}

.tw-product h3 {
  align-content: start;
  font-size: 1em;
  padding: 0;
  margin: 0;
  padding: 17px 0 50px 0;
  background-image: none;
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  text-transform: uppercase;
}

.tw-product h3::before {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  width: 100%;
  height: 54px;
  background-color: #878787;
  border-bottom-left-radius: 50% 18px;
  border-bottom-right-radius: 50% 18px;
  box-shadow: rgba(100, 100, 111, 0.3) 0px 4px 16px 0px;
  z-index: -1;
}

.tw-product:nth-of-type(2) h3::before {
  background-color: var(--tw-color-blue);
}

.tw-product:nth-of-type(3) h3::before {
  background-color: var(--tw-color-purple);
}

.tw-product-content {
  align-content: start;
  padding: 0 28px 28px 28px;
}

.tw-product-content .tw-big-line {
  display: flex;
  align-items: end;
  column-gap: 8px;
  font-family: "Nunito", sans-serif;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.tw-product-content .tw-big-line .tw-price {
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
}
.tw-product-content .tw-big-line .tw-price-suffix {
  margin-bottom: 6px;
}

.tw-product-features {
  font-size: 0.8em;
  margin-top: 28px;
}

.tw-product-features div {
  margin-bottom: 0.8em;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-product-features div::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../icons/check.svg");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.tw-product a {
  margin: 16px;
  width: calc(100% - 32px);
  text-align: center;
  font-family: "Caveat", cursive, sans-serif;
  font-size: 1.5em;
  border-radius: 10px;
  align-self: end;
}

.tw-product:nth-of-type(1) a {
  border-color: #878787;
  color: #878787;
}

.tw-product:nth-of-type(2) a {
  border-color: var(--tw-color-blue);
  color: var(--tw-color-blue);
}

.tw-product:nth-of-type(3) a {
  border-color: var(--tw-color-purple);
  color: var(--tw-color-purple);
}

/********* contact *********/

.forminator-guttenberg {
  max-width: 1000px;
  margin: 50px auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: rgba(100, 100, 111, 0.4) 0px 4px 29px 0px;
  padding: 50px 100px;
}

@media screen and (max-width: 600px) {
  .forminator-guttenberg {
    padding: 16px;
  }
}

.forminator-guttenberg label {
  padding-bottom: 0.5em;
  font-weight: normal !important;
  font-size: 0.8em !important;
}
.forminator-guttenberg .forminator-row:not(:last-child) {
  margin-bottom: 20px !important;
}

.forminator-guttenberg input,
.forminator-guttenberg textarea {
  border-radius: 6px !important;
  padding: 0.7rem 1rem !important;
}

.forminator-guttenberg a {
  color: var(--tw-color-primary);
}

.forminator-guttenberg .forminator-button {
  border-radius: 5px !important;
  padding: 10px 20px !important;
}

.space-before-products {
  margin-top: 150px;
}

.tw-talk {
  position: relative;
  max-width: 700px;
  margin: 150px auto 1em auto;
}
.tw-talk::before {
  content: "";
  position: absolute;
  top: -100px; /* ou 50% + transform si vous préférez centrer verticalement */
  left: -190px;
  width: 156px;
  height: 143px;
  background-image: url("../imgs/talk.svg");
  /* background-size: contain; */
  background-repeat: no-repeat;
}
@media screen and (max-width: 1100px) {
  .tw-talk::before {
    display: none;
  }
}

/********* final *********/
.tw-layout-final {
  position: relative;
  background-image: url("../imgs/background-subscription.png");
  background-position: right top;
  background-repeat: no-repeat;
  margin-top: 100px;
  margin-bottom: 0px;
  padding-bottom: 80px;
  text-align: center;
  /* padding-bottom: 100px; */
}

main .tw-layout-final {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tw-layout-final h4 {
  margin-top: 100px;
  font-size: 2.5em;
}

.tw-layout-final .btn a {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 2em;
  font-weight: 400;
  border-radius: 50px;
  padding: 24px 30px;
  line-height: 0.8em;
  box-shadow: rgba(100, 100, 111, 0.5) 0px 5px 14px 0px;
  max-width: 450px;
  background-color: var(--tw-color-secondary);
  border: 3px solid var(--tw-color-secondary);
  margin: 0 16px;
}
.tw-layout-final .btn:hover a {
  transform: scale(1.02);
  background-color: var(--tw-color-secondary-lighter);
  border: 3px solid var(--tw-color-secondary-lighter);
}

.tw-layout-final .btn + p + figure {
  position: absolute;
  left: calc(50% + 260px);
  top: 50%;
}

.tw-layout-final .tw-arrowup {
  position: relative;
  padding-top: 40px;
}

.tw-layout-final .tw-arrowup::before {
  content: "";
  position: absolute;
  display: block;
  top: -2px;
  left: calc(50% - 15px);
  width: 31px;
  height: 38px;
  background-image: url("../imgs/arrow-up.png");
  background-repeat: no-repeat;
}

.tw-flash {
  position: relative;
  display: inline-block;
}

.tw-flash::before {
  content: "";
  position: absolute;
  display: block;
  top: -34px;
  left: -80px;
  width: 65px;
  height: 104px;
  background-image: url("../imgs/flash-left.png");
  background-repeat: no-repeat;
}

.tw-flash::after {
  content: "";
  position: absolute;
  display: block;
  top: -34px;
  right: -100px;
  width: 85px;
  height: 108px;
  background-image: url("../imgs/flash-right.png");
  background-repeat: no-repeat;
}

@media screen and (max-width: 600px) {
  .tw-flash::after {
    display: none;
  }
}
