/* Modèle d'article WE BJJ, mobile d'abord. Le texte garde les styles du thème ; seuls les liens changent de couleur. */
.wbj-art { background: #fff; }
/* Le thème remonte le conteneur des articles de 215px pour chevaucher son bandeau image, que ce modèle n'affiche plus. */
body.wbj-article .site-content > .keydesign-container { margin-top: 0; }
.wbj-ahead { padding-top: 16px; }
.wbj-crumbs { display: none; font-size: 13px; line-height: 20px; color: var(--wbj-muted); margin-bottom: 18px; }
.wbj .wbj-crumbs a { color: var(--wbj-ink); } .wbj-crumbs span { margin: 0 8px; }
.wbj a.wbj-cat { color: var(--wbj-violet); }
.wbj-ahead h1 { font-size: 29px; line-height: 35px; letter-spacing: -.75px; margin: 8px 0 12px; }
.wbj-by { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px 10px; font-size: 13px; line-height: 18px; color: var(--wbj-muted); }
.wbj-by b { color: var(--wbj-ink); font-weight: 600; }
.wbj .wbj-av { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--wbj-violet); object-fit: cover; }
.wbj-by .wbj-level { grid-column: 1 / -1; justify-self: start; }
.wbj-level { display: inline-flex; align-items: center; gap: 8px; background: var(--wbj-cream); border-radius: 8px; padding: 6px 10px; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500; color: var(--wbj-ink); }
.wbj-level i { width: 20px; height: 7px; border-radius: 3px; }
.wbj-heroimg { margin: 14px 0 0; aspect-ratio: 2 / 1; border-radius: 8px; overflow: hidden; background: #f1eee7; }
.wbj .wbj-heroimg img { width: 100%; height: 100%; object-fit: cover; }

.wbj .wbj-strip { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--wbj-ink); border-radius: 10px; padding: 10px 12px 10px 10px; margin: 14px 0 0; color: #fff; }
.wbj-strip-im { width: 48px; height: 48px; border-radius: 6px; background: #fff; overflow: hidden; display: block; }
.wbj .wbj-strip-im img { width: 100%; height: 100%; object-fit: cover; }
.wbj-strip small, .wbj-t3 small { display: block; font-size: 10.5px; line-height: 14px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--wbj-sand); font-weight: 600; }
.wbj-strip b { display: block; font-size: 14.5px; line-height: 19px; font-weight: 600; color: #fff; }
.wbj-strip-go { background: var(--wbj-sand); color: var(--wbj-ink); border-radius: 7px; padding: 15px 13px 14px; font-size: 12.5px; line-height: 14px; font-weight: 700; text-transform: uppercase; }

.wbj-top3 { margin: 16px 0 0; border: 1.5px solid var(--wbj-ink); border-radius: 10px; overflow: hidden; }
.wbj-top3-h { background: var(--wbj-ink); color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.wbj-top3-h em { font-style: normal; background: var(--wbj-sand); color: var(--wbj-ink); border-radius: 5px; padding: 2px 7px; letter-spacing: 0; font-size: 11.5px; white-space: nowrap; }
.wbj .wbj-t3 { display: grid; grid-template-columns: 22px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--wbj-line); color: var(--wbj-text); }
.wbj .wbj-t3:first-of-type { border-top: 0; }
.wbj-t3-n { font-family: "DM Serif Text", serif; font-size: 20px; color: var(--wbj-violet); text-align: center; }
.wbj-t3-im, .wbj-gp-im { width: 56px; height: 56px; border-radius: 6px; background: #f4f2ee; overflow: hidden; display: block; }
.wbj .wbj-t3-im img, .wbj .wbj-gp-im img { width: 100%; height: 100%; object-fit: cover; }
.wbj-t3 small { color: var(--wbj-vdark); }
.wbj-t3 b { display: block; font-size: 14px; line-height: 18px; color: var(--wbj-ink); font-weight: 600; }
.wbj-t3-p { display: block; font-size: 13px; line-height: 17px; color: var(--wbj-ink); font-weight: 700; }
.wbj-t3-p s { color: var(--wbj-muted); font-weight: 400; margin-left: 6px; font-size: 12px; }

.wbj-mtoc { margin: 14px 0 0; background: var(--wbj-cream); border-radius: 10px; }
.wbj-mtoc summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--wbj-ink); position: relative; }
.wbj-mtoc summary::-webkit-details-marker { display: none; }
.wbj-mtoc summary::after { content: "+"; position: absolute; right: 16px; top: 9px; font-size: 22px; font-weight: 400; color: var(--wbj-violet); letter-spacing: 0; }
.wbj-mtoc[open] summary::after { content: "\2212"; }
.wbj .wbj-mtoc ol { margin: 0; padding: 0 16px 14px 36px; font-size: 14.5px; line-height: 22px; display: grid; gap: 8px; list-style: decimal; }
.wbj .wbj-mtoc a { color: var(--wbj-ink); }

.wbj-cols { padding-top: 24px; }
.wbj-cols .wbj-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.wbj-side { display: none; }
.wbj-content h2 { scroll-margin-top: calc(var(--wbj-head, 182px) + 18px); }
.wbj .wbj-content p a, .wbj .wbj-content li a { color: var(--wbj-ink); font-weight: 500; text-decoration: none; background: linear-gradient(transparent 68%, rgba(233,187,113,.55) 68%); }
.wbj .wbj-content p a:hover, .wbj .wbj-content li a:hover { background: rgba(233,187,113,.55); }
@media (max-width: 899px) {
    .wbj-content h2 { font-size: 27px; line-height: 33px; letter-spacing: -.6px; }
    .wbj-content h3 { font-size: 22px; line-height: 28px; letter-spacing: -.4px; }
}

.wbj-mid { margin: 32px -4px; background: var(--wbj-cream); border-radius: 10px; padding: 18px 0 16px 16px; }
.wbj-mid-k { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-right: 16px; margin-bottom: 10px; }
.wbj .wbj-mid-k a { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--wbj-ink); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.wbj .wbj-mid-t { font-family: "DM Serif Text", Georgia, serif; color: var(--wbj-ink); font-size: 21px; line-height: 26px; letter-spacing: -.45px; margin: 0 16px 12px 0; }
.wbj-mid-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px 0; scrollbar-width: none; scroll-snap-type: x mandatory; }
.wbj-mid-row::-webkit-scrollbar { display: none; }
.wbj .wbj-mid-row .wbj-prod { flex: 0 0 58%; }
.wbj-mid .wbj-prod h3 { font-size: 16.5px; line-height: 21px; }
.wbj-mid .wbj-pcta { padding: 14px 10px 13px; }
.wbj .wbj-aff { font-size: 12.5px; line-height: 18px; color: var(--wbj-muted); margin: 12px 16px 0 0; }

.wbj .wbj-rayline { margin: 32px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--wbj-ink); color: #fff; border-radius: 10px; padding: 16px; }
.wbj-rayline b { display: block; font-family: "DM Serif Text", serif; font-weight: 400; font-size: 19px; line-height: 24px; color: #fff; }
.wbj-rayline em { font-style: normal; font-size: 13px; line-height: 18px; color: var(--wbj-sand); font-weight: 500; }
.wbj .wbj-rayline .wbj-btn { font-size: 13px; padding: 14px 14px 13px; color: var(--wbj-ink); }

.wbj-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--wbj-line); font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; color: var(--wbj-ink); }
.wbj .wbj-share a, .wbj .wbj-share button { background: var(--wbj-cream); border: 0; border-radius: 8px; padding: 12px 13px; color: var(--wbj-ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.wbj-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; background: #fff; border-radius: 10px; box-shadow: 0 6px 30px rgba(16,27,34,.09); padding: 20px; margin: 28px 0 0; }
.wbj .wbj-author .wbj-av { width: 56px; height: 56px; border-width: 2px; }
.wbj .wbj-author-n { font-family: "DM Serif Text", Georgia, serif; color: var(--wbj-ink); font-size: 20px; line-height: 25px; margin: 2px 0 6px; }
.wbj .wbj-author p { margin: 0 0 8px; font-size: 14.5px; line-height: 23px; }

/* ---- La suite de lecture ---- */
.wbj .wbj-also { display: grid; gap: 4px; margin: 32px 0; padding: 16px 18px; background: var(--wbj-cream); border-radius: 10px; border-left: 3px solid var(--wbj-violet); }
.wbj .wbj-content .wbj-also a, .wbj .wbj-also a { font-family: "DM Serif Text", Georgia, serif; font-size: 19px; line-height: 25px; letter-spacing: -.3px; color: var(--wbj-ink); background: none; font-weight: 400; }
.wbj .wbj-also a:hover { color: var(--wbj-vdark); }
.wbj-ng { display: grid; gap: 0; }
.wbj .wbj-nc:nth-child(n+4) { display: none; }
.wbj .wbj-nc:first-child { display: block; padding: 0 0 20px; }
.wbj .wbj-nc:first-child .wbj-im { aspect-ratio: 16 / 9; margin-bottom: 14px; }
.wbj .wbj-nc:first-child h3 { font-size: 24px; line-height: 30px; letter-spacing: -.5px; margin: 8px 0 6px; }
.wbj-nc-x, .wbj-nc .wbj-go { display: none; }
.wbj .wbj-nc:first-child .wbj-nc-x { display: block; margin: 0 0 12px; font-size: 15px; line-height: 24px; }
.wbj .wbj-nc:first-child .wbj-go { display: flex; justify-content: center; background: var(--wbj-sand); color: var(--wbj-ink); border-radius: 8px; padding: 15px 12px 14px; margin-top: 12px; font-size: 13.5px; }
.wbj .wbj-nc:nth-child(2) { border-top: 1px solid var(--wbj-line); }
.wbj-stick.wbj-stick-next em { font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600; color: var(--wbj-violet); }
.wbj-stick.wbj-stick-next b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 17px; }
.wbj .wbj-stick .wbj-strip-im img { width: 100%; height: 100%; object-fit: cover; }

.wbj-next { padding-top: 40px; padding-bottom: 32px; background: #fff; }
.wbj-next h2 { font-size: 27px; line-height: 33px; letter-spacing: -.6px; margin: 6px 0 8px; }
.wbj .wbj-nc { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--wbj-line); align-items: center; color: var(--wbj-text); }
.wbj .wbj-nc:first-child { border-top: 0; }
.wbj-nc .wbj-im { aspect-ratio: 4 / 3; }
.wbj-nc h3 { font-size: 17.5px; line-height: 23px; letter-spacing: -.3px; margin: 5px 0 0; }
.wbj-nc .wbj-meta { display: none; }
.wbj-com { background: #fff; padding-bottom: 96px; }
.wbj-com summary { list-style: none; cursor: pointer; padding-top: 20px; border-top: 1px solid var(--wbj-line); }
.wbj-com summary::-webkit-details-marker { display: none; }
.wbj-art .wbj-newswrap { padding-bottom: 32px; }

.wbj-stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--wbj-line); box-shadow: 0 -8px 30px rgba(16,27,34,.1); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .25s; }
.wbj-stick[hidden] { display: none; }
.wbj-stick.is-on { transform: none; }
.wbj-stick .wbj-strip-im { width: 44px; height: 44px; background: #f4f2ee; }
.wbj-stick b { display: block; font-size: 13.5px; line-height: 18px; color: var(--wbj-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbj-stick em { display: block; font-style: normal; font-size: 12.5px; line-height: 16px; color: var(--wbj-vdark); font-weight: 500; }
.wbj .wbj-stick .wbj-btn { font-size: 13px; padding: 15px 16px 14px; }
.wbj-stick-x { position: absolute; top: -13px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--wbj-line); font-size: 15px; line-height: 22px; text-align: center; color: var(--wbj-muted); cursor: pointer; padding: 0; }
/* Barre « À suivre » : fond sombre, entrée avec rebond et bouton qui pulse deux fois, pour qu'on la voie arriver. */
.wbj-stick.wbj-stick-next { background: var(--wbj-ink); border-top: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(16,27,34,.28); padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; transition: transform .55s cubic-bezier(.2, 1.5, .4, 1); }
.wbj-stick.wbj-stick-next::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--wbj-violet), var(--wbj-sand)); }
.wbj-stick.wbj-stick-next .wbj-strip-im { width: 56px; height: 56px; border-radius: 8px; }
.wbj-stick.wbj-stick-next em { color: var(--wbj-sand); font-size: 11px; margin-bottom: 2px; }
.wbj-stick.wbj-stick-next b { color: #fff; font-size: 14.5px; line-height: 19px; }
.wbj .wbj-stick.wbj-stick-next .wbj-btn { font-size: 14px; padding: 17px 18px 16px; }
.wbj-stick.wbj-stick-next.is-on .wbj-btn { animation: wbj-pulse 1.1s ease-out .55s 2; }
.wbj-stick.wbj-stick-next .wbj-stick-x { background: var(--wbj-ink); border-color: rgba(255,255,255,.35); color: #fff; top: -12px; }
@keyframes wbj-pulse { 0% { box-shadow: 0 0 0 0 rgba(233,187,113,.75); transform: scale(1); } 35% { transform: scale(1.07); } 100% { box-shadow: 0 0 0 16px rgba(233,187,113,0); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wbj-stick.wbj-stick-next { transition: none; } .wbj-stick.wbj-stick-next.is-on .wbj-btn { animation: none; } }
/* Sur mobile, la suite de lecture passe avant le partage et l'auteur (déplacée par article.js). */
.wbj-body > .wbj-next { padding-top: 32px; padding-bottom: 8px; }
body.wbj-article .back-to-top { bottom: 110px; }

@media (min-width: 900px) {
    .wbj-ahead { padding-top: 48px; }
    .wbj-crumbs { display: block; }
    .wbj-ahead h1 { font-size: 58px; line-height: 69.6px; letter-spacing: -1.566px; max-width: 980px; margin: 12px 0 24px; }
    .wbj-by { display: flex; flex-wrap: wrap; font-size: 14px; line-height: 20px; gap: 14px; }
    .wbj .wbj-av { width: 46px; height: 46px; border-width: 2px; }
    .wbj-level { font-size: 12px; padding: 8px 12px; }
    .wbj-heroimg { margin-top: 36px; aspect-ratio: 21 / 9; border-radius: 10px; }
    .wbj .wbj-strip, .wbj-mtoc { display: none; }
    .wbj-top3 { max-width: 760px; margin-top: 32px; }
    .wbj .wbj-t3 { grid-template-columns: 28px 64px minmax(0, 1fr) auto; gap: 16px; padding: 12px 16px; }
    .wbj-t3 b { font-size: 16px; line-height: 22px; }
    .wbj-t3-p { font-size: 14.5px; line-height: 20px; }
    .wbj-cols { padding-top: 56px; }
    .wbj-cols .wbj-wrap { grid-template-columns: minmax(0, 760px) 340px; gap: 85px; align-items: start; }
    /* Le header collant fait 182px : la colonne démarre dessous et tient toujours dans la hauteur de l'écran. */
    .wbj-side { display: grid; gap: 16px; position: sticky; top: calc(var(--wbj-head, 182px) + 16px); max-height: calc(100vh - var(--wbj-head, 182px) - 32px); grid-template-rows: minmax(0, auto) auto; }
    .wbj-toc { background: var(--wbj-cream); border-radius: 10px; padding: 20px; min-height: 0; overflow: auto; }
    .wbj .wbj-side-h { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wbj-ink); margin: 0 0 14px; }
    .wbj .wbj-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
    .wbj .wbj-toc li { margin: 0; }
    .wbj .wbj-toc li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 14.5px; line-height: 21px; color: var(--wbj-text); }
    .wbj-toc li a::before { counter-increment: t; content: counter(t); font-family: "DM Serif Text", serif; color: var(--wbj-violet); }
    .wbj .wbj-toc li a.is-on { background: #fff; color: var(--wbj-ink); font-weight: 500; box-shadow: 0 6px 30px rgba(16,27,34,.07); }
    .wbj-prog { height: 3px; border-radius: 2px; background: #ebe6da; margin: 16px 0 0; overflow: hidden; }
    .wbj-prog i { display: block; height: 100%; width: 0; background: var(--wbj-violet); }
    .wbj-gear { background: var(--wbj-ink); border-radius: 10px; padding: 24px; color: #fff; position: relative; }
    .wbj .wbj-gear .wbj-side-h { color: var(--wbj-sand); }
    .wbj .wbj-gear-t { font-family: "DM Serif Text", serif; font-size: 24px; line-height: 30px; letter-spacing: -.5px; color: #fff; margin: 0 0 16px; }
    .wbj .wbj-gp { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 8px; color: var(--wbj-text); }
    .wbj-gp-im { width: 64px; height: 64px; }
    .wbj-gp b { display: block; font-family: "DM Serif Text", serif; font-weight: 400; font-size: 15.5px; line-height: 20px; color: var(--wbj-ink); }
    .wbj .wbj-gear .wbj-btn { margin-top: 8px; font-size: 14px; padding: 15px 18px 14px; }
    .wbj-gear small { display: block; text-align: center; margin-top: 10px; font-size: 12.5px; line-height: 18px; color: rgba(255,255,255,.7); }
    .wbj-mid { margin: 48px 0; padding: 28px 32px; }
    .wbj-mid-k, .wbj .wbj-mid-t, .wbj .wbj-aff { padding-right: 0; margin-right: 0; }
    .wbj .wbj-mid-t { font-size: 28px; line-height: 34px; letter-spacing: -.7px; margin-bottom: 20px; }
    .wbj-mid-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: visible; padding: 0; }
    .wbj .wbj-mid-row .wbj-prod { flex: none; }
    .wbj .wbj-rayline { padding: 22px 24px; margin-top: 48px; }
    .wbj-rayline b { font-size: 24px; line-height: 30px; }
    .wbj-author { grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 28px; margin-top: 40px; box-shadow: var(--wbj-sh); }
    .wbj .wbj-author .wbj-av { width: 88px; height: 88px; }
    .wbj .wbj-author-n { font-size: 24px; line-height: 30px; }
    .wbj-next { padding-top: 96px; padding-bottom: 72px; }
    .wbj-next h2 { font-size: 40px; line-height: 48px; letter-spacing: -1.08px; margin: 8px 0 32px; }
    .wbj-nc h3 { font-size: 22px; line-height: 28px; letter-spacing: -.5px; margin: 8px 0 6px; }
    .wbj-nc .wbj-meta { display: block; }
    .wbj-art .wbj-newswrap { padding-bottom: 40px; }
    .wbj .wbj-also { margin: 48px 0; padding: 20px 24px; }
    .wbj .wbj-also a { font-size: 22px; line-height: 28px; }
    .wbj-ng { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 0 56px; align-items: start; }
    .wbj .wbj-nc:first-child { grid-row: 1 / span 2; padding: 0; }
    .wbj .wbj-nc:first-child .wbj-im { margin-bottom: 20px; }
    .wbj .wbj-nc:first-child h3 { font-size: 32px; line-height: 40px; letter-spacing: -.8px; margin: 10px 0 10px; }
    .wbj .wbj-nc:first-child .wbj-nc-x { font-size: 16px; line-height: 28px; }
    .wbj .wbj-nc:first-child .wbj-go { display: inline-flex; padding: 16px 22px 15px; font-size: 14px; }
    .wbj .wbj-nc:nth-child(2), .wbj .wbj-nc:nth-child(3) { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; padding: 0 0 24px; margin: 0 0 24px; border-top: 0; border-bottom: 1px solid var(--wbj-line); }
    .wbj .wbj-nc:nth-child(3) { border-bottom: 0; }
    .wbj .wbj-nc:nth-child(2) .wbj-im, .wbj .wbj-nc:nth-child(3) .wbj-im { aspect-ratio: 4 / 3; margin: 0; }
    .wbj .wbj-follow-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; background: var(--wbj-ink); border-radius: 10px; padding: 16px; color: #fff; }
    .wbj .wbj-follow-card .wbj-side-h { grid-column: 1 / -1; display: block; color: var(--wbj-sand); margin: 0 0 6px; }
    .wbj-follow-card .wbj-im { aspect-ratio: 1 / 1; margin: 0; grid-row: span 2; }
    .wbj-follow-card b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: "DM Serif Text", serif; font-weight: 400; font-size: 17px; line-height: 22px; letter-spacing: -.3px; color: #fff; }
    .wbj .wbj-follow-card .wbj-go { display: inline-flex; margin-top: 4px; color: var(--wbj-sand); font-size: 12.5px; }
    .wbj .wbj-gear { padding: 20px; }
    .wbj-stick { display: none !important; }
    body.wbj-article .back-to-top { bottom: 30px; }
}
