/* ============================================================
   NEWSLETTER — Modal subscribe form + footer trigger
   ============================================================
   Two parts:
     1. The trigger block in the footer (#newsletter-mount)
        → a compact "Subscribe" button
     2. The modal opened on click
        → email + first name + consent + captcha
   ============================================================ */

/* ============================================================
   1. Footer trigger block
   ============================================================ */
.newsletter-trigger-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-trigger-block h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: white;
}
.newsletter-trigger-lede {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
/* Footer-only sizing override: keep the trigger button compact and aligned to the start */
.newsletter-trigger-btn {
  align-self: flex-start;
}

/* ============================================================
   2. The newsletter modal
   ============================================================ */
.newsletter-modal-overlay {
  z-index: 240; /* below registration wizard (250), but above standard content */
}
.newsletter-modal {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

/* Header eyebrow */
.newsletter-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 6px;
}
.newsletter-modal-eyebrow svg {
  width: 14px;
  height: 14px;
}

/* Body */
.newsletter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.newsletter-modal-lede {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-mute);
}
.newsletter-modal-lede strong {
  color: var(--c-deep);
}

/* Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter-field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-deep);
}
.newsletter-field-label em {
  font-style: normal;
  color: var(--c-gold);
  font-weight: 700;
}
.newsletter-field-optional {
  color: var(--c-mute);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11px;
}
.newsletter-field input[type="email"],
.newsletter-field input[type="text"] {
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  background: var(--c-paper);
  color: var(--c-ink);
  transition: border-color 0.15s var(--ease);
}
.newsletter-field input:focus {
  outline: none;
  border-color: var(--c-blue);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-cream);
  border-left: 3px solid var(--c-gold);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-deep);
  cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-blue);
}

.newsletter-captcha-slot {
  margin: 4px 0;
}

.newsletter-feedback {
  margin: 8px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border-left: 3px solid;
}
.newsletter-feedback.is-success {
  background: rgba(15, 110, 86, 0.06);
  color: #0F6E56;
  border-left-color: #0F6E56;
}
.newsletter-feedback.is-error {
  background: rgba(163, 45, 45, 0.06);
  color: #A32D2D;
  border-left-color: #A32D2D;
}

/* Submit disabled state */
.newsletter-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.newsletter-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 600px) {
  .newsletter-modal-body { padding: 18px 20px; }
}

/* ============================================================
   Footer layout — newsletter column + social block side by side
   ============================================================
   The 4th column of the footer hosts both:
     - the newsletter trigger (compact button)
     - the "Suivez-nous" social icon links
   They are stacked with a generous gap so they never overlap.
   ============================================================ */
.footer-col-newsletter {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-social h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: white;
}
