section:first-child {
  background-color: var(--primary-surface);
  padding-bottom: var(--padding-section-block);
  @media (width < 48rem) {
    padding-bottom: 1rem;
  }

  & > div {
    padding-block: 0;
    gap: 0;
  }

  h1 {
    grid-column: 1 / 9;
  }

  .hero_circle::before {
    background-image: url('./../../img/new-design/circle/demi-cercle_white.svg');
    z-index: unset;
  }

  .breadcrumb {
    padding-top: 1rem;
  }

  @media (width < 64rem) {
    h1 {
      grid-column: 1 / 2;
    }
  }
}

section:nth-child(2) {
  @media (width < 48rem) {
    & > div {
      padding-top: 1rem;
    }
  }

  & > div {
    gap: 4.5rem;

    @media (width < 64rem) {
      gap: 2rem;
    }

    @media (width < 48rem) {
      gap: 1.5rem;
    }

    & hr {
      margin-top: 2.5rem;

      @media (width < 48rem) {
        margin-top: 1rem;
      }
    }
  }
}

.newsletter {
  background-color: var(--primary-surface);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  background-origin: border-box;
  background-image: url('./../../img/new-design/circle_newsletter/circle_newsletter_left.svg'), url('./../../img/new-design/circle_newsletter/circle_newsletter_right.svg');
  background-position: left, right;
  background-repeat: no-repeat;
  text-align: center;
  padding-block: 7rem;

  @media (width < 64rem) {
    grid-template-columns: 1fr;
    padding-block: 4rem;
  }

  @media (width < 48rem) {
    padding-block: 2.5rem;
    padding-inline: calc(var(--padding-section-inline) / 2);
    background-image: none;
  }

  & > * {
    grid-column: 4 / 10;
    @media (width < 64rem) {
      grid-column: 1 / 2;
    }
  }
}

#newsletter-email::-webkit-search-cancel-button,
#newsletter-email::-webkit-clear-button,
#newsletter-email::-ms-clear {
  display: none;
}

/* Never break input + submit button */
.newsletter-wrap [data-layout="row"] {
  flex-wrap: nowrap !important;
}

.newsletter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;

  @media (width < 64rem) {
    width: 80%;
  }

  @media (width < 48rem) {
    width: 100%;
  }
}

.newsletter-msg {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  border-left: 3px solid currentColor;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--blanc);
  backdrop-filter: blur(4px);
}

.newsletter-msg.success {
  color: var(--green-og);
  background-color: rgba(0, 192, 72, 0.15);
}

/* News cards responsive */
.news-card-title {
  @media (width < 48rem) {
    min-height: unset;
  }
}

/* Nicer news cards styling */
.news-card {
  gap: var(--gap-xxs) !important;
  padding-block: 0.25rem;
}

.news-card > div[data-layout="row"] p {
  --font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--primary));
  font-weight: 500;
}

.news-card .news-card-title {
  font-weight: 300;
  --text-color: rgb(var(--title-color));
  line-height: 150%;

  @media (width < 48rem) {
    --font-size: 1rem;
  }
}

/* News cards grid - reduce gap when single column */
section:nth-child(2) [data-layout="two-col"] {
  @media (width < 64rem) {
    gap: var(--gap-md);
  }
}

/* Tighter internal gap in news cards on tablet/mobile */
.news-card[data-gap="md"] {
  @media (width < 64rem) {
    gap: var(--gap-xs);
  }
}
