.block-newsletter,
.block-newsletter-prefooter__content {
  background-color: #E8F5F8;
  display: flex;
  padding: 2rem 3rem;
  border-radius: 20px;
  flex-direction: column;
}

.block-newsletter__text-right {
}

.block-newsletter__text-right h2 {
  font-size: 40px;
  color: var(--color-primary--1);
  font-weight: 700;
}

.block-newsletter__text-left form {
  padding: 0;
}

.block-newsletter__text-left input {
  border: 1px solid #E9E9E9;
  background: #FFF;
}

.block-newsletter__text-left input[type="checkbox"],
.block-newsletter-prefooter__text .block-newsletter__text-left input[type="checkbox"] {
  min-width: 16px;
  height: 32px;
  appearance: auto;
  -webkit-appearance: checkbox;
  cursor: pointer;
}

.block-newsletter__text-left .checkbox {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  font-size: 0.875rem;
  align-items: center;
  margin-top: 0;
}

.block-newsletter button[type="submit"],
.block-newsletter-prefooter button[type="submit"] {
  display: inline-block;
  padding: 16px;
  background-color: var(--color-primary--2) !important;
  border: none;
  border-radius: 40px !important;
  color: var(--color-neutral--3) !important;
  font-family: var(--font-lexend) !important;
  font-size: clamp(14px, 1.5vw, 18px) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all ease 0.5s !important;
}

.block-newsletter button[type="submit"]:hover,
.block-newsletter-prefooter button[type="submit"]:hover {
  opacity: 80% !important;
  text-decoration: none !important;
}


/* Newsletter classique : 50 / 50 */

@media (min-width: 1000px) {
  .block-newsletter {
    flex-direction: row;
  }
  .block-newsletter__text-left,
  .block-newsletter__text-right {
    flex: 1 1 0;
    min-width: 0;
  }
  .block-newsletter,
  .block-newsletter-prefooter__content {
    padding: 2rem 4rem;
  }
}

@media (min-width: 1350px) {
  .block-newsletter,
  .block-newsletter-prefooter__content {
    padding: 2rem 8rem;
  }
}


/* Newsletter prefooter (mobile / tablette : tout en colonne) */

.block-newsletter-prefooter {
  width: 100%;
}

.block-newsletter-prefooter__content {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: calc(100% - 4rem); /* 2rem de chaque côté */
  margin: 0 auto 3rem;      /* auto = centré */
}

.block-newsletter-prefooter__text {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.block-newsletter-prefooter__text .block-newsletter__text-right,
.block-newsletter-prefooter__text .block-newsletter__text-left {
  width: 100%;
  flex: 0 0 auto;
}

.block-newsletter-prefooter__social {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 1.5rem;
}

/* Prefooter desktop : texte 70% (newsletter au-dessus de l'email) + social 30% */

@media (min-width: 1000px) {
  .block-newsletter-prefooter__content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: calc(100% - 4rem);
  }

  .block-newsletter-prefooter__text {
    width: 70%;
    flex: 0 0 70%;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
    padding-right: 2rem; /* espace entre le texte et le trait blanc */
  }

  .block-newsletter-prefooter__social {
    width: 30%;
    flex: 0 0 30%;
    margin-top: 0;
    padding-left: 4rem;
    box-sizing: border-box;
    border-left: 2px solid #FFF;
    display: flex;
    align-items: center;
  }
}

/* Newsletter + email côte à côte seulement en très grand écran */

@media (min-width: 1350px) {
  .block-newsletter-prefooter__text {
    flex-direction: row;
    gap: 2rem;
  }

  .block-newsletter-prefooter__text .block-newsletter__text-right,
  .block-newsletter-prefooter__text .block-newsletter__text-left {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}


/* Éléments du newsletter dans le prefooter */

.block-newsletter-prefooter__text .block-newsletter__text-right h2 {
  font-size: 40px;
  color: var(--color-primary--1);
  font-weight: 700;
}

.block-newsletter-prefooter__text .block-newsletter__text-left input {
  border: 1px solid #E9E9E9;
  background: #FFF;
}

.block-newsletter-prefooter__text .block-newsletter__text-left input[type="checkbox"] {
  width: 32px;
  height: 32px;
  appearance: auto;
  -webkit-appearance: checkbox;
  cursor: pointer;
}

.block-newsletter-prefooter__text .block-newsletter__text-left .checkbox {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  font-size: 0.875rem;
  align-items: center;
  margin-top: 0;
}