/* Blog article — editorial layout */
.wellsat-article {
  --article-ink: var(--couleur-texte, #2d364b);
  --article-accent: var(--couleur-secondaire, #e17849);
  --article-cream: var(--couleur-fond, #faf4ed);
  color: var(--article-ink);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

.wellsat-article__container {
  max-width: 1220px;
}

.wellsat-article__back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(45, 54, 75, .72);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.wellsat-article__back:hover,
.wellsat-article__back:focus-visible {
  color: var(--article-accent);
  transform: translateX(-3px);
}

.wellsat-article__back:focus-visible,
.wellsat-article-nav__card:focus-visible,
.wellsat-article__toc a:focus-visible {
  outline: 3px solid var(--article-accent);
  outline-offset: 4px;
}

.wellsat-article__header {
  max-width: 980px;
  margin: clamp(2.6rem, 6vw, 5rem) auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.wellsat-article__eyebrow,
.wellsat-blog-media__eyebrow {
  margin: 0 0 .8rem;
  color: var(--article-accent);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wellsat-article__title {
  margin: 0;
  color: var(--article-ink);
  font-family: var(--main-font-family);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.wellsat-article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.45rem;
  color: rgba(45, 54, 75, .63);
  font-size: .88rem;
}

.wellsat-article__status {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .75rem;
  color: #fff;
  background: var(--article-accent);
  border-radius: 50px;
  font-size: .78rem;
}

.wellsat-article__hero {
  max-width: 1120px;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.wellsat-article__hero img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(45, 54, 75, .12);
}

.wellsat-article__hero figcaption {
  margin-top: .75rem;
  color: rgba(45, 54, 75, .62);
  font-size: .8rem;
  text-align: center;
}

.wellsat-article__reading-layout {
  max-width: 820px;
  margin: 0 auto;
}

.wellsat-article__reading-layout.has-toc {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(210px, 250px) minmax(0, 780px);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.wellsat-article__toc-wrap {
  position: sticky;
  top: 2rem;
}

.wellsat-article__toc {
  padding: 1.25rem 1.3rem;
  background: var(--article-cream);
  border: 1px solid rgba(45, 54, 75, .08);
  border-radius: 14px;
}

.wellsat-article__toc summary {
  color: var(--article-ink);
  cursor: pointer;
  font-family: var(--main-font-family);
  font-size: 1.2rem;
  font-weight: 600;
}

.wellsat-article__toc ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.wellsat-article__toc li + li {
  margin-top: .65rem;
}

.wellsat-article__toc li.level-3 {
  padding-left: .85rem;
  font-size: .88rem;
}

.wellsat-article__toc a {
  color: rgba(45, 54, 75, .78);
  font-size: .9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}

.wellsat-article__toc a:hover {
  color: var(--article-accent);
}

.wellsat-article__body {
  min-width: 0;
  color: var(--article-ink);
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  line-height: 1.88;
}

.wellsat-article__body > *:first-child {
  margin-top: 0;
}

.wellsat-article__body p {
  margin: 0 0 1.45em;
}

.wellsat-article__body h2,
.wellsat-article__body h3,
.wellsat-article__body h4 {
  color: var(--article-ink);
  font-family: var(--main-font-family);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  scroll-margin-top: 2rem;
}

.wellsat-article__body h2 {
  margin: 2.5em 0 .8em;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

.wellsat-article__body h3 {
  margin: 2em 0 .7em;
  color: var(--article-accent);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.wellsat-article__body a {
  color: var(--article-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.wellsat-article__body a:hover {
  color: var(--article-ink);
}

.wellsat-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.wellsat-article__body figure {
  margin: 2.4rem 0;
}

.wellsat-article__body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem clamp(1.3rem, 3vw, 2rem);
  background: var(--article-cream);
  border-left: 3px solid var(--article-accent);
  border-radius: 0 14px 14px 0;
  font-family: var(--main-font-family);
  font-size: 1.3em;
  line-height: 1.55;
}

.wellsat-article__body ul,
.wellsat-article__body ol {
  margin: 0 0 1.7em;
  padding-left: 1.35em;
}

.wellsat-article__body li + li {
  margin-top: .55em;
}

.wellsat-blog-media {
  max-width: 1120px;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--article-cream);
  border-radius: 22px;
}

.wellsat-blog-media h2 {
  margin: 0 0 1.6rem;
  color: var(--article-ink);
  font-family: var(--main-font-family);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
}

.wellsat-blog-media--gallery img,
.wellsat-blog-media--gallery a {
  border-radius: 12px;
}

.wellsat-blog-media--video .wellsat-blog-media__content {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(45, 54, 75, .12);
}

.wellsat-blog-media--video iframe,
.wellsat-blog-media--video video {
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
}

.wellsat-article__copyright {
  max-width: 820px;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding-top: 1.2rem;
  color: rgba(45, 54, 75, .55);
  border-top: 1px solid rgba(45, 54, 75, .10);
  font-size: .77rem;
  font-style: italic;
}

.wellsat-related {
  max-width: 1120px;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
}

.wellsat-related__header {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.wellsat-related__eyebrow {
  margin: 0 0 .7rem;
  color: var(--article-accent);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wellsat-related__title {
  margin: 0;
  color: var(--article-ink);
  font-family: var(--main-font-family);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.wellsat-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.wellsat-article-nav {
  display: grid;
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}

.wellsat-article-nav__card {
  display: grid;
  min-height: 132px;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  color: var(--article-ink);
  background: #fff;
  border: 1px solid rgba(45, 54, 75, .10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(45, 54, 75, .06);
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.wellsat-article-nav__card.without-image {
  grid-template-columns: 1fr;
  background: var(--article-cream);
}

.wellsat-article-nav__media {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.wellsat-article-nav__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(.85);
  transform: scale(1.01);
  transition: filter .4s ease, transform .5s ease;
}

.wellsat-article-nav__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.35rem;
}

.wellsat-article-nav__direction {
  margin-bottom: .55rem;
  color: var(--article-accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wellsat-article-nav__title {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--main-font-family);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wellsat-article-nav__card--next {
  text-align: right;
}

.wellsat-article-nav__card--next:not(.without-image) {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.wellsat-article-nav__card--next .wellsat-article-nav__media {
  order: 2;
}

.wellsat-article-nav__card:hover {
  color: var(--article-ink);
  border-color: rgba(225, 120, 73, .4);
  box-shadow: 0 18px 42px rgba(45, 54, 75, .13);
  transform: translateY(-5px);
}

.wellsat-article-nav__card:hover img {
  filter: saturate(1);
  transform: scale(1.07);
}

@media (max-width: 991.98px) {
  .wellsat-article__reading-layout.has-toc {
    display: block;
    max-width: 820px;
  }

  .wellsat-article__toc-wrap {
    position: static;
    margin-bottom: 2.5rem;
  }

  .wellsat-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .wellsat-article__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .wellsat-article__hero img,
  .wellsat-blog-media {
    border-radius: 15px;
  }

  .wellsat-article-nav {
    grid-template-columns: 1fr;
  }

  .wellsat-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wellsat-article-nav > span:empty {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .wellsat-article__meta {
    flex-wrap: wrap;
  }

  .wellsat-blog-media {
    padding: 1.5rem 1rem;
  }

  .wellsat-article-nav__card {
    min-height: 116px;
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .wellsat-article-nav__card--next:not(.without-image) {
    grid-template-columns: minmax(0, 1fr) 105px;
  }

  .wellsat-article-nav__card.without-image {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wellsat-article__back,
  .wellsat-article-nav__card,
  .wellsat-article-nav__media img,
  .wellsat-article__toc a {
    transition: none;
  }
}
