/**
 * Page Newsletter — univers éditorial « almanach / média ».
 */

body.edj-page-newsletter {
  background: #f3f0e8;
}

body.edj-page-newsletter main#primary.edj-newsletter-main,
main#primary.edj-newsletter-main {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 24px auto 64px !important;
  padding: 0 !important;
  color: var(--color-text-main);
  box-sizing: border-box;
}

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

.edj-newsletter-page {
  width: 100%;
  margin: 0;
}

.edj-newsletter-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  min-height: 690px;
  padding: clamp(36px, 6vw, 74px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 8%, rgba(255,255,255,.08) 0 1px, transparent 1.5px) 0 0 / 28px 28px,
    radial-gradient(circle at 84% 16%, rgba(232,160,32,.24), transparent 27%),
    linear-gradient(135deg, #122f48 0%, #1e4668 58%, #2c5f8a 100%);
  box-shadow: 0 22px 55px rgba(25, 57, 82, .20);
  color: #fff;
}

.edj-newsletter-hero::before,
.edj-newsletter-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.edj-newsletter-hero::before {
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
}

.edj-newsletter-hero::after {
  right: -84px;
  bottom: -164px;
  width: 365px;
  height: 365px;
}

.edj-newsletter-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.edj-newsletter-eyebrow,
.edj-newsletter-kicker {
  margin: 0 0 15px;
  color: var(--color-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.edj-newsletter-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(39px, 5vw, 63px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.edj-newsletter-lead {
  max-width: 585px;
  margin: 23px 0 28px;
  color: rgba(255,255,255,.80);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.62;
}

.edj-newsletter-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  max-width: 590px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.edj-newsletter-checklist li {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  color: #f6f8fa;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.edj-newsletter-checklist svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(232,160,32,.18);
  color: #f5c060;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.edj-newsletter-hero-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 28px 0 0;
  color: rgba(255,255,255,.57);
  font-size: 12px;
  font-weight: 650;
}

.edj-newsletter-hero-note svg,
.edj-newsletter-form-note svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edj-newsletter-form-column {
  position: relative;
  z-index: 2;
  min-width: 0;
  scroll-margin-top: 30px;
}

.edj-newsletter-form-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 42px 15px 17px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: #eff2f7;
  box-shadow: 0 22px 48px rgba(4, 20, 34, .30);
}

.edj-newsletter-form-badge {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 0 0 11px 11px;
  background: var(--color-secondary);
  color: #17334b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.edj-newsletter-form-frame {
  display: block;
  width: 100% !important;
  height: 650px !important;
  margin: 0;
  border: 0;
  background: #eff2f7;
}

.edj-newsletter-form-note {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin: 3px 0 0;
  color: #657583;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.edj-newsletter-benefits {
  padding: clamp(66px, 8vw, 94px) 0;
}

.edj-newsletter-section-heading {
  max-width: 730px;
  margin: 0 auto 38px;
  text-align: center;
}

.edj-newsletter-section-heading h2,
.edj-newsletter-sample-content h2,
.edj-newsletter-trust h2 {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.edj-newsletter-section-heading h2::before,
.edj-newsletter-sample-content h2::before,
.edj-newsletter-trust h2::before {
  display: none;
}

.edj-newsletter-section-heading > p:last-child {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.edj-newsletter-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.edj-newsletter-benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  margin: 0;
  padding: 31px 28px 28px;
  border: 1px solid #ded9cc;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 30px rgba(30,66,102,.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.edj-newsletter-benefit-card::after {
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(44,95,138,.08);
  border-radius: 50%;
  content: '';
}

.edj-newsletter-benefit-card:hover {
  border-color: #c8c0ad;
  box-shadow: 0 16px 35px rgba(30,66,102,.11);
  transform: translateY(-4px);
}

.edj-newsletter-benefit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #e8f0f7;
  color: var(--color-primary);
}

.edj-newsletter-benefit-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edj-newsletter-benefit-icon text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 850;
  text-anchor: middle;
}

.edj-newsletter-benefit-number {
  margin: 0 0 5px;
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.edj-newsletter-benefit-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-size: 17px;
  line-height: 1.3;
}

.edj-newsletter-benefit-card > p:last-child {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.edj-newsletter-sample {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
  gap: clamp(35px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: clamp(38px, 6vw, 68px);
  border: 1px solid #ded5be;
  border-radius: 22px;
  background:
    linear-gradient(rgba(224,216,196,.36) 1px, transparent 1px) 0 0 / 100% 31px,
    #fffaf0;
  box-shadow: 0 16px 38px rgba(67, 54, 35, .09);
}

.edj-newsletter-sample::after {
  position: absolute;
  top: 28px;
  right: 32px;
  color: rgba(44,95,138,.10);
  content: '✦';
  font-size: 92px;
  line-height: 1;
  pointer-events: none;
}

.edj-newsletter-sample-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 235px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(44,95,138,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 10px rgba(44,95,138,.035), 0 13px 30px rgba(30,66,102,.08);
  text-align: center;
}

.edj-newsletter-sample-date::before,
.edj-newsletter-sample-date::after {
  position: absolute;
  top: 50%;
  width: 25px;
  height: 1px;
  background: var(--color-secondary);
  content: '';
}

.edj-newsletter-sample-date::before {
  left: 20px;
}

.edj-newsletter-sample-date::after {
  right: 20px;
}

.edj-newsletter-sample-month {
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.edj-newsletter-sample-date strong {
  margin: 3px 0 4px;
  font-family: var(--font-serif);
  font-size: 78px;
  font-weight: 700;
  line-height: .95;
}

.edj-newsletter-sample-date > span:last-child {
  font-size: 13px;
  font-weight: 750;
}

.edj-newsletter-sample-content {
  position: relative;
  z-index: 1;
}

.edj-newsletter-sample-content .edj-newsletter-kicker {
  margin-bottom: 10px;
}

.edj-newsletter-sample-content h2 {
  font-size: clamp(29px, 3.5vw, 41px);
}

.edj-newsletter-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 26px;
}

.edj-newsletter-timeline::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 47px;
  width: 1px;
  background: #d5cdbb;
  content: '';
}

.edj-newsletter-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 51px;
  padding: 2px 0 17px;
}

.edj-newsletter-timeline-item:last-child {
  padding-bottom: 0;
}

.edj-newsletter-timeline-item time,
.edj-newsletter-timeline-item > span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-width: 62px;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid #d9d1bf;
  border-radius: 20px;
  background: #fffaf0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 850;
}

.edj-newsletter-timeline-item--world > span {
  color: var(--color-accent-green);
  font-size: 18px;
}

.edj-newsletter-timeline-item p {
  margin: 4px 0 0;
  color: #364550;
  font-size: 15px;
  line-height: 1.5;
}

.edj-newsletter-sample-cta {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 28px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.edj-newsletter-sample-cta:hover,
.edj-newsletter-sample-cta:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.edj-newsletter-trust {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 850px;
  margin: 52px auto 0;
  padding: 26px 30px;
  border-top: 1px solid #d9d5ca;
  border-bottom: 1px solid #d9d5ca;
}

.edj-newsletter-trust-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e7f1e8;
  color: var(--color-accent-green);
}

.edj-newsletter-trust-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edj-newsletter-trust h2 {
  font-size: clamp(23px, 3vw, 31px);
}

.edj-newsletter-trust p {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.edj-newsletter-trust a {
  color: var(--color-primary);
  font-weight: 750;
}

@media (max-width: 980px) {
  .edj-newsletter-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .edj-newsletter-hero-copy {
    max-width: 760px;
  }

  .edj-newsletter-form-card {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  body.edj-page-newsletter main#primary.edj-newsletter-main,
  main#primary.edj-newsletter-main {
    width: min(100% - 20px, 1180px) !important;
    margin-top: 12px !important;
    margin-bottom: 40px !important;
  }

  .edj-newsletter-hero {
    gap: 34px;
    padding: 32px 20px 24px;
    border-radius: 17px;
  }

  .edj-newsletter-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .edj-newsletter-checklist,
  .edj-newsletter-benefit-grid,
  .edj-newsletter-sample {
    grid-template-columns: 1fr;
  }

  .edj-newsletter-benefits {
    padding: 58px 0;
  }

  .edj-newsletter-benefit-card {
    min-height: 0;
  }

  .edj-newsletter-sample {
    gap: 35px;
    padding: 37px 22px;
    border-radius: 17px;
  }

  .edj-newsletter-sample-date {
    width: 205px;
  }

  .edj-newsletter-sample-date strong {
    font-size: 68px;
  }

  .edj-newsletter-trust {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 38px;
    padding: 24px 18px;
    text-align: center;
  }

  .edj-newsletter-trust-icon {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .edj-newsletter-checklist {
    grid-template-columns: 1fr;
  }

  .edj-newsletter-form-card {
    padding-right: 4px;
    padding-left: 4px;
  }

  .edj-newsletter-form-frame {
    height: 700px !important;
  }

  .edj-newsletter-form-note {
    padding: 0 10px;
  }

  .edj-newsletter-timeline-item {
    grid-template-columns: 63px minmax(0, 1fr);
    gap: 11px;
  }

  .edj-newsletter-timeline::before {
    left: 40px;
  }

  .edj-newsletter-timeline-item time,
  .edj-newsletter-timeline-item > span {
    min-width: 57px;
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edj-newsletter-benefit-card {
    transition: none;
  }
}

