@charset "UTF-8";
.newsletter {
  margin: 40px auto;
}
@media screen and (min-width: 1024px) {
  .newsletter {
    margin: 64px auto;
  }
}
.newsletter--container {
  max-width: 1124px;
  margin: auto;
  padding: 32px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: var(--rouge);
  border-radius: 36px;
}
.newsletter--heading {
  text-align: center;
}
.newsletter--heading .uptitle {
  margin-bottom: 16px;
  color: var(--blanc);
  letter-spacing: 2.1px;
  padding: 0 24px;
}
.newsletter--heading h2 {
  color: var(--blanc);
  text-align: center;
}
.newsletter {
  /* =========================================================
     FORM
     ========================================================= */
}
.newsletter--form {
  display: flex;
  flex-direction: column;
}
.newsletter--fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.newsletter--field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter--field label {
  color: var(--blanc);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}
.newsletter--field input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 30px;
  background-color: var(--blanc);
  color: var(--rouge-clair);
  font-family: var(--family);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.newsletter--field input::placeholder {
  color: var(--rouge-clair);
  opacity: 0.3;
}
.newsletter--field input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.newsletter {
  /* =========================================================
     TEXTE
     ========================================================= */
}
.newsletter--content {
  color: var(--blanc);
}
.newsletter--content p {
  color: var(--blanc);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.newsletter--content p strong {
  font-weight: 700;
}
.newsletter {
  /* =========================================================
     SUBMIT
     ========================================================= */
}
.newsletter--submit {
  display: flex;
  margin: 16px auto 0 auto;
}
.newsletter {
  /* =========================================================
     LEGAL
     ========================================================= */
}
.newsletter--legal {
  grid-column: 1/-1;
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--blanc);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  opacity: 0.8;
}
.newsletter {
  /* =========================================================
     HONEYPOT
     ========================================================= */
}
.newsletter--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.newsletter {
  /* =========================================================
     MESSAGE
     ========================================================= */
}
.newsletter--message {
  position: relative;
  z-index: 2;
  color: var(--blanc);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.newsletter--message:empty {
  display: none;
}
.newsletter--success {
  display: none;
  padding: 24px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
}
.newsletter--success .uptitle {
  margin-bottom: 16px;
  color: var(--blanc);
  letter-spacing: 2.1px;
}
.newsletter--success h2 {
  margin-bottom: 40px;
  color: var(--blanc);
}
.newsletter--success-content {
  display: flex;
  flex-direction: column;
}
.newsletter--success-content p {
  color: var(--blanc);
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}
.newsletter--success-content p strong {
  font-weight: 700;
}
.newsletter--success-content p + p {
  margin-top: 16px;
}
.newsletter {
  /* =========================================================
     ETAT SUCCÈS
     ========================================================= */
}
.newsletter.is-success .newsletter--heading,
.newsletter.is-success .newsletter--form,
.newsletter.is-success .newsletter--message {
  display: none;
}
.newsletter.is-success .newsletter--success {
  display: flex;
}
.newsletter.is-success .newsletter--container {
  position: relative;
  overflow: hidden;
}
.newsletter.is-success .newsletter--container::before {
  content: "";
  width: 370px;
  height: 306px;
  mask: url(../images/boucle-bas.svg) no-repeat center;
  mask-size: contain;
  background-color: var(--blanc);
  position: absolute;
  top: -112px;
  right: -215px;
  rotate: 180deg;
}
.newsletter.is-success .newsletter--container::after {
  content: "";
  width: 370px;
  height: 306px;
  mask: url(../images/boucle-bas.svg) no-repeat center;
  mask-size: contain;
  background-color: var(--blanc);
  position: absolute;
  bottom: -112px;
  left: -225px;
}
.newsletter {
  /* =========================================================
     DESKTOP
     ========================================================= */
}
@media screen and (min-width: 1024px) {
  .newsletter--container {
    padding: 40px;
    gap: 40px;
  }
  .newsletter--heading .uptitle {
    margin-bottom: 24px;
  }
  .newsletter--form {
    display: grid;
    grid-template-columns: minmax(350px, 1fr) minmax(280px, 0.8fr);
    column-gap: 40px;
    row-gap: 0;
  }
  .newsletter--fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    margin-bottom: 0;
  }
  .newsletter--submit {
    grid-column: 1/-1;
  }
  .newsletter--success {
    padding: 0 0 36px 0;
  }
  .newsletter--success .uptitle {
    margin-bottom: 24px;
  }
  .newsletter--success h2 {
    margin-bottom: 56px;
  }
  .newsletter--success-content {
    max-width: 530px;
  }
  .newsletter--success-content p {
    font-size: 16px;
  }
  .newsletter--success-content p + p {
    margin-top: 24px;
  }
}
