/* ==========================================================================
   PAGE NEWSLETTER - LES SERRES DE MITRY
   ========================================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #826E08 0%, #5a6521 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(90, 101, 33, 0.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.breadcrumb-separator {
  opacity: 0.6;
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION AVANTAGES
   ========================================================================== */
.newsletter-benefits {
  padding: 4rem 2rem;
}

.newsletter-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #4a7c3f;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(74, 124, 63, 0.1);
  border: 1px solid #eef3ea;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(74, 124, 63, 0.16);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  background: #e8f5e2;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.1rem;
  color: #2c2c2c;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.95rem;
  color: #4d5c48;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FORMULAIRE D'INSCRIPTION (plugin Email Subscribers / Icegram)
   ========================================================================== */
.newsletter-form-section {
  padding: 0 2rem 5rem;
}

.newsletter-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 40px rgba(74, 124, 63, 0.14);
  border: 1px solid #eef3ea;
  text-align: center;
}

.newsletter-form-title {
  font-size: 1.6rem;
  color: #4a7c3f;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.newsletter-form-intro {
  color: #4d5c48;
  font-size: 0.98rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.newsletter-privacy-note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: #6b6b6b;
}

/* Le plugin injecte ses propres <style> inline (couleurs, largeur) à chaque
   affichage de la page ; ces overrides doivent rester en !important pour
   rester prioritaires quel que soit le formulaire/l'environnement (dev/prod). */
.newsletter-form-card .es_form_wrapper,
.newsletter-form-card .es_subscription_form {
  max-width: 100% !important;
  width: 100% !important;
}

.newsletter-form-card form.es_subscription_form.wysiwyg-form {
  background: transparent !important;
  padding: 0 !important;
  text-align: left;
}

.newsletter-form-card .es-field-label {
  font-family: inherit !important;
  color: #2c2c2c !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
}

.newsletter-form-card .ig-es-form-input {
  font-family: inherit !important;
  border: 1px solid #d8d3c0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 0.9rem !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.newsletter-form-card .ig-es-form-input:focus {
  outline: none !important;
  border-color: #4a7c3f !important;
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.15) !important;
}

.newsletter-form-card .es-gdpr-field span {
  color: #4d5c48 !important;
  font-size: 0.85rem !important;
}

.newsletter-form-card input.es-subscribe-btn,
.newsletter-form-card .es-subscribe-btn {
  background: #826E08 !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  width: 100% !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
}

.newsletter-form-card input.es-subscribe-btn:hover,
.newsletter-form-card .es-subscribe-btn:hover {
  background: #5a6521 !important;
  transform: translateY(-2px);
}

.newsletter-form-card .es_subscription_message {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem !important;
}

.newsletter-form-card .es_subscription_message.success {
  color: #4a7c3f !important;
}

.newsletter-form-card .es_subscription_message.error {
  color: #b3401f !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .newsletter-benefits {
    padding: 3rem 1.25rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form-section {
    padding: 0 1.25rem 3.5rem;
  }

  .newsletter-form-card {
    padding: 2rem 1.5rem;
  }
}
