/* TOPBAR2 — masthead éditorial */
.fx-t-topbar2 { position: relative; z-index: 50; }

.tb2 {
  position: relative;
  background: var(--tb2-bg, #faf8f3); color: var(--tb2-text, #15161a);
  font-family: var(--tb2-nav-font, var(--fx-font-body));
}

/* Bandeau supérieur */
.tb2-strip {
  background: var(--tb2-strip-bg, #15161a); color: var(--tb2-strip-text, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--tb2-strip-text, #fff) 12%, transparent);
  font-family: var(--tb2-tagline-font, var(--fx-font-accent)); font-size: 12px; letter-spacing: .06em;
}
.tb2-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.tb2-edition { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb2-edition time { white-space: nowrap; }
.tb2-edition-note { opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb2-edition time + .tb2-edition-note { padding-left: 14px; border-left: 1px solid color-mix(in srgb, var(--tb2-strip-text, #fff) 30%, transparent); }
.tb2-strip-end { display: flex; align-items: center; gap: 18px; flex: none; }
.tb2-socials { display: flex; align-items: center; gap: 4px; }
.tb2-socials a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; opacity: .75; transition: opacity .15s ease; }
.tb2-socials a:hover { opacity: 1; }
.tb2-listen {
  display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none;
  text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tb2-listen:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.tb2-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tb2-accent, #ff5b2e); }
.tb2-listen .i-pause, .tb2-listen.is-playing .i-play { display: none; }
.tb2-listen.is-playing .i-pause { display: block; }
.tb2-listen.is-playing .tb2-live-dot { animation: tb2-blink 1.2s ease-in-out infinite; }
@keyframes tb2-blink { 50% { opacity: .25; } }

/* Titre */
.tb2-mast { display: grid; justify-items: center; gap: 12px; padding: var(--tb2-pad, 36px 0); text-align: center; }
.tb2-brand { display: inline-block; color: inherit; text-decoration: none; max-width: 100%; }
.tb2-name {
  display: block; font-family: var(--tb2-name-font, var(--fx-font-heading)); font-weight: var(--tb2-name-weight, 700);
  font-size: var(--tb2-name-size, 76px); letter-spacing: var(--tb2-name-tracking, -.02em); line-height: .95;
  overflow-wrap: anywhere;
}
.tb2-logo { height: var(--tb2-logo-h, 64px); width: auto; max-width: 100%; }
.tb2-tagline {
  font-family: var(--tb2-tagline-font, var(--fx-font-accent)); color: var(--tb2-muted, #6b6f7b);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.tb2-tagline::before, .tb2-tagline::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* Rangée du menu */
.tb2-navrow { border-top: 1px solid var(--tb2-rule, #15161a); border-bottom: 1px solid var(--tb2-rule, #15161a); }
.tb2-rule-double .tb2-navrow { border-top-width: 3px; border-top-style: double; border-bottom-width: 3px; border-bottom-style: double; }
.tb2-rule-thick .tb2-navrow { border-top-width: 3px; }
.tb2-nav { display: flex; justify-content: center; }
.tb2-menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.tb2-menu > li { position: relative; display: flex; align-items: center; }
.tb2-link {
  display: block; padding: 15px 20px; color: inherit; text-decoration: none;
  font-size: var(--tb2-nav-size, 12px); font-weight: var(--tb2-nav-weight, 600);
  letter-spacing: var(--tb2-nav-tracking, .18em); text-transform: uppercase; line-height: 1.2;
  transition: color .15s ease;
}
a.tb2-link:hover, .tb2-link[aria-current="page"] { color: var(--tb2-accent, #ff5b2e); }
.tb2-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Séparateurs */
.tb2-menu > li + li::before { color: var(--tb2-muted, #6b6f7b); font-size: var(--tb2-nav-size, 12px); }
.tb2-sep-line .tb2-menu > li + li::before { content: ""; width: 1px; height: 14px; background: var(--tb2-rule, #15161a); opacity: .35; }
.tb2-sep-dot .tb2-menu > li + li::before { content: "•"; }
.tb2-sep-slash .tb2-menu > li + li::before { content: "/"; }

.tb2-sub {
  position: absolute; top: 100%; left: 50%; min-width: 220px; padding: 10px 0; z-index: 5;
  background: var(--tb2-bg, #faf8f3); border: 1px solid var(--tb2-rule, #15161a);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
  text-align: center;
}
.tb2-has-sub:hover > .tb2-sub, .tb2-has-sub:focus-within > .tb2-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tb2-sub a, .tb2-sub span { display: block; padding: 9px 18px; color: inherit; text-decoration: none; font-size: 14px; }
.tb2-sub a:hover, .tb2-sub a[aria-current="page"] { color: var(--tb2-accent, #ff5b2e); }

.tb2-toggle {
  display: none; align-items: center; gap: 10px; margin: 0 auto; padding: 13px 16px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.tb2-toggle .i-close, .tb2.is-open .tb2-toggle .i-open { display: none; }
.tb2.is-open .tb2-toggle .i-close { display: block; }

@media (max-width: 980px) {
  .tb2-name { font-size: min(var(--tb2-name-size, 76px), 11vw); }
  .tb2-logo { height: min(var(--tb2-logo-h, 64px), 52px); }
  .tb2-mast { padding-top: 26px; padding-bottom: 22px; }
  .tb2-toggle { display: flex; }
  .tb2-nav { display: none; border-top: 1px solid color-mix(in srgb, var(--tb2-rule, #15161a) 25%, transparent); padding: 6px 0 14px; }
  .tb2.is-open .tb2-nav { display: block; }
  .tb2-menu { flex-direction: column; align-items: stretch; }
  .tb2-menu > li { flex-direction: column; }
  .tb2-menu > li + li::before { display: none; }
  .tb2-link { padding: 13px 0; text-align: center; font-size: calc(var(--tb2-nav-size, 12px) + 1px); }
  .tb2-sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 6px; min-width: 0; background: none; }
}
@media (max-width: 620px) {
  .tb2-edition-note, .tb2-socials { display: none; }
  .tb2-strip-inner { min-height: 34px; }
  .tb2-tagline { font-size: 11px; letter-spacing: .08em; }
  .tb2-tagline::before, .tb2-tagline::after { width: 14px; }
}
