/* =========================================================
   NEWSLETTER — PREMIUM CLEAN
========================================================= */

.newsletter-content {
  width: 100%;
  padding: 4rem 1.25rem;
}

.newsletter-block {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}

.accroche-newsletter,
.accroche-newsletter.cc-subscribe-paragraph {
  width: 100%;
  margin: 0 0 1.75rem 0;
  padding: 0;
  color: var(--black);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  text-align: left;
  text-transform: none;
}

/* Mailchimp wrapper */
#mc_embed_signup {
  width: 100%;
  background: transparent !important;
  color: var(--black);
  font-family: var(--_typographie-principale---font-family) !important;
}

/* Form layout */
#mc_embed_signup form {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

#mc_embed_signup_scroll {
  width: 100%;
}

/* Champs */
#mc_embed_signup .mc-field-group {
  width: 100% !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 0 1.25rem 0 !important;
  display: block !important;
}

#mc_embed_signup .mc-field-group label {
  display: block !important;
  margin: 0 0 0.65rem 0 !important;
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Input */
#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"] {
  width: 100% !important;
  min-height: 3.25rem;
  padding: 0 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  font-family: var(--_typographie-principale---font-family) !important;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s ease;
}

#mc_embed_signup input[type="email"]:focus,
#mc_embed_signup input[type="text"]:focus {
  border-bottom-color: var(--black);
}

/* Placeholder */
#mc_embed_signup input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* Required text */
#mc_embed_signup .indicates-required,
#mc_embed_signup .asterisk {
  display: none !important;
}

/* Bouton */
#mc_embed_signup .clear {
  display: flex;
  justify-content: flex-end;
}

#mc_embed_signup .button,
#mc_embed_signup input[type="submit"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 0 0.35rem 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--black) !important;
  font-family: var(--_typographie-principale---font-family) !important;
  font-size: 0.95rem !important;
  font-weight: 300 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Soulignement bouton */
#mc_embed_signup .button::after,
#mc_embed_signup input[type="submit"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

#mc_embed_signup .button:hover::after,
#mc_embed_signup input[type="submit"]:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}

/* Messages */
#mc_embed_signup #mce-responses {
  margin: 1rem 0 0 0 !important;
  padding: 0 !important;
}

#mc_embed_signup .response {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.4;
}

/* Honeypot Mailchimp */
#mc_embed_signup div[aria-hidden="true"] {
  position: absolute !important;
  left: -5000px !important;
}

/* Mobile */
@media screen and (max-width: 767px) {
  .newsletter-content {
    padding: 3rem 1rem;
  }

  .newsletter-block {
    max-width: none;
  }

  .accroche-newsletter,
  .accroche-newsletter.cc-subscribe-paragraph {
    font-size: 1.35rem;
    line-height: 1.2;
  }
}

/* =========================================================
   NEWSLETTER BUTTON
========================================================= */

/* Cache ancien submit */
#mc_embed_signup input[type="submit"] {
  display: none !important;
}

/* CTA */
.button-newsletter {
  position: relative;
  display: inline-flex;
  align-items: center;

  margin-top: 1.5rem;
  margin-left: auto;

  border: none;
  background: transparent;

  color: var(--black);

  font-family: var(--_typographie-principale---font-family);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;

  justify-content: flex-end;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

/* Underline */
.button-newsletter::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -0.08em;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(1);
  transform-origin: left center;

  transition: transform 0.4s ease;
}

.button-newsletter:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}

.button-newsletter:hover {
  opacity: 0.7;
}

/* =========================================================
   NEWSLETTER — ERROR STATE CLEAN
========================================================= */

/* Retire le cadre rouge Mailchimp */
#mce-embedded-subscribe-form input.mce_inline_error {
  border: none !important;
  border-bottom: 1px solid #c84b4b !important;
}

/* Cache message erreur Mailchimp */
#mce-embedded-subscribe-form div.mce_inline_error {
  display: none !important;
}

/* Placeholder normal */
#mc_embed_signup input::placeholder {
  color: rgba(0,0,0,0.42);
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

/* Placeholder erreur */
#mc_embed_signup input.mce_inline_error::placeholder {
  color: #c84b4b;
  opacity: 1;
}

/* =========================================================
   MAILCHIMP ERROR CLEAN
========================================================= */

#mc_embed_signup #mce-embedded-subscribe-form input.mce_inline_error,
#mc_embed_signup input.mce_inline_error {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  border-bottom: 1px solid #c84b4b !important;
}

/* Empêche Mailchimp de réinjecter un contour */
#mce-EMAIL {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/* =========================================================
   NEWSLETTER — MOBILE CLEAN LAYOUT
========================================================= */

@media screen and (max-width: 767px) {
  .secondesection.cc-subscribe-form {
    width: 100% !important;
    padding: 3rem 2.5rem 3.5rem !important;
    box-sizing: border-box !important;
     margin: 0;
  }

  .checkout_form.cc-subscription-form {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .newsletter-block {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .accroche-newsletter.cc-subscribe-paragraph {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 2.5rem !important;

    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
  }

  .newsletter-block .code-embed,
  .newsletter-block #mc_embed_shell,
  .newsletter-block #mc_embed_signup {
    width: 100% !important;
    max-width: 100% !important;
  }

  .newsletter-block #mc_embed_signup form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .newsletter-block .mc-field-group,
  .newsletter-block .mc-field-group input[type="email"],
  .newsletter-block input.email {
    width: 100% !important;
    max-width: 100% !important;
  }

  .newsletter-block .mc-field-group {
    margin: 0 0 2.25rem !important;
    padding: 0 !important;
  }

  .newsletter-block input.email {
    min-height: 3.25rem !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35) !important;
    border-radius: 0 !important;
    background: transparent !important;

    font-size: 1.35rem !important;
    line-height: 1.2 !important;
  }

  .newsletter-block input.email::placeholder {
    color: rgba(0, 0, 0, 0.42) !important;
  }

  .newsletter-block .optionalParent,
  .newsletter-block .clear {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  .newsletter-block input.button,
  .newsletter-block input[type="submit"] {
    display: inline-flex !important;
    align-self: flex-end !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 0 0.35rem !important;

    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;

    color: #000 !important;

    font-family: var(--_typographie-principale---font-family) !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    text-align: right !important;
  }
}
