/* =========================================
   FICHIER : css/newsletter.css
   ROLE    : Styles partagés pour les blocs newsletter (footer + posts)
   ========================================= */

/* Champ honeypot invisible mais présent pour les bots */
.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Bloc newsletter (footer accueil) */
.newsletter-box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(30,61,89,0.12);
  background: rgba(255,255,255,0.70);
  box-shadow: 0 12px 30px rgba(30,61,89,0.08);
}

.newsletter-text h3{
  margin: 0 0 6px;
  font-family: var(--font-title);
  color: var(--color-deep);
  font-size: 1.7rem;
}

.newsletter-heart{
  color: var(--color-accent);
}

.newsletter-text p{
  margin: 0;
  color: rgba(45,52,54,0.78);
  font-weight: 600;
}

.newsletter-form{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.newsletter-form input[type="email"]{
  width: min(320px, 55vw);
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30,61,89,0.18);
  background: rgba(255,255,255,0.95);
  outline: none;
}

.newsletter-form input[type="email"]:focus{
  border-color: rgba(255,110,64,0.65);
  box-shadow: 0 0 0 4px rgba(255,110,64,0.18);
}

.btn-newsletter{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--color-accent);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-newsletter:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255,110,64,0.25);
}

@media (max-width: 980px){
  .newsletter-box{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .newsletter-form{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .newsletter-form input[type="email"]{
    width: 100%;
    max-width: 520px;
  }
}
