/* ============================================================
   Launchpad - Blog & articles
   Etend styles.css (memes tokens : --ink, --accent, --stage...)
   Structure inspiree des meilleures pratiques blog SaaS :
   header + recherche, article a la une, bannieres, rangees par
   categorie, liste "publies recemment" paginee, page article
   avec sommaire colle et progression de lecture.
   ============================================================ */

/* ---------- Shell des pages internes ---------- */
.page-sub { padding-top: 92px; }
.nav--solid .nav__inner {
  background: rgba(var(--paper-rgb),0.82);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 6px 28px rgba(var(--shadow-rgb),0.08);
  border-color: var(--line);
}
.nav__links a.is-active { color: var(--ink); font-weight: 550; }

.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.hr-soft { border: 0; border-top: 1px solid var(--line); margin: clamp(48px, 6vw, 76px) 0; }

/* ============================================================
   EN-TETE DU BLOG
   ============================================================ */
.bloghead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding: clamp(26px, 4vw, 48px) 0 clamp(22px, 3vw, 32px);
}
.bloghead__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5.6vw, 68px); line-height: 0.98; letter-spacing: -0.045em;
}
.bloghead__sub { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 46ch; letter-spacing: -0.012em; }
.bloghead__tools { display: flex; align-items: center; gap: 10px; }

.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input {
  font-family: inherit; font-size: 15px; letter-spacing: -0.01em; color: var(--ink);
  width: 252px; padding: 10px 14px 10px 37px;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--btn-radius);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-tint); }

/* Chips de categories */
.cats { display: none; gap: 9px; flex-wrap: wrap; padding-bottom: clamp(20px, 3vw, 30px); }
.cats.open { display: flex; }
.chip {
  font-family: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   ARTICLE A LA UNE
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .35s, transform .35s;
}
.feature:hover { box-shadow: 0 28px 60px rgba(var(--shadow-rgb),0.09); transform: translateY(-3px); }
.feature__body { padding: clamp(30px, 3.6vw, 52px); display: flex; flex-direction: column; }
.feature__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.1vw, 42px); line-height: 1.05; letter-spacing: -0.038em; margin-top: 16px;
}
.feature__text { color: var(--muted); font-size: 16.5px; margin-top: 16px; max-width: 46ch; letter-spacing: -0.012em; }
.feature__media { position: relative; background: var(--stage); min-height: 300px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow b { color: var(--ink); font-weight: 600; }
.eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Signature auteur */
.byline { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 30px; }
.avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: -0.02em;
}
.avatar--ink { background: var(--panel); color: var(--accent); }
.byline__name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.byline__role { font-size: 13.5px; color: var(--muted); letter-spacing: -0.01em; }

/* ============================================================
   BANNIERES PROMO
   ============================================================ */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px); min-height: 176px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.promo--dark { background: var(--panel); color: var(--on-panel); }
.promo--stage { background: var(--stage); border: 1px solid var(--line); }
.promo--stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(var(--ink-rgb),0.10) 1.2px, transparent 1.2px);
  background-size: 20px 20px; opacity: .7;
}
.promo > * { position: relative; z-index: 1; }
.promo__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.12; letter-spacing: -0.032em; }
.promo__text { font-size: 14.5px; margin-top: 9px; letter-spacing: -0.01em; }
.promo--dark .promo__text { color: rgba(255,255,255,0.62); }
.promo--stage .promo__text { color: var(--muted); }
.promo__form { display: flex; gap: 8px; flex-wrap: wrap; }
.promo__form input {
  flex: 1 1 190px; min-width: 0; font-family: inherit; font-size: 15px; color: var(--on-panel);
  padding: 10px 14px; border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.20);
}
.promo__form input::placeholder { color: rgba(255,255,255,0.45); }
.promo__form input:focus { outline: 0; border-color: var(--accent); }
.promo__note { font-size: 12.5px; color: rgba(255,255,255,0.42); margin-top: 10px; }
.promo__ok { font-size: 14px; font-weight: 550; color: var(--accent); }

/* ============================================================
   RANGEE PAR CATEGORIE + CARTE ARTICLE
   ============================================================ */
.catrow { margin-top: clamp(52px, 6vw, 84px); }
.catrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catrow__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -0.035em; }
.catrow__all { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .2s, gap .2s; }
.catrow__all:hover { color: var(--ink); gap: 10px; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; }
.pcard__media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background: var(--stage); border: 1px solid var(--line);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pcard__media img { transform: scale(1.035); }
.pcard__body { padding-top: 16px; }
.pcard__title {
  font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.2;
  letter-spacing: -0.028em; margin-top: 10px; transition: color .2s;
}
.pcard:hover .pcard__title { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pcard__text { color: var(--muted); font-size: 14.5px; margin-top: 9px; letter-spacing: -0.01em; }

/* Etat vide / resultats de recherche */
.results { display: none; }
.results.open { display: block; }
.results__count { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.curated.hidden { display: none; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ============================================================
   PUBLIES RECEMMENT (liste + pagination)
   ============================================================ */
.recent__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -0.035em; margin-bottom: 8px; }
.rrow {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center;
  padding: 18px 4px; border-top: 1px solid var(--line); transition: background .2s;
}
.rrow:last-child { border-bottom: 1px solid var(--line); }
.rrow:hover { background: rgba(var(--ink-rgb),0.025); }
.rrow__thumb { width: 92px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--stage); border: 1px solid var(--line); }
.rrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rrow > span { min-width: 0; }
.rrow__name { display: block; font-weight: 550; font-size: 16.5px; letter-spacing: -0.02em; }
.rrow:hover .rrow__name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rrow__text { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; letter-spacing: -0.01em; }
.rrow__date { color: var(--muted); font-size: 13.5px; white-space: nowrap; }

.pagi { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 34px; }

/* Respiration entre le contenu de l'index et le footer : sans elle la
   pagination vient coller le bloc sombre. Vaut aussi pour la grille de
   resultats de recherche, qui remplace le contenu edite. */
.blogindex { padding-bottom: clamp(76px, 9vw, 124px); }
.pagi button {
  min-width: 38px; height: 38px; padding: 0 11px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px;
  display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.pagi button:hover:not([disabled]):not([aria-current="true"]) { border-color: var(--ink); }
.pagi button[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagi button[disabled] { opacity: .35; cursor: default; }
.pagi svg { width: 15px; height: 15px; }

/* ============================================================
   PAGE ARTICLE
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; transition: width .1s linear; }

.crumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-top: clamp(18px, 3vw, 30px); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs .chev { opacity: .45; }

.arthead { display: grid; grid-template-columns: 1fr 0.86fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 36px) 0 clamp(36px, 5vw, 60px); }
.arthead__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.042em; margin: 14px 0 20px; }
.arthead__lead { color: var(--muted); font-size: 18px; letter-spacing: -0.014em; max-width: 46ch; }
.arthead__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--stage); }
.arthead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.artlayout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.artside { min-width: 0; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 30px; }

.share { display: flex; gap: 8px; }
.share a, .share button {
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line-2); color: var(--muted);
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.share a:hover, .share button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-2px); }
.share svg { width: 16px; height: 16px; }

.toc__title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc { display: flex; flex-direction: column; }
.toc a { font-size: 14.5px; line-height: 1.35; color: var(--muted); padding: 8px 0 8px 15px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; letter-spacing: -0.012em; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); font-weight: 550; border-left-color: var(--accent); }

.sidecard { background: var(--panel); color: var(--on-panel); border-radius: 20px; padding: 26px 24px; }
.sidecard__title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.16; letter-spacing: -0.03em; }
.sidecard__text { color: rgba(255,255,255,0.6); font-size: 14px; margin: 10px 0 18px; letter-spacing: -0.01em; }
.sidecard .btn { width: 100%; }

/* ---------- Corps de l'article ---------- */
.prose { max-width: 730px; min-width: 0; font-size: 18px; line-height: 1.68; }
.prose > p { margin: 0 0 22px; }
.prose .lead { font-size: 21px; line-height: 1.52; letter-spacing: -0.018em; margin-bottom: 30px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 2.8vw, 33px);
  line-height: 1.12; letter-spacing: -0.036em; margin: 54px 0 18px; scroll-margin-top: 112px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20.5px; letter-spacing: -0.028em; margin: 34px 0 12px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 21px; display: flex; flex-direction: column; gap: 11px; }
.prose li { padding-left: 3px; }
.prose li::marker { color: var(--muted); }
.prose ul.ticks { list-style: none; padding-left: 0; }
.prose ul.ticks li { position: relative; padding-left: 34px; }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 21px; height: 21px; border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.6' fill='none' stroke='%2316150F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--ink); }

.prose figure { margin: 34px 0; }
.prose figure img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 11px; letter-spacing: -0.01em; }

.tablewrap { overflow-x: auto; max-width: 100%; margin: 32px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 15px; letter-spacing: -0.01em; min-width: 540px; }
.tablewrap th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 15px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tablewrap th.is-hi { color: var(--ink); }
.tablewrap td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.tablewrap tbody tr:last-child td { border-bottom: 0; }
.tablewrap td:first-child, .tablewrap th:first-child { font-weight: 550; }
.tablewrap .col-hi { background: var(--accent-tint); }

.callout { background: var(--accent-tint); border: 1px solid rgba(var(--ink-rgb),0.09); border-radius: 20px; padding: 26px 28px; margin: 34px 0; font-size: 16.5px; line-height: 1.6; }
.callout__label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout--ink { background: var(--stage); border-color: var(--line); }

.pullquote {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.32; letter-spacing: -0.032em; border-left: 3px solid var(--accent);
  padding-left: 24px; margin: 38px 0;
}

.inlinecta {
  background: var(--panel); color: var(--on-panel); border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 40px); margin: 46px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.inlinecta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Selecteurs volontairement doubles. Ce bloc vit a l'interieur de .prose, ou
   `.prose p { color: var(--muted) }` (styles.css) l'emporte en specificite
   (0,1,1) sur une simple classe (0,1,0). Sans ce doublement, le titre et le
   texte prenaient le gris du corps de texte sur le fond noir du bloc, illisible
   en theme clair. La couleur du titre est posee explicitement plutot
   qu'heritee, pour la meme raison. */
.inlinecta .inlinecta__title { color: var(--on-panel); font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.14; letter-spacing: -0.034em; max-width: 22ch; }
.inlinecta .inlinecta__text { color: rgba(255,255,255,0.68); font-size: 14.5px; margin-top: 10px; max-width: 40ch; letter-spacing: -0.01em; line-height: 1.5; }

/* ---------- Bas d'article ---------- */
.authorbox { display: flex; gap: 16px; align-items: flex-start; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); max-width: 730px; }
.authorbox__text { color: var(--muted); font-size: 14.5px; margin-top: 5px; max-width: 56ch; letter-spacing: -0.01em; }

.artfaq { max-width: 730px; margin-top: 56px; }
.artfaq h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 2.8vw, 33px); letter-spacing: -0.036em; margin-bottom: 22px; }

.related { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.related__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -0.035em; margin-bottom: 26px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .artlayout { grid-template-columns: 226px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 240px; order: -1; }
  .promos { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .arthead { grid-template-columns: 1fr; }
  .arthead__media { order: -1; }
  .artlayout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .artside { position: static; }
  .toc { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .toc.open { max-height: 620px; }
  .toc__title { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
  .toc__title::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
  }
  .toc__title[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .toc.open { padding-top: 10px; }
  .prose { max-width: none; }
}
@media (max-width: 760px) {
  .page-sub { padding-top: 80px; }
  .bloghead { align-items: flex-start; }
  .bloghead__tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .rrow { grid-template-columns: 72px 1fr; gap: 16px; }
  .rrow__thumb { width: 72px; height: 52px; }
  .rrow__date { grid-column: 2; font-size: 13px; }
  .rrow__text { display: none; }
  .prose { font-size: 17px; }
  .prose .lead { font-size: 19px; }
  .inlinecta { flex-direction: column; align-items: flex-start; }
}
