/* Articles hub + article template — picked. */
.page-articles {
  --articles-bg: #FAF8F5;
  background: var(--articles-bg);
}

.page-articles .navbar {
  background: rgba(250, 248, 245, 0.92);
}

.nav-link.is-active { opacity: 1; font-weight: 600; }

/* Hub nav: logo left · links center · CTA right */
.articles-nav .nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.articles-nav .logo {
  grid-column: 1;
  justify-self: start;
}
.articles-nav .nav-links-center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 28px;
}
.articles-nav .articles-nav-cta {
  grid-column: 3;
  justify-self: end;
}
.articles-nav .menu-toggle {
  grid-column: 3;
  justify-self: end;
}
@media (max-width: 700px) {
  .articles-nav .nav-links-center { display: none; }
  .articles-nav .articles-nav-cta { display: none; }
  .articles-nav .nav-links-center.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FAF8F5;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #E0DDD5;
  }
}

.articles-main {
  padding: 110px 0 80px;
}

.articles-hub-intro {
  margin-bottom: 36px;
  max-width: 36rem;
}

.articles-hub-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.articles-hub-intro p {
  color: #3F3F3A;
  font-size: 17px;
  margin: 0;
  line-height: 1.5;
}

/* Hero 2-col */
.articles-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .articles-hero-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
  isolation: isolate;
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,24,0.15) 0%, rgba(26,26,24,0.75) 100%);
  z-index: 1;
}

.featured-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.featured-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 14px;
  color: #fff;
  max-width: 18ch;
}

.featured-card .article-meta {
  color: rgba(255,255,255,0.85);
}

.latest-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888780;
  margin: 0 0 16px;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.latest-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.15s ease;
}

.latest-item:hover { background: rgba(0,0,0,0.03); }

.latest-item-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #E0DDD5;
}

.latest-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item h4 {
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges */
.article-badge {
  display: inline-block;
  background: #F5EFA8;
  color: #1A1A18;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.article-badge-blue { background: #B8D4F0; }
.article-badge-sm { font-size: 11px; padding: 4px 8px; margin-bottom: 8px; }

.article-meta {
  font-size: 13px;
  color: #888780;
  margin: 0;
}

/* Coin des sorties */
.articles-coin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.articles-coin-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  margin: 0;
}

.articles-carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #E0DDD5;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  color: #1A1A18;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carousel-btn:hover {
  background: #F5EFA8;
  border-color: #C8BA40;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.articles-coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .articles-coin-grid { grid-template-columns: 1fr; }
}

.coin-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E0DDD5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding-bottom: 16px;
}

.coin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,26,24,0.06);
}

.coin-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #E0DDD5;
  margin-bottom: 14px;
}

.coin-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-card .article-badge,
.coin-card h3,
.coin-card .excerpt,
.coin-card .article-meta {
  margin-left: 14px;
  margin-right: 14px;
}

.coin-card h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 14px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coin-card .excerpt {
  font-size: 14px;
  color: #3F3F3A;
  line-height: 1.45;
  margin: 0 14px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #E0DDD5;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #1A1A18;
}

.page-btn.is-active {
  background: #0C447C;
  border-color: #0C447C;
  color: #fff;
}

.page-btn:hover:not(.is-active):not(:disabled) {
  background: #F5EFA8;
}

.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ——— Article page ——— */
.article-sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 56px;
  background: rgba(250, 248, 245, 0.96);
  border-bottom: 1px solid #E0DDD5;
  backdrop-filter: blur(10px);
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.article-sticky-cta.is-visible {
  transform: translateY(0);
}

.article-sticky-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-sticky-logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 18px;
  flex-shrink: 0;
}

.article-sticky-text {
  flex: 1;
  font-size: 14px;
  color: #3F3F3A;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-sticky-btn { flex-shrink: 0; }

@media (max-width: 700px) {
  .article-sticky-text { display: none; }
  .article-sticky-cta { height: 52px; }
}

.page-article .navbar {
  transition: transform 0.2s ease;
}

.page-article.sticky-cta-on .navbar {
  transform: translateY(-100%);
}

.article-layout {
  padding: 110px 0 80px;
}

.article-container {
  max-width: 720px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #0C447C;
  font-size: 14px;
  font-weight: 500;
}

.article-layout h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 14px 0 12px;
}

.article-cover {
  margin: 28px 0 36px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #E0DDD5;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: #3F3F3A;
}

.article-body h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #1A1A18;
  margin: 36px 0 12px;
}

.article-body h3 {
  font-size: 18px;
  color: #1A1A18;
  margin: 28px 0 10px;
}

.article-body p { margin: 0 0 16px; }

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  list-style: revert;
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: #1A1A18; }

.article-body a { color: #0C447C; text-decoration: underline; }

.picked-callout {
  margin: 36px 0;
  padding: 24px 26px;
  background: #F5EFA8;
  border-radius: 16px;
}

.picked-callout-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 0 0 8px;
}

.picked-callout h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.picked-callout p { color: #1A1A18; }

.picked-callout ol {
  margin: 12px 0 16px;
  padding-left: 1.2em;
  color: #1A1A18;
}

.picked-callout .btn { margin-top: 4px; }

.article-footer-cta {
  margin-top: 48px;
  padding: 32px 28px;
  background: #1A1A18;
  color: #FAF8F5;
  border-radius: 18px;
  text-align: center;
}

.article-footer-cta h2 {
  color: #FAF8F5;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.article-footer-cta p {
  color: #C8C5BC;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
}

.article-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #E0DDD5;
}

.article-related h2 {
  font-size: 22px;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .article-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
