/* === SECTION NEWSLETTER (intégration formulaire Brevo) === */
.newsletter-page {
  display: grid;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 1024px) {
  .newsletter-page {
    grid-template-columns: 1fr 1.3fr;
  }
}

.newsletter-page__intro .section__subtitle {
  margin-bottom: var(--space-5);
}

.newsletter-page__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: 0;
}

.newsletter-page__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.newsletter-page__point svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
  margin-top: 2px;
}

.newsletter-page__archive-link {
  margin-top: var(--space-8);
}

/* Carte conteneur du formulaire Brevo */
.newsletter-page__form-wrap {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-md);
}

/* --- Surcharge des styles par défaut du formulaire Brevo --- */
.newsletter-page__form-wrap .sib-form {
  text-align: left !important;
  background-color: transparent !important;
  padding: 0 !important;
}

.newsletter-page__form-wrap #sib-container {
  max-width: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: left !important;
}

.newsletter-page__form-wrap .sib-form-block,
.newsletter-page__form-wrap .entry__label,
.newsletter-page__form-wrap .entry__specification,
.newsletter-page__form-wrap .sib-form__declaration div {
  font-family: var(--font-body) !important;
}

.newsletter-page__form-wrap .entry__label {
  color: var(--color-text-primary) !important;
  font-weight: var(--font-semibold) !important;
  font-size: var(--text-sm) !important;
}

.newsletter-page__form-wrap .input {
  width: 100%;
  padding: var(--space-3) var(--space-4) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  color: var(--color-text-primary) !important;
  background: var(--color-bg) !important;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.newsletter-page__form-wrap .input:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(62, 207, 178, 0.15) !important;
  outline: none;
  background: var(--color-surface) !important;
}

.newsletter-page__form-wrap .entry__specification {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-xs) !important;
}

.newsletter-page__form-wrap .sib-optin .entry__choice label {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-sm) !important;
}

.newsletter-page__form-wrap .sib-form__declaration div {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-xs) !important;
}

.newsletter-page__form-wrap .sib-form-block__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  font-family: var(--font-body) !important;
  font-weight: var(--font-semibold) !important;
  font-size: var(--text-base) !important;
  letter-spacing: 0.03em;
  background: var(--color-accent) !important;
  color: var(--color-text-primary) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-4) var(--space-8) !important;
  margin-top: var(--space-2);
  box-shadow: 0 6px 20px rgba(62, 207, 178, 0.3);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-page__form-wrap .sib-form-block__button svg {
  width: 18px;
  height: 18px;
}

.newsletter-page__form-wrap .sib-form-block__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(62, 207, 178, 0.4);
}

.newsletter-page__form-wrap .sib-form-block__button:active {
  transform: translateY(0);
}

.newsletter-page__form-wrap #error-message,
.newsletter-page__form-wrap #success-message {
  max-width: none !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
}
