/* ============================================================
   Spotlite — Blog RH (spotlite-app.com/blog)
   Réutilise les tokens de style.css (:root). Épuré, mobile-first.
   ============================================================ */

.blog-body { background: var(--bg); color: var(--ink); }

/* ---------- En-tête blog ---------- */
.bl-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bl-header .bl-wrap { display: flex; align-items: center; gap: 1rem; height: 60px; }
.bl-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 680; letter-spacing: -.03em; font-size: 1.06rem; }
.bl-brand img { border-radius: 6px; }
.bl-brand span { color: var(--muted); font-weight: 560; }
.bl-nav { display: flex; gap: 1.1rem; margin-left: .5rem; flex: 1; }
.bl-nav a { color: var(--ink-soft); font-weight: 540; font-size: .95rem; }
.bl-nav a:hover { color: var(--ink); }
.bl-write {
  display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 580; font-size: .9rem;
}
.bl-write:hover { opacity: .88; }
.bl-login {
  display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
  font-weight: 560; font-size: .9rem; cursor: pointer; margin-right: .5rem;
}
.bl-login:hover { border-color: var(--ink); }
.bl-actions { display: inline-flex; align-items: center; }
.bl-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: .5rem; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.bl-search-btn:hover { color: var(--ink); border-color: var(--ink); }

.bl-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.bl-main { padding: 2.4rem 0 4rem; }
.bl-lede { margin-bottom: 1.6rem; }
.bl-lede h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; }
.bl-lede p { color: var(--ink-soft); font-size: 1.08rem; margin-top: .6rem; max-width: 64ch; }
.bl-empty { color: var(--muted); }

/* ---------- Héro justifié (images à leur ratio réel, collées densément) ---------- */
.bl-hero {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.6rem;
  --row-h: 260px;
}
.bl-hero .bcard {
  position: relative; height: var(--row-h);
  flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * var(--row-h));
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.bl-hero .bcard-img, .bl-hero .bcard-img img { width: 100%; height: 100%; display: block; }
.bl-hero .bcard-img img { object-fit: cover; }
.bl-hero .bcard-body {
  position: absolute; inset: auto 0 0 0; padding: 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  color: #fff; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15) 62%, transparent);
}
.bl-hero .bcard-cat { font-size: .72rem; font-weight: 680; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.bl-hero .bcard-title { font-size: 1.05rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.2; }
.bl-hero .bcard:hover .bcard-img img { transform: scale(1.04); transition: transform .5s var(--ease); }
.bl-hero .bcard .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--line), var(--bg-soft)); }

/* ---------- La « une » : 1 grande carte + 4 plus petites (texte sous l'image) ---------- */
.bl-feat { margin-bottom: 1.6rem; }
.bl-feat-lead { margin-bottom: 1.2rem; }
.bl-feat .bcard { display: flex; flex-direction: column; }
.bl-feat .bcard-img { display: block; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.bl-feat .bcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-feat .bcard-img .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--line), var(--bg-soft)); }
.bl-feat .bcard:hover .bcard-img img { transform: scale(1.03); transition: transform .5s var(--ease); }
.bl-feat-lead .bcard { gap: .8rem; }
.bl-feat-lead .bcard-img { aspect-ratio: 16 / 8; border-radius: var(--radius-lg, 18px); }
.bl-feat-lead .bcard-cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bl-feat-lead .bcard-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 660; letter-spacing: -.03em; line-height: 1.14; }
.bl-feat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bl-feat-row .bcard { gap: .55rem; }
.bl-feat-row .bcard-img { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.bl-feat-row .bcard-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bl-feat-row .bcard-title { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.bl-feat .bcard:hover .bcard-title { color: var(--ink-soft); }

/* ---------- Grilles de section (image coins arrondis + texte dessous) ---------- */
.bl-cat { margin-top: 1.7rem; }
.bl-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.bl-cat-head h2 { font-size: 1.5rem; letter-spacing: -.03em; margin: 0; }
.bl-more { flex: 0 0 auto; font-size: .92rem; font-weight: 560; color: var(--ink); white-space: nowrap; }
.bl-more:hover { color: var(--ink-soft); text-decoration: underline; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.3rem; align-items: start; }
.bl-grid .bcard { display: flex; flex-direction: column; gap: .7rem; }
.bl-grid .bcard-img {
  display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.bl-grid .bcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-grid .bcard-img .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--line), var(--bg-soft)); }
.bl-grid .bcard-body { display: flex; flex-direction: column; gap: .3rem; }
.bl-grid .bcard-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bl-grid .bcard-title { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.bl-grid .bcard:hover .bcard-title { color: var(--ink-soft); }

/* ---------- Barre de progression de lecture ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.read-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #3466f6, #6b4dff);
  transition: width .1s linear;
}

/* ---------- Article ---------- */
.article-flow { padding-top: 1.6rem; }
.post { max-width: 720px; margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post-crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.post-crumbs a { color: var(--ink-soft); }
.post-cat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b4dff; margin-bottom: .6rem; }
.post-title { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.04em; line-height: 1.08; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .92rem; margin: 1rem 0 1.4rem; }
.post-meta .post-author { color: var(--ink); font-weight: 560; }
.post-meta a.post-author:hover { text-decoration: underline; }
.post-meta .dot { opacity: .5; }
.post-cover { margin: 0 0 1.8rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.post-cover img { width: 100%; height: auto; display: block; }
.post-cover .cover-credit { font-size: .78rem; color: var(--muted); padding: .4rem .2rem 0; }
.post-cover .cover-credit a { color: var(--ink-soft); text-decoration: underline; }

/* Corps rédactionnel — pensé pour le scan visuel (Règle n°2) */
.post-content { font-size: 1.12rem; line-height: 1.72; color: var(--ink); }
.post-content > * + * { margin-top: 1.15rem; }
.post-content h2 { font-size: 1.55rem; letter-spacing: -.03em; margin-top: 2.2rem; line-height: 1.2; }
.post-content h3 { font-size: 1.24rem; letter-spacing: -.02em; margin-top: 1.8rem; }
.post-content h4 { font-size: 1.06rem; margin-top: 1.4rem; }
.post-content p { color: var(--ink-soft); }
.post-content strong { color: var(--ink); font-weight: 680; }
.post-content a { color: #3466f6; text-decoration: underline; text-underline-offset: 2px; }
.post-content ul, .post-content ol { padding-left: 1.3rem; color: var(--ink-soft); }
.post-content li + li { margin-top: .4rem; }
.post-content blockquote {
  margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid #6b4dff;
  font-size: 1.2rem; color: var(--ink); font-weight: 500;
}
.post-content pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow: auto; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.post-content :not(pre) > code { background: var(--bg-soft); padding: .12em .38em; border-radius: 6px; }
.post-content figure.post-img { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; }
.post-content .table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.post-content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.post-content th, .post-content td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.post-content thead th { background: var(--bg-soft); font-weight: 640; color: var(--ink); white-space: nowrap; }
.post-content tbody tr:last-child td { border-bottom: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.post-tags .lbl { color: var(--muted); font-size: .82rem; margin-right: .2rem; }
.post-tags .tag { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); }

.post-sources { margin-top: 2.4rem; padding: 1.3rem 1.5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.post-sources h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }
.post-sources .src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.post-sources .src-list li { scroll-margin-top: 90px; }
.post-sources .src-list li a { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-sm, 10px); border: 1px solid var(--line); background: var(--panel, #fff); text-decoration: none; transition: border-color .15s, background .15s; }
.post-sources .src-list li a:hover { border-color: #3466f6; background: #f4f7ff; }
.post-sources .src-num { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #3466f6; color: #fff; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: .05rem; }
.post-sources .src-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.post-sources .src-title { font-size: .92rem; color: var(--ink); font-weight: 560; line-height: 1.35; }
.post-sources .src-host { font-size: .78rem; color: #3466f6; }
/* ---------- Infographies IA (SVG/HTML, animées, interactives) ---------- */
.post-content .ig { --ig-accent: #3466f6; margin: 2rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel, #fff); }
.post-content .ig .ig-title { font-size: 1.02rem; font-weight: 680; color: var(--ink); margin: 0 0 1rem; letter-spacing: -.01em; }
.post-content .ig .ig-cap { margin-top: .9rem; font-size: .8rem; color: var(--muted); }
/* Barres */
.ig-bars .ig-bar { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; align-items: center; gap: .8rem; margin: .55rem 0; }
.ig-bars .ig-bar-l { font-size: .9rem; color: var(--ink-soft); font-weight: 560; }
.ig-bars .ig-bar-track { background: var(--bg-soft); border-radius: 999px; height: 1.7rem; overflow: hidden; }
.ig-bars .ig-bar-fill { display: flex; align-items: center; justify-content: flex-end; height: 100%; width: var(--w); min-width: 2.6rem; padding-right: .6rem; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--ig-accent) 62%, #fff), var(--ig-accent)); animation: ig-grow .9s cubic-bezier(.22,1,.36,1) both; transition: filter .15s; }
.ig-bars .ig-bar-fill:hover { filter: brightness(1.06); }
.ig-bars .ig-bar-v { font-size: .82rem; font-weight: 700; color: #fff; white-space: nowrap; }
@keyframes ig-grow { from { width: 0; } to { width: var(--w); } }
/* Chiffres-chocs */
.ig-stats .ig-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.ig-stats .ig-stat { padding: 1rem 1.1rem; border-radius: var(--radius-sm, 12px); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.ig-stats .ig-stat:hover { transform: translateY(-2px); border-color: var(--ig-accent); }
.ig-stats .ig-stat-v { font-size: 1.7rem; font-weight: 760; letter-spacing: -.03em; color: var(--ig-accent); line-height: 1.1; }
.ig-stats .ig-stat-l { margin-top: .35rem; font-size: .86rem; color: var(--ink-soft); }
/* Chronologie */
.ig-timeline .ig-tl { list-style: none; margin: 0; padding: 0 0 0 .3rem; }
.ig-timeline .ig-tl-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; padding: 0 0 1.1rem 1.4rem; border-left: 2px solid var(--line); }
.ig-timeline .ig-tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.ig-timeline .ig-tl-dot { position: absolute; left: -7px; top: .2rem; width: 12px; height: 12px; border-radius: 999px; background: var(--ig-accent); box-shadow: 0 0 0 3px var(--panel, #fff); }
.ig-timeline .ig-tl-step { grid-column: 2; font-weight: 680; color: var(--ink); font-size: .95rem; }
.ig-timeline .ig-tl-text { grid-column: 2; color: var(--ink-soft); font-size: .9rem; }

/* Appels de citation numérotés dans le corps de l'article. */
.post-content sup.cite { line-height: 0; }
.post-content sup.cite a { display: inline-flex; align-items: center; justify-content: center; min-width: 1.05rem; height: 1.05rem; padding: 0 .28em; margin-left: 1px; border-radius: 5px; background: #eaf0ff; color: #3466f6; font-size: .68rem; font-weight: 700; text-decoration: none; vertical-align: super; }
.post-content sup.cite a:hover { background: #3466f6; color: #fff; }

/* ---------- Page auteur ---------- */
.bl-author { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.bl-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); }
.bl-avatar.ph { display: inline-block; }
.bl-author h1 { font-size: 1.8rem; letter-spacing: -.03em; }
.bl-author p { color: var(--ink-soft); margin-top: .3rem; max-width: 60ch; }

/* ---------- Pied ---------- */
.bl-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.bl-footer .bl-wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
.bl-footer a { color: var(--ink-soft); }
.bl-404 { text-align: center; padding: 5rem 0; }
.bl-404 h1 { font-size: 4rem; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-hero { --row-h: 200px; }
  .bl-feat-row { gap: .8rem; }
}
@media (max-width: 620px) {
  .bl-wrap { padding-inline: 18px; }
  .bl-nav { display: none; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-hero { --row-h: 200px; gap: 8px; }
  .bl-hero .bcard { flex-basis: calc(var(--ar, 1.5) * var(--row-h)); min-width: 60%; }
  .post-content { font-size: 1.06rem; }
  .post { padding-top: 1.4rem; }
  /* La « une » : grande carte pleine largeur + 4 cartes en 2×2. */
  .bl-feat-lead .bcard-img { aspect-ratio: 16 / 10; }
  .bl-feat-row { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .bl-feat-row .bcard-title { font-size: .94rem; }
}

/* ============================================================
   Chrome mobile : menu (burger animé), barre d'onglets, recherche
   Masqués sur desktop — la disposition desktop reste inchangée.
   ============================================================ */
.bl-actions-m { display: none; align-items: center; gap: .35rem; margin-left: auto; }
.bl-drawer, .bl-tabbar { display: none; }

/* « + » Écrire (mobile) */
.bl-plus { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); }
.bl-plus:hover { opacity: .9; }

/* Burger : 2 barres → croix */
.bl-burger { position: relative; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--bg-soft); cursor: pointer; padding: 0; }
.bl-burger span { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .2s; }
.bl-burger span:nth-child(1) { top: 19px; transform: translateY(-4px); }
.bl-burger span:nth-child(2) { top: 19px; transform: translateY(4px); }
.bl-burger.open span:nth-child(1) { transform: rotate(45deg); }
.bl-burger.open span:nth-child(2) { transform: rotate(-45deg); }

/* Tiroir plein écran (catégories + obtenir l'app) */
.bl-drawer {
  position: fixed; inset: 0; z-index: 45; flex-direction: column;
  padding: 84px 24px 32px;
  background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: saturate(1.3) blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.bl-drawer.open { opacity: 1; visibility: visible; transform: none; }
.bl-drawer-nav { display: flex; flex-direction: column; }
.bl-drawer-nav a {
  padding: 1rem 0; font-size: 1.5rem; font-weight: 620; letter-spacing: -.03em;
  color: var(--ink); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: opacity .32s ease, transform .32s ease;
}
.bl-drawer.open .bl-drawer-nav a { opacity: 1; transform: none; }
.bl-drawer.open .bl-drawer-nav a:nth-child(1) { transition-delay: .06s; }
.bl-drawer.open .bl-drawer-nav a:nth-child(2) { transition-delay: .12s; }
.bl-drawer.open .bl-drawer-nav a:nth-child(3) { transition-delay: .18s; }
.bl-drawer.open .bl-drawer-nav a:nth-child(4) { transition-delay: .24s; }
.bl-drawer-app {
  align-self: flex-start; margin-top: 1.6rem;
  opacity: 0; transform: translateY(8px); transition: opacity .32s ease .3s, transform .32s ease .3s;
}
.bl-drawer.open .bl-drawer-app { opacity: 1; transform: none; }

/* Barre d'onglets flottante (accueil / recherche / connexion) */
.bl-tabbar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 55;
  gap: .3rem; padding: .4rem; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 10px 32px rgba(0,0,0,.16);
  transition: opacity .3s ease, transform .3s ease;
}
.bl-tabbar.hide { opacity: 0; transform: translateX(-50%) translateY(28px); pointer-events: none; }
.bl-tab { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 44px;
  border: 0; background: transparent; color: var(--ink-soft); border-radius: 999px; cursor: pointer; }
.bl-tab:hover, .bl-tab.active { color: var(--ink); background: var(--bg-soft); }

/* Overlay de recherche (plein écran — disponible aussi sur desktop) */
.bl-search { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.bl-search.open { display: flex; opacity: 1; visibility: visible; }
/* Sur desktop : panneau centré plutôt que plein écran. */
@media (min-width: 621px) {
  .bl-search.open { align-items: center; }
  .bl-search .bl-search-top { width: 100%; max-width: 680px; margin: 8vh auto 0; border: 1px solid var(--line); border-radius: 16px; }
  .bl-search .bl-search-results { width: 100%; max-width: 680px; margin: 0 auto; }
}
.bl-search-top { display: flex; align-items: center; gap: .5rem; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bl-search-ic { flex: 0 0 auto; color: var(--muted); margin-left: .3rem; }
.bl-search-input { flex: 1; min-width: 0; font-size: 1.1rem; padding: .7rem .2rem; border: 0; background: transparent; color: var(--ink); font-family: inherit; }
.bl-search-input:focus { outline: 0; }
.bl-search-cancel { flex: 0 0 auto; border: 0; background: none; color: #3466f6; font-size: .95rem; font-weight: 560; cursor: pointer; padding: .4rem .3rem; }
.bl-search-results { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 8px 90px; }
.bl-search-item { display: flex; flex-direction: column; gap: .12rem; padding: .8rem 1rem; border-radius: 14px; }
.bl-search-item:hover, .bl-search-item:focus { background: var(--bg-soft); }
.bl-search-item .cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bl-search-item .ttl { font-size: 1.02rem; font-weight: 560; color: var(--ink); line-height: 1.3; }
.bl-search-empty { padding: 2.4rem 1rem; text-align: center; color: var(--muted); }

@media (max-width: 620px) {
  .bl-actions { display: none; }
  .bl-actions-m { display: flex; }
  .bl-drawer { display: flex; }
  .bl-tabbar { display: inline-flex; }
  .bl-footer { padding-bottom: 92px; }
  /* « Écrire » repasse dans le « + » du header (plus de FAB ni de bouton texte). */
  .bl-fab { display: none !important; }
  /* Sur mobile, la recherche vit dans la barre d'onglets → bouton header masqué. */
  .bl-search-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .read-progress > span { transition: none; }
  .bl-hero .bcard:hover .bcard-img img { transform: none; }
}

/* ============================================================
   Maillage interne + Outils (calculateurs, sheet, dialog de connexion)
   Épuré, tokens de style.css, un seul accent (#3466f6 / #6b4dff).
   ============================================================ */

.bt-noscroll { overflow: hidden; }

/* Liens internes automatiques (léger contraste avec les liens externes). */
.post-content a.ilink { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, #3466f6 45%, transparent); }
.post-content a.ilink:hover { text-decoration-color: #3466f6; }

/* ---------- Boutons du header (Écrire + app + connexion) ---------- */
/* Base .bl-write (pastille foncée) déjà définie plus haut ; ghost = contour. */
.bl-actions { display: flex; align-items: center; gap: .5rem; }
.bl-write.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.bl-write.ghost:hover { border-color: var(--ink-soft); opacity: 1; }

/* FAB « Écrire » — affiché sur mobile uniquement (voir media query). */
.bl-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--btn); color: var(--btn-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.bl-fab:hover { opacity: .92; }

/* Pastilles de type (gratuit / IA) — translucides pour clair ET sombre. */
.bt-badge { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .22rem .5rem; border-radius: 999px; white-space: nowrap; }
.bt-badge-calc { background: color-mix(in srgb, #16a34a 16%, transparent); color: color-mix(in srgb, #16a34a 62%, var(--ink)); }
.bt-badge-ai { background: color-mix(in srgb, #6b4dff 18%, transparent); color: color-mix(in srgb, #6b4dff 60%, var(--ink)); }

/* ---------- Le widget d'outil (mount) : article ET page/sheet ---------- */
.blog-tool { margin: 1.8rem 0; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel, #fff); }
.post-content .blog-tool { color: var(--ink); }
.blog-tool .bt-head { display: flex; align-items: flex-start; gap: .8rem; }
.blog-tool .bt-emoji { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.blog-tool .bt-head-txt { flex: 1; min-width: 0; }
.blog-tool .bt-cat { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.blog-tool .bt-title { margin: .1rem 0 0 !important; font-size: 1.12rem !important; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.blog-tool .bt-desc { margin: .55rem 0 0 !important; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.blog-tool .bt-body { margin-top: 1.1rem; }
/* Page/sheet : mount sans en-tête (noHead) → le corps est le 1er enfant, flush. */
.blog-tool > .bt-body:first-child { margin-top: 0; }

/* Formulaire */
.blog-tool .bt-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; }
.blog-tool .bt-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.blog-tool .bt-field-full { grid-column: 1 / -1; }
.blog-tool .bt-field-l { font-size: .82rem; font-weight: 560; color: var(--ink-soft); }
.blog-tool .bt-inwrap { position: relative; display: flex; align-items: center; }
.blog-tool input[type="number"], .blog-tool input[type="text"], .blog-tool select, .blog-tool textarea {
  width: 100%; padding: .6rem .7rem; font-size: 1rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm, 10px);
  font-family: inherit; -webkit-appearance: none; appearance: none;
}
.blog-tool textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.blog-tool input:focus, .blog-tool select:focus, .blog-tool textarea:focus { outline: 2px solid color-mix(in srgb, #3466f6 40%, transparent); border-color: #3466f6; }
.blog-tool .bt-inwrap input { padding-right: 3rem; }
.blog-tool .bt-unit { position: absolute; right: .7rem; font-size: .82rem; color: var(--muted); pointer-events: none; }

/* Résultats */
.blog-tool .bt-result { margin-top: 1.1rem; border-top: 1px dashed var(--line); padding-top: .9rem; display: grid; gap: .3rem; }
.blog-tool .bt-out-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.blog-tool .bt-out-l { color: var(--ink-soft); font-size: .92rem; }
.blog-tool .bt-out-v { font-weight: 640; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.blog-tool .bt-out-row.head { padding: .55rem .8rem; margin-bottom: .2rem; background: color-mix(in srgb, #3466f6 8%, transparent); border-radius: var(--radius-sm, 10px); }
.blog-tool .bt-out-row.head .bt-out-l { font-weight: 600; color: var(--ink); }
.blog-tool .bt-out-row.head .bt-out-v { font-size: 1.5rem; letter-spacing: -.02em; color: #3466f6; }
.blog-tool .bt-note { margin: .8rem 0 0 !important; font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Checklist */
.blog-tool .bt-checklist { display: grid; gap: .5rem; }
.blog-tool .bt-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.blog-tool .bt-check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: #3466f6; }
.blog-tool .bt-bar { height: .5rem; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-top: .5rem; }
.blog-tool .bt-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3466f6, #6b4dff); transition: width .3s var(--ease, ease); }

/* Porte d'accès des outils IA (aucune IA côté blog public) */
.blog-tool .bt-gate { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.blog-tool .bt-gain { margin: 0 !important; font-size: .95rem; color: var(--ink-soft); }

/* Bouton d'action partagé (gate IA + dialog) */
.bt-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 999px; font-weight: 560; font-size: .9rem; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); cursor: pointer; transition: border-color .15s, opacity .15s; }
.bt-cta-btn:hover { border-color: var(--ink-soft); }
.bt-cta-btn.primary { background: linear-gradient(90deg, #3466f6, #6b4dff); color: #fff; border-color: transparent; }
.bt-cta-btn.primary:hover { opacity: .92; }
.bt-cta-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; background: var(--bg-soft); color: var(--muted); border-color: var(--line); }

/* Outil IA exécutable in-blog : bouton, indice, résultat rendu (Markdown). */
.blog-tool .bt-run-actions { margin-top: 1rem; }
.blog-tool .bt-run-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem; color: #fff;
  background: linear-gradient(90deg, #3466f6, #6b4dff); transition: opacity .15s, transform .15s;
}
.blog-tool .bt-run-btn:hover { opacity: .93; transform: translateY(-1px); }
.blog-tool .bt-run-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.blog-tool .bt-run-hint { margin: .6rem 0 0 !important; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.blog-tool .bt-run-result { margin-top: 1.2rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.blog-tool .bt-run-result[hidden] { display: none; }
.blog-tool .bt-ai-out { font-size: .98rem; line-height: 1.6; color: var(--ink); }
.blog-tool .bt-ai-out h2, .blog-tool .bt-ai-out h3 { font-size: 1.08rem; letter-spacing: -.02em; margin: 1.1rem 0 .5rem; }
.blog-tool .bt-ai-out h2:first-child, .blog-tool .bt-ai-out h3:first-child { margin-top: 0; }
.blog-tool .bt-ai-out p { margin: .5rem 0; }
.blog-tool .bt-ai-out ul, .blog-tool .bt-ai-out ol { margin: .5rem 0; padding-left: 1.3rem; }
.blog-tool .bt-ai-out li { margin: .25rem 0; }
.blog-tool .bt-ai-out em { color: var(--ink-soft); }
.blog-tool .bt-ai-out table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.blog-tool .bt-ai-out th, .blog-tool .bt-ai-out td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.blog-tool .bt-ai-out th { background: var(--bg-soft); font-weight: 640; }
.blog-tool .bt-run-balance { margin: 1rem 0 0 !important; font-size: .82rem; font-weight: 560; color: var(--muted); }
.blog-tool .bt-run-err { margin: 0 !important; font-size: .92rem; color: #c0362c; line-height: 1.5; }

/* ---------- Widget compact de fin d'article (contexte + signup + offres) ---------- */
.blog-end { margin: 2.4rem 0 .5rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg, 18px);
  background: linear-gradient(135deg, color-mix(in srgb, #3466f6 8%, var(--panel, #fff)), color-mix(in srgb, #6b4dff 7%, var(--panel, #fff))); }
.blog-end-jobs { margin-bottom: 1.1rem; }
.blog-end-jobs-t { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.blog-end-joblist { display: grid; gap: .5rem; }
.blog-job { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, #fff); text-decoration: none; transition: border-color .15s, transform .15s; }
.blog-job:hover { border-color: #3466f6; transform: translateX(2px); }
.blog-job-t { flex: 1; min-width: 0; font-weight: 580; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.blog-job-c { flex: 0 0 auto; color: var(--ink-soft); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.blog-job-go { flex: 0 0 auto; color: #3466f6; font-weight: 700; }
.blog-end-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.blog-end-txt { margin: 0 !important; color: var(--ink); font-size: 1rem; line-height: 1.5; max-width: 46ch; font-weight: 500; }
.blog-end-cta .bt-cta-btn { flex: 0 0 auto; }

/* ---------- Index /tools : sections + grille d'aperçus ---------- */
.bt-lede { margin-bottom: 1.4rem; }
.bt-group { margin-top: 2.6rem; }
.bt-group:first-of-type { margin-top: 1.6rem; }
.bt-group-title { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.bt-group-ic { font-size: 1.2rem; }
.bt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: start; }
.bt-card { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel, #fff); transition: border-color .15s, transform .15s, box-shadow .15s; }
.bt-card:hover { border-color: color-mix(in srgb, #3466f6 50%, var(--line)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, .07); }
.bt-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 13px; background: var(--bg-soft); font-size: 1.55rem; }
.bt-card-title { flex: 1; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.bt-card-badge { align-self: flex-start; }

/* ---------- Page outil (+ contenu du sheet) ---------- */
.bt-page { max-width: 720px; }
.bt-page-crumbs { margin-bottom: 1rem; }
.bt-page-head { display: flex; align-items: flex-start; gap: .9rem; }
.bt-page-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 15px; background: var(--bg-soft); font-size: 1.8rem; }
.bt-page-head-txt { flex: 1; min-width: 0; }
.bt-page-head .bt-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bt-page-title { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.03em; line-height: 1.12; margin: .15rem 0 0; }
.bt-page-desc { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; margin: .5rem 0 1.4rem; }
.bt-related { margin-top: 2.4rem; }
.bt-related h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }

/* ---------- Sheet : bottom-sheet mobile → modale centrée desktop ---------- */
.bt-sheet-wrap { position: fixed; inset: 0; z-index: 200; display: none; }
.bt-sheet-wrap.open { display: block; }
.bt-sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .26s ease; }
.bt-sheet-wrap.open .bt-sheet-backdrop { opacity: 1; }
.bt-sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 660px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 44px rgba(0, 0, 0, .28);
  transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.bt-sheet-wrap.open .bt-sheet { transform: translate(-50%, 0); }
.bt-sheet-bar { position: relative; display: flex; align-items: center; justify-content: center; padding: .7rem 0 .3rem; flex: 0 0 auto; }
.bt-sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: var(--line); }
.bt-sheet-x { position: absolute; right: .8rem; top: .45rem; width: 2.1rem; height: 2.1rem; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.bt-sheet-x:hover { background: var(--line); }
.bt-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .6rem 1.5rem 2.2rem; }
.bt-sheet-loading { padding: 3.5rem 0; text-align: center; color: var(--muted); }

/* ---------- Dialog de connexion ---------- */
.bt-modal { position: fixed; inset: 0; z-index: 210; display: none; }
.bt-modal.open { display: block; }
.bt-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.bt-modal.open .bt-modal-backdrop { opacity: 1; }
.bt-modal-card { position: absolute; left: 50%; top: 50%; width: calc(100% - 2rem); max-width: 500px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
  transform: translate(-50%, -46%); opacity: 0; transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .22s; }
.bt-modal.open .bt-modal-card { transform: translate(-50%, -50%); opacity: 1; }
.bt-modal-x { position: absolute; right: .9rem; top: .9rem; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bt-modal-x:hover { background: var(--line); }
.bt-modal-title { font-size: 1.32rem; letter-spacing: -.02em; margin: 0 2rem .25rem 0; }
.bt-modal-sub { color: var(--muted); font-size: .95rem; margin: 0 0 1.3rem; }
.bt-auth-opts { display: grid; gap: .7rem; }
.bt-auth-opt { display: flex; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel, #fff); transition: border-color .15s; }
.bt-auth-opt:hover { border-color: color-mix(in srgb, #3466f6 42%, var(--line)); }
.bt-auth-ic { flex: 0 0 auto; font-size: 1.5rem; }
.bt-auth-txt { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.bt-auth-txt b { font-size: 1rem; color: var(--ink); }
.bt-auth-txt > span { font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }
.bt-auth-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.bt-auth-btns .bt-cta-btn { padding: .45rem .85rem; font-size: .85rem; }

@media (min-width: 700px) {
  .bt-sheet { top: 50%; bottom: auto; border-radius: 22px; max-height: 88vh;
    transform: translate(-50%, -46%); opacity: 0; transition: transform .26s ease, opacity .26s ease; }
  .bt-sheet-wrap.open .bt-sheet { transform: translate(-50%, -50%); opacity: 1; }
  .bt-sheet-handle { display: none; }
}
@media (max-width: 900px) {
  .bt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bt-grid { grid-template-columns: 1fr 1fr; }
  .blog-tool .bt-form { grid-template-columns: 1fr; }
  .bl-actions { margin-left: auto; gap: .4rem; }
  .bl-write { padding: .42rem .8rem; font-size: .85rem; }
  .bl-edit-btn { display: none; } /* « Écrire » passe en FAB */
  .bl-fab { display: inline-flex; }
  .bt-card { padding: .95rem; }
  .bt-card-ic { width: 2.3rem; height: 2.3rem; font-size: 1.35rem; }
}


/* ── Quiz (fin d'article + quiz global /quizz) ──────────────────────────────── */
.blog-quiz { max-width: 720px; margin: 2.6rem auto 0; padding: 1.5rem 1.6rem 1.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg, 18px);
  background: linear-gradient(180deg, color-mix(in srgb, #3466f6 5%, var(--panel, #fff)), var(--panel, #fff)); scroll-margin-top: 90px; }
.bq-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.bq-ic { font-size: 1.5rem; line-height: 1; }
.bq-title { font-size: 1.18rem; font-weight: 680; letter-spacing: -.01em; }
.bq-sub { color: var(--muted); font-size: .9rem; margin-top: .12rem; }
.bq-card { padding: 1rem 0; border-top: 1px solid var(--line); }
.bq-card:first-child { border-top: 0; padding-top: .2rem; }
.bq-q-txt { font-weight: 600; margin-bottom: .8rem; color: var(--ink); }
.bq-opts { display: grid; gap: .5rem; }
.bq-opt { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm, 12px);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .94rem; cursor: pointer;
  transition: border-color .15s, background .15s, transform .06s; }
.bq-opt:hover:not(:disabled) { border-color: var(--ink-soft); }
.bq-opt:active:not(:disabled) { transform: scale(.99); }
.bq-opt:disabled { cursor: default; }
.bq-opt-mark { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; border: 2px solid var(--line); border-radius: 999px; transition: border-color .15s, background .15s; }
.bq-opt.is-correct { border-color: #17915a; background: color-mix(in srgb, #17915a 12%, var(--bg)); }
.bq-opt.is-correct .bq-opt-mark { border-color: #17915a; background: #17915a; box-shadow: inset 0 0 0 3px var(--bg); }
.bq-opt.is-wrong { border-color: #d64550; background: color-mix(in srgb, #d64550 10%, var(--bg)); }
.bq-opt.is-wrong .bq-opt-mark { border-color: #d64550; background: #d64550; box-shadow: inset 0 0 0 3px var(--bg); }
.bq-feedback { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-top: .7rem;
  font-size: .88rem; color: var(--ink-soft); animation: bqfade .25s ease; }
@keyframes bqfade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.bq-fb-tag { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .12rem .5rem; border-radius: 999px; }
.bq-fb-tag.ok { color: #0f7a48; background: color-mix(in srgb, #17915a 16%, transparent); }
.bq-fb-tag.ko { color: #b7343f; background: color-mix(in srgb, #d64550 14%, transparent); }
.bq-fb-exp { flex: 1 1 12rem; }
.bq-src-link { flex-basis: 100%; font-size: .82rem; color: #3466f6; text-decoration: none; }
.bq-src-link:hover { text-decoration: underline; }
/* Résultat + CTA */
.bq-result { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.bq-score { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; }
.bq-score-n { font-size: 2rem; font-weight: 760; letter-spacing: -.02em;
  background: linear-gradient(90deg, #3466f6, #6b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bq-score-msg { color: var(--ink-soft); }
.bq-cta { margin-top: 1.1rem; text-align: center; }
.bq-cta p { color: var(--ink-soft); font-size: .95rem; max-width: 46ch; margin: 0 auto .8rem; }
.bq-cta-row { display: inline-flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.bq-retry { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 560; cursor: pointer; }
.bq-retry:hover { border-color: var(--ink-soft); }
/* Repli sans JS (contenu crawlable) */
.bq-opts-fallback { list-style: none; padding: 0; display: grid; gap: .35rem; margin: 0 0 .6rem; }
.bq-opts-fallback .bq-opt-li { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); color: var(--ink-soft); font-size: .92rem; }
.blog-quiz[data-bq-live] .bq-exp, .blog-quiz[data-bq-live] .bq-opts-fallback { display: none; }
.bq-exp summary { cursor: pointer; color: #3466f6; font-size: .88rem; }
.bq-exp > p { margin-top: .5rem; color: var(--ink-soft); font-size: .9rem; }
.bq-exp .bq-src { margin-top: .3rem; font-size: .82rem; }
.bq-loading { display: flex; gap: .4rem; justify-content: center; padding: 1rem 0; }
.bq-loading span { width: .5rem; height: .5rem; border-radius: 999px; background: var(--line); animation: bqpulse 1s ease-in-out infinite; }
.bq-loading span:nth-child(2) { animation-delay: .15s; }
.bq-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bqpulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
/* Page catégorie Quizz : liste d'articles */
.bq-main .blog-quiz { margin-top: 1.4rem; }
.bq-articles { max-width: 720px; margin: 2rem auto 0; }
.bq-articles h2 { font-size: 1.05rem; font-weight: 640; margin-bottom: .8rem; }
.bq-article-list { list-style: none; padding: 0; display: grid; gap: .3rem; }
.bq-article-list a { display: block; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm, 12px); color: var(--ink-soft); text-decoration: none; transition: border-color .15s, color .15s; }
.bq-article-list a:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ============================================================
   Partage + PACK SOCIAL
   ============================================================ */
.blog-share { max-width: 720px; margin: 1.4rem auto 1.8rem; }
.bs-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bs-btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel, #fff); color: var(--ink); font: inherit; font-weight: 560; font-size: .9rem;
  transition: border-color .15s, background .15s, transform .1s;
}
.bs-btn:hover { border-color: var(--ink-soft); }
.bs-btn:active { transform: scale(.97); }
.bs-btn svg { flex: 0 0 auto; }
.bs-btn.bs-ok { border-color: #16a34a; color: #16a34a; }
.bs-nets { display: inline-flex; gap: .35rem; }
.bs-net {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--panel, #fff);
  transition: border-color .15s, color .15s, transform .1s;
}
.bs-net:hover { border-color: var(--ink-soft); color: var(--ink); }
.bs-net:active { transform: scale(.94); }
/* Bouton pack : mis en avant, coloré */
.bs-pack {
  margin-left: auto; position: relative;
  background: linear-gradient(120deg, #6d28d9, #db2777); color: #fff; border-color: transparent;
  padding-right: 1.05rem;
}
.bs-pack:hover { border-color: transparent; filter: brightness(1.06); }
.bs-pack .bs-pack-hint { display: none; font-style: normal; font-weight: 500; opacity: .85; font-size: .78rem; margin-left: .35rem; }
@media (min-width: 620px) { .bs-pack .bs-pack-hint { display: inline; } }

/* ---- Modal pack (réutilise .bt-noscroll pour le scroll-lock) ---- */
.bs-modal { position: fixed; inset: 0; z-index: 120; display: none; }
.bs-modal.open { display: block; }
.bs-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 12, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.bs-modal.open .bs-modal-backdrop { opacity: 1; }
.bs-modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(960px, calc(100vw - 28px)); max-height: min(92vh, 900px); overflow: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg, 20px);
  padding: 1.6rem 1.6rem 2rem; box-shadow: 0 24px 80px rgba(0,0,0,.4); opacity: 0; transition: opacity .22s, transform .22s;
}
.bs-modal.open .bs-modal-card { opacity: 1; transform: translate(-50%, -50%); }
.bs-modal-x { position: absolute; top: .8rem; right: 1rem; border: none; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.bs-modal-x:hover { color: var(--ink); }
.bs-modal-head h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.bs-modal-head p { color: var(--ink-soft); margin-top: .3rem; max-width: 60ch; }
.bs-modal-body { margin-top: 1.2rem; }

/* Voile bloquant « crée un compte » (aperçu visible en arrière-plan). */
.bs-gate { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 1.4rem; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); }
.bs-gate-inner { width: min(420px, 100%); text-align: center; padding: 2rem 1.7rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg, 20px); box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.bs-gate-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #6b4dff; }
.bs-gate-t { font-size: 1.5rem; letter-spacing: -.03em; margin: .5rem 0 .35rem; }
.bs-gate-p { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; margin-bottom: 1.4rem; }
.bs-gate-btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.5rem;
  border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.bs-gate-btn:hover { opacity: .9; }

.bs-loading { display: flex; align-items: center; gap: .7rem; justify-content: center; padding: 3rem 0; color: var(--ink-soft); }
.bs-spin { width: 1.1rem; height: 1.1rem; border: 2.5px solid var(--line); border-top-color: #6d28d9; border-radius: 999px; animation: bsspin .8s linear infinite; }
@keyframes bsspin { to { transform: rotate(360deg); } }
.bs-err { text-align: center; padding: 2.4rem 0; color: var(--muted); }

/* Commutateur de FORMAT (Image / Carrousel) */
.bs-formats { display: inline-flex; gap: .3rem; padding: .35rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.3rem; }
.bs-fmt { border: none; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-soft); padding: .5rem 1.15rem; border-radius: 999px; transition: background .15s, color .15s, box-shadow .15s; }
.bs-fmt.active { background: linear-gradient(120deg, #6d28d9, #db2777); color: #fff; box-shadow: 0 2px 8px rgba(109,40,217,.28); }
.bs-format { display: none; }
.bs-format.active { display: block; }

.bs-tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--bg-soft); border-radius: 999px; margin-bottom: 1.2rem; }
.bs-tab { border: none; background: none; cursor: pointer; font: inherit; font-weight: 560; font-size: .9rem; color: var(--ink-soft); padding: .45rem 1rem; border-radius: 999px; transition: background .15s, color .15s; }
.bs-tab.active { background: var(--panel, #fff); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Sélecteur de photo de fond (mode image) */
.bs-photos { margin-bottom: 1rem; }
.bs-photos-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.bs-photos-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.bs-photo { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; background-size: cover; background-position: center; background-color: var(--bg-soft); padding: 0; transition: border-color .15s, transform .1s; position: relative; }
.bs-photo:hover { transform: translateY(-1px); }
.bs-photo.active { border-color: #6d28d9; box-shadow: 0 0 0 2px rgba(109,40,217,.25); }
.bs-photo-none { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 .7rem; font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.bs-photo-loading { opacity: .55; }
.bs-credit { font-size: .8rem; color: var(--ink-soft); margin: -.3rem 0 1rem; }
.bs-credit a { color: inherit; text-decoration: underline; }

.bs-panel { display: none; }
.bs-panel.active { display: block; }
.bs-gallery { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .8rem; scroll-snap-type: x mandatory; }
.bs-slide { position: relative; flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.bs-canvas { display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: 0 6px 22px rgba(0,0,0,.16); }
.bs-9x16 .bs-canvas { height: 460px; width: auto; }
.bs-1x1 .bs-canvas { height: 340px; width: auto; }
.bs-4x5 .bs-canvas { height: 430px; width: auto; }
.bs-selectable .bs-slide { cursor: pointer; }
.bs-selectable .bs-slide .bs-canvas { transition: box-shadow .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: 2px; }
.bs-selectable .bs-slide.sel .bs-canvas { outline-color: #6d28d9; box-shadow: 0 6px 22px rgba(109,40,217,.32); }
.bs-hint { font-size: .82rem; color: var(--ink-soft); margin: .7rem 0 0; }
.bs-slide-dl {
  position: absolute; bottom: .6rem; right: .6rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .38rem .6rem; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(12,12,18,.72); color: #fff; font: inherit; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(6px); transition: background .15s, transform .1s;
}
.bs-slide-dl:hover { background: rgba(12,12,18,.9); }
.bs-slide-dl:active { transform: scale(.95); }

.bs-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.bs-act {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel, #fff); color: var(--ink); font: inherit; font-weight: 560; font-size: .9rem;
  transition: border-color .15s, filter .15s;
}
.bs-act:hover { border-color: var(--ink-soft); }
.bs-act-primary { background: linear-gradient(120deg, #6d28d9, #db2777); color: #fff; border-color: transparent; }
.bs-act-primary:hover { filter: brightness(1.06); }

.bs-caption { margin-top: 1.2rem; padding: 1rem 1.15rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius, 14px); }
.bs-cap-txt { white-space: pre-wrap; color: var(--ink); line-height: 1.5; }
.bs-cap-tags { margin-top: .6rem; color: #6d28d9; font-weight: 560; font-size: .92rem; }

@media (max-width: 560px) {
  .bs-pack { margin-left: 0; }
  .bs-modal-card { padding: 1.3rem 1.1rem 1.6rem; }
  .bs-9x16 .bs-canvas { height: 380px; }
  .bs-1x1 .bs-canvas { height: 300px; }
  .bs-4x5 .bs-canvas { height: 360px; }
}
@media (prefers-color-scheme: dark) {
  .bs-cap-tags { color: #c4b5fd; }
  .bs-photo.active { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,.3); }
}

/* ---------- Vidéos de la communauté (bandeau prominent en tête d'article) ---------- */
/* Hydraté par blog-videos.js : bandeau « Ajouter ma vidéo » toujours visible,
   rail des vidéos approuvées affiché dessous dès qu'il y en a. */
.cv {
  margin: 1.4rem 0 1.8rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 18px);
  background: linear-gradient(135deg, color-mix(in srgb, #6b4dff 6%, var(--bg-soft)), var(--bg-soft));
}
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; flex-wrap: wrap; }
.cv-head-txt { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cv-t {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #6b4dff;
}
.cv-lede { font-size: 1.02rem; font-weight: 560; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.cv-add {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 999px; border: 0;
  background: var(--btn); color: var(--btn-ink);
  transition: opacity .15s, transform .15s;
}
.cv-add:hover { opacity: .9; transform: translateY(-1px); }
.cv-add svg { display: block; }
.cv-rail {
  display: flex; gap: 10px; margin-top: 1rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.cv-rail::-webkit-scrollbar { display: none; }
.cv-rail[hidden] { display: none; }
.cv-thumb {
  position: relative; flex: none; width: 92px; aspect-ratio: 9/16;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); cursor: pointer; padding: 0; scroll-snap-align: start;
}
.cv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-thumb:hover { border-color: var(--line-strong); }
.cv-thumb:hover img { transform: scale(1.05); transition: transform .4s var(--ease, ease); }
.cv-k {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.6); color: #fff; font-size: .62rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
}
.cv-u {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px;
  color: #fff; font-size: .66rem; font-weight: 560; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--btn); color: var(--btn-ink);
  padding: .65rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 580;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.cv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
