/* =========================================================
   Blog TBC v0.2 — style SkillForge
   Couleurs claires dans theme.json ; ici : mode sombre + mise en page.
   ========================================================= */

/* ---------- Mode sombre ---------- */
:root[data-theme="dark"] {
  --wp--preset--color--base: #030712;
  --wp--preset--color--surface: #050B1A;
  --wp--preset--color--sunk: #1F2937;
  --wp--preset--color--contrast: #E2E8F0;
  --wp--preset--color--muted: #94A3B8;
  --wp--preset--color--line: #1F2937;
  --wp--preset--color--brand: #0176D3;
  --wp--preset--color--brand-link: #78B0FD;
  --wp--preset--color--brand-soft: #0B2240;
  --wp--preset--color--brand-ink: #A8CBFF;
  --wp--preset--color--night: #070C22;
  --wp--preset--color--night-2: #0E1640;
  --wp--preset--color--ia: #C4B5FD;   --wp--preset--color--ia-soft: #1F1640;
  --wp--preset--color--sf: #93C5FD;   --wp--preset--color--sf-soft: #10203F;
  --wp--preset--color--tu: #5EEAD4;   --wp--preset--color--tu-soft: #0B2724;
  --wp--preset--color--ev: #F9A8D4;   --wp--preset--color--ev-soft: #2D0F20;
  --wp--preset--color--ca: #FCD34D;   --wp--preset--color--ca-soft: #2A1D07;
  color-scheme: dark;
}

:root {
  --c-base: var(--wp--preset--color--base);
  --c-surface: var(--wp--preset--color--surface);
  --c-sunk: var(--wp--preset--color--sunk);
  --c-ink: var(--wp--preset--color--contrast);
  --c-muted: var(--wp--preset--color--muted);
  --c-line: var(--wp--preset--color--line);
  --c-brand: var(--wp--preset--color--brand);
  --c-link: var(--wp--preset--color--brand-link);
  --c-soft: var(--wp--preset--color--brand-soft);
  --c-brand-ink: var(--wp--preset--color--brand-ink);
  --f-mono: var(--wp--preset--font-family--mono);
  --night-bg:
    radial-gradient(60% 80% at 15% 10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(50% 70% at 90% 30%, rgba(236,72,153,.22), transparent 60%),
    linear-gradient(180deg, var(--wp--preset--color--night), var(--wp--preset--color--night-2));
  --dots: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px);
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
.tbc-grad {
  background: linear-gradient(90deg, #7DD3FC, #C4B5FD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- En-tête ---------- */
.tbc-header { background: var(--c-base); border-bottom: 1px solid var(--c-line); }
.tbc-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.tbc-header__inner > * { margin: 0 !important; }
.tbc-brand { display: flex; align-items: center; gap: 10px; }
.tbc-brand > * { margin: 0 !important; }
.tbc-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0176D3, #7C3AED); color: #fff; font: 800 12px var(--wp--preset--font-family--body);
}
.tbc-brand:has(.wp-block-site-logo img) .tbc-mark { display: none; }
.tbc-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.tbc-brand__text > * { margin: 0 !important; }
.tbc-brand .wp-block-site-title { font-size: 17px; font-weight: 700; }
.tbc-brand .wp-block-site-title a {
  text-decoration: none;
  background: linear-gradient(90deg, #0176D3, #5867E8, #7C3AED);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .tbc-brand .wp-block-site-title a { background-image: linear-gradient(90deg, #78B0FD, #A5B4FC, #C4B5FD); }
.tbc-brand .wp-block-site-tagline { font-size: 11.5px; color: var(--c-muted); font-weight: 500; }

.tbc-header .wp-block-navigation { flex: 1; justify-content: flex-end; font-size: 14.5px; gap: 4px 22px; }
.tbc-header .wp-block-navigation a { color: var(--c-muted); text-decoration: none; padding: 8px 0; }
.tbc-header .wp-block-navigation a:hover,
.tbc-header .wp-block-navigation .current-menu-item > a { color: var(--c-ink); }
.tbc-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--c-base) !important; color: var(--c-ink) !important; }

.tbc-actions { display: flex; align-items: center; gap: 6px; }
.tbc-actions > * { margin: 0 !important; }
.tbc-theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  color: var(--c-ink); display: grid; place-items: center; cursor: pointer;
}
.tbc-theme-toggle:hover { background: var(--c-sunk); }
.tbc-theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .tbc-theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .tbc-theme-toggle .i-moon { display: none; }
.tbc-lang { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--c-ink); font-size: 13px; font-weight: 600; }
.tbc-lang a { color: var(--c-muted); text-decoration: none; padding: 6px 4px; }
.tbc-lang a.is-current { color: var(--c-ink); }
.tbc-actions .wp-block-buttons { margin: 0; }
.tbc-actions .wp-block-button__link { padding: 0.55rem 1rem; }

/* ---------- Bandeau nuit (accueil, article, pages) ---------- */
.tbc-night {
  position: relative; overflow: hidden; color: #EEF0FA;
  background-color: #0A1230;
  background-image:
    linear-gradient(180deg, rgba(7,12,34,.62) 0%, rgba(7,12,34,.45) 45%, rgba(7,12,34,.78) 100%),
    url("../img/bandeau.jpg");
  background-size: cover, cover;
  background-position: center, center 40%;
}
.tbc-night h1 { text-shadow: 0 2px 24px rgba(7,12,34,.6); }
.tbc-night__inner {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 64px 24px 72px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.tbc-night__inner > * { margin: 0 !important; }
.tbc-night h1, .tbc-night h2 { color: #fff; }
.tbc-night .tbc-lede { color: #AEB6D0; font-size: 1.125rem; max-width: 660px; }
.tbc-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(124,58,237,.18); border: 1px solid rgba(196,181,253,.25); color: #D8CCFF;
  font-size: 13.5px; font-weight: 500;
}
.tbc-badge::before { content: "✦"; font-size: 13px; color: #C4B5FD; }
.tbc-night .wp-block-search { width: 100%; max-width: 560px; }
.tbc-night .wp-block-search__inside-wrapper {
  padding: 6px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.tbc-night .wp-block-search__input { background: transparent; border: 0; color: #fff; font-size: 15px; padding: 10px 12px; }
.tbc-night .wp-block-search__input::placeholder { color: #8F97B3; }
.tbc-night .wp-block-search__button { margin-left: 8px; border-radius: 9px; }

/* Article à la une dans le bandeau */
.tbc-featured { width: 100%; max-width: 1040px; margin-top: 26px !important; }
.tbc-featured .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.tbc-feature-card {
  border-radius: 18px; overflow: hidden; text-align: left;
  background: #0B0F1A; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.35);
}
.tbc-feature-card > * { margin: 0 !important; }
.tbc-feature-card .wp-block-post-featured-image { margin: 0; }
.tbc-feature-card .wp-block-post-featured-image img { display: block; width: 100%; object-fit: cover; }
.tbc-feature-card__body {
  padding: 24px 28px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.tbc-feature-card__body > * { margin: 0 !important; }
.tbc-feature-card__text { max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.tbc-feature-card__text > * { margin: 0 !important; }
.tbc-feature-card .tbc-kicker { font: 600 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #F0ABFC; }
.tbc-feature-card .wp-block-post-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.tbc-feature-card .wp-block-post-title a { color: #fff; text-decoration: none; }
.tbc-feature-card .wp-block-post-excerpt { color: #A9B1CC; }
.tbc-feature-card .wp-block-post-excerpt p { margin: 0; }
.tbc-feature-card .tbc-meta { color: #A9B1CC; }
.tbc-feature-card .tbc-meta .wp-block-post-author-name { color: #fff; }

/* ---------- Zone principale ---------- */
.tbc-main { max-width: 1240px; margin: 0 auto; padding: 64px 24px 0; }
.tbc-main > * { margin-block: 0 !important; }
.tbc-main > * + * { margin-block-start: 72px !important; }
.tbc-section > * { margin-block: 0 !important; }
.tbc-section > * + * { margin-block-start: 22px !important; }
.tbc-center { text-align: center; }
.tbc-sub { color: var(--c-muted); }
.tbc-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tbc-section-head > * { margin: 0 !important; }

/* Pastilles de rubrique */
.tbc-cat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tbc-cat .wp-block-post-terms__separator { display: none; }
.tbc-cat a {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  text-decoration: none; background: var(--cat-soft, var(--c-soft)); color: var(--cat, var(--c-link));
}
.tbc-feature-card .tbc-cat a { background: rgba(167,139,250,.18); color: #D8CCFF; }
a[href*="/category/ia"], a[href*="/category/ai"] { --cat: var(--wp--preset--color--ia); --cat-soft: var(--wp--preset--color--ia-soft); }
a[href*="/category/salesforce"] { --cat: var(--wp--preset--color--sf); --cat-soft: var(--wp--preset--color--sf-soft); }
a[href*="/category/tutos"], a[href*="/category/tutorials"] { --cat: var(--wp--preset--color--tu); --cat-soft: var(--wp--preset--color--tu-soft); }
a[href*="/category/evenements"], a[href*="/category/events"] { --cat: var(--wp--preset--color--ev); --cat-soft: var(--wp--preset--color--ev-soft); }
a[href*="/category/carriere"], a[href*="/category/careers"] { --cat: var(--wp--preset--color--ca); --cat-soft: var(--wp--preset--color--ca-soft); }

.tbc-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tbc-chips li { margin: 0; }
.tbc-chips a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-muted);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
}
.tbc-chips a:hover { border-color: var(--cat, var(--c-link)); color: var(--cat, var(--c-link)); }
.tbc-chips .current-cat a { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* Rubriques */
.tbc-rubriques { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .tbc-rubriques { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tbc-rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tbc-rubriques { grid-template-columns: 1fr; } }
.tbc-rubriques > * { margin: 0 !important; }
.tbc-rubrique {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-line);
  transition: transform .15s, border-color .15s;
}
.tbc-rubrique:hover { border-color: var(--c-link); transform: translateY(-2px); }
.tbc-rubrique > * { margin: 0 !important; }
.tbc-rubrique .tbc-ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft); color: var(--ink);
}
.tbc-rubrique h3 { font-size: 18px; }
.tbc-rubrique h3 a { color: var(--c-ink); text-decoration: none; }
.tbc-rubrique h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.tbc-rubrique p { font-size: 14px; color: var(--c-muted); line-height: 1.5; }
.tbc-rubrique.is-ia { --ink: var(--wp--preset--color--ia); --soft: var(--wp--preset--color--ia-soft); }
.tbc-rubrique.is-sf { --ink: var(--wp--preset--color--sf); --soft: var(--wp--preset--color--sf-soft); }
.tbc-rubrique.is-tu { --ink: var(--wp--preset--color--tu); --soft: var(--wp--preset--color--tu-soft); }
.tbc-rubrique.is-ev { --ink: var(--wp--preset--color--ev); --soft: var(--wp--preset--color--ev-soft); }
.tbc-rubrique.is-ca { --ink: var(--wp--preset--color--ca); --soft: var(--wp--preset--color--ca-soft); }

/* Cartes d'articles */
.tbc-list .wp-block-post-template { gap: 22px; margin: 0; padding: 0; }
@media (max-width: 1000px) { .tbc-list .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 680px) { .tbc-list .wp-block-post-template { grid-template-columns: 1fr !important; } }
.tbc-card {
  height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); transition: transform .15s, border-color .15s;
}
.tbc-card:hover { border-color: var(--c-link); transform: translateY(-2px); }
.tbc-card > * { margin: 0 !important; }
.tbc-card .wp-block-post-featured-image { margin: 0; }
.tbc-card .wp-block-post-featured-image img { display: block; width: 100%; object-fit: cover; }
.tbc-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tbc-card__body > * { margin: 0 !important; }
.tbc-card .wp-block-post-title { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.tbc-card .wp-block-post-title a { color: var(--c-ink); text-decoration: none; }
.tbc-card .wp-block-post-title a:hover { color: var(--c-link); }
.tbc-card .wp-block-post-excerpt { font-size: 14.5px; color: var(--c-muted); flex: 1; }
.tbc-card .wp-block-post-excerpt p { margin: 0; }
.tbc-card__meta {
  display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--c-line);
  padding-top: 12px; font-size: 13px; color: var(--c-muted);
}
.tbc-card__meta > * { margin: 0 !important; }

.wp-block-query-pagination { margin-top: 28px; gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); color: var(--c-ink); text-decoration: none;
}
.wp-block-query-pagination .current { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.tbc-empty { padding: 32px; text-align: center; border: 1px dashed var(--c-line); border-radius: 14px; color: var(--c-muted); }

/* Méta auteur */
.tbc-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-muted); }
.tbc-meta > * { margin: 0 !important; }
.tbc-meta .wp-block-avatar img { border-radius: 50%; display: block; }
.tbc-meta .wp-block-post-author-name { color: var(--c-ink); font-weight: 600; }
.tbc-meta__text { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.tbc-meta__text > * { margin: 0 !important; }

/* Bandeau newsletter */
.tbc-newsletter {
  background-position: center, center 70%;
  border-radius: 20px; padding: 44px !important;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.tbc-newsletter > * { margin: 0 !important; position: relative; z-index: 1; }
.tbc-newsletter__text { max-width: 560px; }
.tbc-newsletter__text > * { margin: 0 !important; }
.tbc-newsletter__text > * + * { margin-top: 8px !important; }
.tbc-newsletter p { color: #A9B1CC; }
.tbc-newsletter .wp-block-button__link { background: #fff; color: #014486; }
.tbc-newsletter .wp-block-button__link:hover { background: #E5F2FC; color: #014486; }

/* ---------- Article ---------- */
.tbc-single-hero .tbc-night__inner { padding-bottom: 150px; max-width: 900px; }
.tbc-single-hero .tbc-cat a { background: rgba(147,197,253,.16); color: #BFDBFE; }
.tbc-single-hero .tbc-meta { color: #AEB6D0; justify-content: center; }
.tbc-single-hero .tbc-meta .wp-block-post-author-name { color: #fff; }
.tbc-single-image { max-width: 1100px; margin: -120px auto 0 !important; padding: 0 24px; position: relative; z-index: 2; }
.tbc-single-image .wp-block-post-featured-image {
  margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.35);
}
.tbc-single-image .wp-block-post-featured-image img { display: block; width: 100%; object-fit: cover; }
.tbc-content { font-size: 1.09rem; line-height: 1.75; }
.tbc-content h2 { margin-top: 2.2rem; }
.tbc-content :where(p, li) code { font-family: var(--f-mono); font-size: .88em; background: var(--c-sunk); padding: 1px 6px; border-radius: 5px; }
.tbc-content .wp-block-image img { border-radius: 12px; }
.tbc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tbc-tags .wp-block-post-terms__separator { display: none; }
.tbc-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-muted); text-decoration: none; }
.tbc-tags a::before { content: "#"; }
.tbc-author {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px;
  border: 1px solid var(--c-line); background: var(--c-surface);
}
.tbc-author > * { margin: 0 !important; }
.tbc-author .wp-block-avatar img { border-radius: 50%; display: block; }
.tbc-author__text { display: flex; flex-direction: column; gap: 4px; }
.tbc-author__text > * { margin: 0 !important; }
.tbc-author__text .wp-block-post-author-name { font-weight: 600; font-size: 17px; }
.tbc-author__text .wp-block-post-author-biography { color: var(--c-muted); font-size: 15px; }
.tbc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.tbc-related { border-top: 1px solid var(--c-line); padding-top: 40px; }

/* ---------- Pages : étapes, sujets ---------- */
.tbc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tbc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tbc-steps { grid-template-columns: 1fr; } }
.tbc-steps > * { margin: 0 !important; }
.tbc-step { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-surface); }
.tbc-step > * { margin: 0 !important; }
.tbc-step .tbc-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-link); font-weight: 700; }
.tbc-step h3 { font-size: 17px; }
.tbc-step p:last-child { font-size: 14.5px; color: var(--c-muted); }

/* ---------- Pied de page ---------- */
.tbc-footer { margin-top: 80px; border-top: 1px solid var(--c-line); }
.tbc-footer__cols {
  max-width: 1240px; margin: 0 auto; padding: 40px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px;
}
@media (max-width: 900px) { .tbc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tbc-footer__cols { grid-template-columns: 1fr; } }
.tbc-footer__cols > * { margin: 0 !important; }
.tbc-footer__col > * { margin: 0 !important; }
.tbc-footer__col > * + * { margin-top: 8px !important; }
.tbc-footer__col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 600; }
.tbc-footer__col p { font-size: 14px; }
.tbc-footer__col a { color: var(--c-ink); text-decoration: none; }
.tbc-footer__col a:hover { color: var(--c-link); }
.tbc-footer__about { color: var(--c-muted); max-width: 320px; }
.tbc-footer__brand { font-size: 18px; font-weight: 700; background: linear-gradient(90deg, #0176D3, #5867E8, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tbc-footer__bottom { max-width: 1240px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); }

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  .tbc-header__inner, .tbc-main, .tbc-footer__cols, .tbc-footer__bottom { padding-left: 16px; padding-right: 16px; }
  .tbc-night__inner { padding: 44px 16px 52px; }
  .tbc-newsletter { padding: 28px !important; }
  .tbc-single-image { padding: 0 16px; margin-top: -100px !important; }
}

/* ---------- Accueil : bandeau bleu nuit uni (sans image) ---------- */
.tbc-night.tbc-night--plain {
  background-image:
    radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px),
    radial-gradient(60% 80% at 15% 10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(50% 70% at 90% 30%, rgba(236,72,153,.22), transparent 60%),
    linear-gradient(180deg, var(--wp--preset--color--night), var(--wp--preset--color--night-2));
  background-size: 26px 26px, auto, auto, auto;
  background-position: 0 0, center, center, center;
}
.tbc-night--plain::before, .tbc-night--plain::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255,255,255,.12);
}
.tbc-night--plain::before { width: 460px; height: 460px; right: -120px; top: -160px; }
.tbc-night--plain::after { width: 360px; height: 360px; left: -140px; bottom: -180px; }

/* ---------- Accueil : bandeau compact ---------- */
.tbc-night--compact .tbc-night__inner { padding: 40px 24px 44px; gap: 14px; }
.tbc-night--compact h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; max-width: 820px; }
.tbc-night--compact .tbc-lede { font-size: 1rem; color: #E6E9F5; max-width: 600px; }
.tbc-main > .tbc-featured { max-width: none; margin-top: 0 !important; }
.tbc-main:has(> .tbc-featured) { padding-top: 40px; }

/* ---------- Même hauteur de bandeau partout (référence : Devenir auteur) ---------- */
.tbc-night--compact .tbc-night__inner,
.tbc-single-hero .tbc-night__inner { padding: 64px 24px 72px; gap: 20px; }
.tbc-night--compact h1,
.tbc-single-hero h1 { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.05; max-width: 900px; }
.tbc-night--compact .tbc-lede { font-size: 1.125rem; color: #AEB6D0; max-width: 660px; }
.tbc-single-image { margin: 40px auto 0 !important; }
.tbc-single-image .wp-block-post-featured-image { border-color: var(--c-line); }
@media (max-width: 760px) {
  .tbc-night--compact .tbc-night__inner,
  .tbc-single-hero .tbc-night__inner { padding: 44px 16px 52px; }
  .tbc-single-image { margin-top: 28px !important; }
}

/* ---------- Rôles (6 cartes) et nouvelles catégories ---------- */
.tbc-rubriques.tbc-roles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tbc-rubriques.tbc-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tbc-rubriques.tbc-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tbc-roles .tbc-rubrique { padding: 20px; }
.tbc-roles .tbc-ico { width: 48px; height: 48px; }
.tbc-roles h3 { font-size: 17px; }
a[href*="/category/admin"], a[href*="/category/business-analyst"], a[href*="/category/actus"] { --cat: var(--wp--preset--color--sf); --cat-soft: var(--wp--preset--color--sf-soft); }
a[href*="/category/developpeur"], a[href*="/category/tutoriels"] { --cat: var(--wp--preset--color--tu); --cat-soft: var(--wp--preset--color--tu-soft); }
a[href*="/category/architecte"] { --cat: var(--wp--preset--color--ia); --cat-soft: var(--wp--preset--color--ia-soft); }
a[href*="/category/consultant"] { --cat: var(--wp--preset--color--ca); --cat-soft: var(--wp--preset--color--ca-soft); }
a[href*="/category/devops"] { --cat: var(--wp--preset--color--ev); --cat-soft: var(--wp--preset--color--ev-soft); }
/* Sous-menu Rôles */
.tbc-header .wp-block-navigation__submenu-container {
  background: var(--c-surface) !important; border: 1px solid var(--c-line) !important; border-radius: 12px; padding: 6px !important;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); min-width: 220px !important;
}
.tbc-header .wp-block-navigation__submenu-container a { color: var(--c-ink) !important; padding: 8px 10px !important; border-radius: 8px; }
.tbc-header .wp-block-navigation__submenu-container a:hover { background: var(--c-sunk); }
.tbc-header .wp-block-navigation-submenu__toggle, .tbc-header .wp-block-navigation-item__content { color: var(--c-muted); }

/* ---------- Newsletter : nuages bien visibles ---------- */
.tbc-night.tbc-newsletter {
  background-color: #032D60;
  background-image:
    radial-gradient(70% 130% at 100% 0%, rgba(124,58,237,.45), transparent 65%),
    linear-gradient(120deg, #032D60, #0B3A7A);
  background-size: auto;
  background-position: 0 0;
  padding: 56px 44px !important;
}
.tbc-night.tbc-newsletter::before, .tbc-night.tbc-newsletter::after { display: none; }


/* ---------- Pied de page : bandeau nuages ---------- */
.tbc-footer {
  border-top: 0;
  background-color: #0A1230;
  background-image:
    linear-gradient(180deg, rgba(7,12,34,.78), rgba(7,12,34,.5)),
    url("../img/bandeau.jpg");
  background-size: cover, cover;
  background-position: center, center 70%;
  color: #E6E9F5;
  padding-top: 24px;
}
.tbc-footer .tbc-footer__col h3,
.tbc-footer .tbc-footer__about,
.tbc-footer .tbc-footer__bottom { color: #AEB6D0; }
.tbc-footer .tbc-footer__col a { color: #FFFFFF; }
.tbc-footer .tbc-footer__col a:hover { color: #C4B5FD; }
.tbc-footer .tbc-footer__bottom { border-top-color: rgba(255,255,255,.15); }
.tbc-footer .tbc-footer__brand { background-image: linear-gradient(90deg, #93C5FD, #C4B5FD); }


/* ---------- v0.4 — retours de relecture ---------- */
/* Couleurs des thèmes (slugs FR) */
a[href*="/category/tutoriels"] { --cat: var(--wp--preset--color--tu); --cat-soft: var(--wp--preset--color--tu-soft); }
a[href*="/category/actus"], a[href*="/category/news"] { --cat: var(--wp--preset--color--sf); --cat-soft: var(--wp--preset--color--sf-soft); }
/* Carte : « Thème · Métier » */
.tbc-cat { align-items: center; }
.tbc-cat .tbc-role-sep { color: var(--c-muted); }
.tbc-cat a.tbc-role { background: none; padding: 3px 0; color: var(--c-muted); font-weight: 500; font-size: 13px; }
.tbc-cat a.tbc-role:hover { color: var(--c-ink); }
.tbc-night .tbc-cat a.tbc-role, .tbc-feature-card .tbc-cat a.tbc-role { background: none; color: #AEB6D0; }
.tbc-night .tbc-cat .tbc-role-sep, .tbc-feature-card .tbc-cat .tbc-role-sep { color: #AEB6D0; }
/* Filtres : thème actif */
.tbc-chips .is-current a { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
/* Devenir auteur : piliers de la communauté */
.tbc-pillar-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-link); }
/* Wity dans le bandeau d'accueil */
.tbc-night > p:has(.tbc-wity) { margin: 0 !important; height: 0; }
.tbc-wity {
  position: absolute; z-index: 1; bottom: 0; right: max(24px, calc(50% - 620px));
  width: 210px; height: auto; pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}
@media (max-width: 1240px) { .tbc-wity { display: none; } }
/* Petite Wity dans l'en-tête */
.tbc-brand > p:has(.tbc-wity-mini) { margin: 0 !important; line-height: 0; }
.tbc-wity-mini { display: block; width: 40px; height: 40px; object-fit: contain; }
/* v0.4.3 : Wity centrée en haut de chaque bandeau */
.tbc-night__inner > p:has(.tbc-wity) { height: auto; display: flex; justify-content: center; line-height: 0; }
.tbc-wity { position: static; display: block; width: 120px; height: auto; margin: 0 auto; }
@media (max-width: 1240px) { .tbc-wity { display: block; } }
@media (max-width: 600px) { .tbc-wity { width: 90px; } }
/* v0.4.4 : Wity à droite du bandeau d'accueil, centrée en hauteur */
.tbc-night > p:has(.tbc-wity) { margin: 0 !important; height: 0; display: block; }
.tbc-wity {
  position: absolute; z-index: 1; top: 50%; bottom: auto; right: max(24px, calc(50% - 620px));
  transform: translateY(-50%); width: 210px; margin: 0;
}
@media (max-width: 1240px) { .tbc-wity { display: none; } }
/* v0.4.5 : vrai logo Trailblazer Community */
.tbc-brand > p:has(.tbc-logo) { margin: 0 !important; line-height: 0; }
.tbc-logo { display: block; line-height: 0; }
.tbc-logo img { height: 46px; width: auto; }
.tbc-logo__dark { display: none; }
:root[data-theme="dark"] .tbc-logo__light { display: none; }
:root[data-theme="dark"] .tbc-logo__dark { display: inline; }
.tbc-brand .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbc-brand:has(.tbc-logo) .wp-block-site-logo { display: none; }

/* ---------- v0.5 : Derniers articles + colonne Événements ---------- */
.tbc-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.tbc-with-aside > * { margin: 0 !important; }
.tbc-col-main > * + * { margin-top: 22px !important; }
.tbc-col-main .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .tbc-with-aside { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tbc-col-main .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
.tbc-aside > * { margin: 0 !important; }
.tbc-aside__title {
  text-align: center; text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.35rem !important; font-weight: 800;
  padding: 16px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.tbc-events { list-style: none; margin: 24px 0 0 !important; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.tbc-event { margin: 0; }
.tbc-event__title { margin: 0 0 12px !important; font-size: 1.1rem !important; line-height: 1.3; font-weight: 700; }
.tbc-event__title a { color: var(--c-ink); text-decoration: none; }
.tbc-event__title a:hover { color: var(--c-link); }
.tbc-event__row { display: flex; gap: 14px; align-items: center; }
.tbc-event__date {
  flex: none; width: 72px; height: 72px; border-radius: 4px; background: var(--c-brand); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
}
.tbc-event__date b { font-size: 30px; font-weight: 800; }
.tbc-event__date span { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.tbc-event__meta { display: flex; flex-direction: column; gap: 6px; }
.tbc-event__lieu { color: var(--c-muted); font-size: 15px; }
.tbc-event__type { color: var(--c-ink); font-size: 14px; font-weight: 700; }
.tbc-events__empty { color: var(--c-muted); margin-top: 20px !important; }

/* ---------- v0.6 : nom « The French Stack » ---------- */
.tbc-brand > p:has(.tbc-wordmark) { margin: 0 !important; }
.tbc-wordmark {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1;
  letter-spacing: -.01em; color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.tbc-wordmark span {
  font-style: italic;
  background: linear-gradient(90deg, #0176D3, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .tbc-wordmark span { background-image: linear-gradient(90deg, #78B0FD, #C4B5FD); }
.tbc-wordmark:hover { color: var(--c-ink); }
.tbc-footer__brand { font-family: "Fraunces", Georgia, serif; font-size: 22px !important; }
/* v0.6.2 : on masque le logo réglé dans WordPress (ancien logo Trailblazer) */
.tbc-brand .wp-block-site-logo { display: none !important; }
/* v0.7 : nouvelle mascotte The French Stack (remplace Wity) */
.tbc-wity-mini { width: auto; height: 46px; }
.tbc-wity { width: auto; height: 300px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
/* v0.8 : illustrations des métiers (mascotte) dans « Je suis… » */
.tbc-roles .tbc-rubrique { align-items: center; text-align: center; }
.tbc-role-img { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; margin: 0 auto 6px; transition: transform .2s; }
.tbc-roles .tbc-rubrique:hover .tbc-role-img { transform: translateY(-4px) scale(1.03); }
