/* Hero waves */
.hero-waves {
  position: absolute;
  top: -330px;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.page-basic {
  padding: 2rem var(--cw-gutter) clamp(2.5rem, 6vw, 4rem);
  overflow: visible;
}

.page-basic__inner {
  max-width: 42rem;
}

.page-basic__inner:has(.wp-block-compositiwings-offers),
.page-basic__inner:has(.wp-block-compositiwings-sectors) {
  max-width: min(100%, var(--cw-max));
}

.page-basic__content.is-layout-flow {
  --wp--style--block-gap: 1.5rem;
}

.page-basic__content > .wp-block-compositiwings-offers,
.page-basic__content > .wp-block-compositiwings-sectors {
  --wp--style--block-gap: 0;
}

.page-basic__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-basic__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cw-text);
}

.page-basic__content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cw-text-muted);
}

.page-basic__content > *:first-child {
  margin-top: 0;
}

.page-basic__content > *:last-child {
  margin-bottom: 0;
}

.page-basic__content h2,
.page-basic__content h3,
.page-basic__content h4 {
  margin: 2rem 0 0.75rem;
  color: var(--cw-text);
  font-weight: 600;
  line-height: 1.3;
}

/* Typo article — exclure les blocs Compositiwings (marges uniquement) */
.page-basic__content :is(.offer-card, .sector-tile, .offers, .sectors) :is(h1, h2, h3, h4, p, span) {
  margin: 0;
  line-height: inherit;
}

.page-basic__content h2 {
  font-size: 1.5rem;
}

.page-basic__content h3 {
  font-size: 1.25rem;
}

.page-basic__content p,
.page-basic__content ul,
.page-basic__content ol {
  margin: 0 0 1.25rem;
}

.page-basic__content :is(.offer-card, .sector-tile, .offers, .sectors) p {
  margin: 0;
}

.page-basic__content ul,
.page-basic__content ol {
  padding-left: 1.25rem;
  list-style: revert;
}

.page-basic__content a {
  position: relative;
  display: inline;
  color: var(--cw-blue-dark);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--cw-blue-dark), var(--cw-blue-dark));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% var(--cw-underline-size);
  padding-bottom: var(--cw-underline-gap);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition:
    color 0.2s cubic-bezier(0.2, 0, 0, 1),
    background-size 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    background-image 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@media (hover: hover) and (pointer: fine) {
  .page-basic__content a:hover {
    color: var(--cw-blue);
    background-image: linear-gradient(var(--cw-blue), var(--cw-blue));
    background-size: 100% 3px;
  }

  .page-basic__content a:is(.offer-card, .sector-tile):hover {
    color: var(--cw-text);
    background-image: none;
  }
}

.page-basic__content a:is(.offer-card, .sector-tile) {
  display: flex;
  color: var(--cw-text);
  font-weight: inherit;
  background-image: none;
  padding-bottom: 0;
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.page-basic__content :is(.offer-card, .sector-tile) img {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-basic__content a {
    transition: none;
  }
}

.page-basic__content img {
  border-radius: 5px;
}
