.dc-newsletter {
  --dc-nl-bg: #0a0c0d;
  --dc-nl-paper: #f5f1e9;
  --dc-nl-muted: rgba(245, 241, 233, .72);
  --dc-nl-gold: #c6a767;
  --dc-nl-line: rgba(245, 241, 233, .14);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--dc-nl-paper);
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 167, 103, .12), transparent 35%),
    linear-gradient(180deg, #0d0f10 0%, var(--dc-nl-bg) 100%);
  border-block: 1px solid var(--dc-nl-line);
  font-family: "Manrope", Arial, sans-serif;
}

.dc-newsletter,
.dc-newsletter * {
  box-sizing: border-box;
}

/* Le parent de l’accueil est déjà pleine largeur. Ne pas recréer une largeur
   de viewport : avec une scrollbar, elle provoquerait un débordement. */
body.home .wp-block-group.alignfull:has(.dc-newsletter) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

.dc-newsletter__decor {
  position: absolute;
  z-index: 0;
  right: clamp(18px, 5vw, 72px);
  bottom: -78px;
  color: rgba(198, 167, 103, .055);
  font: 700 clamp(220px, 28vw, 410px) / 1 Georgia, serif;
  transform: rotate(7deg);
  user-select: none;
  pointer-events: none;
}

.dc-newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  min-height: 292px;
  margin: 0 auto;
  padding: 48px 0;
}

.dc-newsletter__copy,
.dc-newsletter__form,
.dc-newsletter__controls {
  min-width: 0;
}

.dc-newsletter__eyebrow {
  margin: 0 0 13px;
  color: var(--dc-nl-gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dc-newsletter h2 {
  max-width: 620px;
  margin: 0;
  color: var(--dc-nl-paper);
  font: 700 clamp(34px, 3.4vw, 46px) / 1.04 "Fraunces", Georgia, serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.dc-newsletter__copy > p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--dc-nl-muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.dc-newsletter__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dc-newsletter input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 18px;
  color: #17191d;
  background: #f3efe8;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font: 600 15px / 1.2 "Manrope", Arial, sans-serif;
}

.dc-newsletter input[type="email"]::placeholder {
  color: #676a70;
  opacity: 1;
}

.dc-newsletter input[type="email"]:focus-visible {
  border-color: var(--dc-nl-gold);
  outline: 3px solid var(--dc-nl-gold);
  outline-offset: 2px;
}

.dc-newsletter button {
  min-width: 154px;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  color: #121416;
  background: var(--dc-nl-gold);
  border: 1px solid var(--dc-nl-gold);
  border-radius: 0;
  font: 800 13px / 1 "Manrope", Arial, sans-serif;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.dc-newsletter button:hover {
  background: #d8bd82;
  border-color: #d8bd82;
  transform: translateY(-1px);
}

.dc-newsletter button:focus-visible {
  outline: 3px solid var(--dc-nl-paper);
  outline-offset: 3px;
}

.dc-newsletter button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.dc-newsletter__form[data-state="success"] button:disabled {
  cursor: default;
}

.dc-newsletter__legal {
  margin: 13px 0 0;
  color: rgba(245, 241, 233, .62);
  font-size: 12px;
  line-height: 1.55;
}

.dc-newsletter__status {
  margin: 13px 0 0;
  color: rgba(245, 241, 233, .62);
  font-size: 13px;
  line-height: 1.55;
}

.dc-newsletter__legal a {
  color: inherit;
  text-underline-offset: 3px;
}

.dc-newsletter__status:not(:empty) {
  margin-top: 16px;
  padding: 13px 15px;
  color: #f5f1e9;
  background: rgba(198, 167, 103, .12);
  border-left: 3px solid var(--dc-nl-gold);
  font-size: 13px;
}

.dc-newsletter__status[data-state="error"] {
  background: rgba(190, 68, 58, .14);
  border-left-color: #d98980;
}

.dc-newsletter__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 860px) {
  .dc-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .dc-newsletter__decor {
    display: none;
  }

  .dc-newsletter__inner {
    width: calc(100% - 32px);
    max-width: none;
    min-height: 0;
    gap: 22px;
    padding: 34px 0 36px;
  }

  .dc-newsletter__eyebrow {
    margin-bottom: 10px;
  }

  .dc-newsletter h2 {
    font-size: clamp(28px, 8.4vw, 32px);
    line-height: 1.04;
  }

  .dc-newsletter__copy > p:last-child {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .dc-newsletter__controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .dc-newsletter input[type="email"],
  .dc-newsletter button {
    min-height: 52px;
  }

  .dc-newsletter button {
    min-width: 118px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .dc-newsletter__legal {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 340px) {
  .dc-newsletter__controls {
    grid-template-columns: 1fr;
  }

  .dc-newsletter input[type="email"],
  .dc-newsletter button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-newsletter button {
    transition: none;
  }
}
