/* Header, menu mobile et typographie du hero d'article de pilzkaffee-test.de.
   Sur la source, ces blocs sont ecrits en classes utilitaires Tailwind. Chaque regle ci-dessous
   est la traduction exacte des utilitaires du balisage d'origine, valeurs lues dans leur CSS
   compile (ref/pilz/*.css) : bg-grey-bg = #f4f2ec, text-orange = #ef7a1a, rounded-button = 8px,
   text-sm = .875rem/1.25rem, text-h1 = clamp(2rem, 1.333rem + 3.333vw, 4rem).
   Les etats (menu ouvert, burger actif, overlay) viennent de emd-tims.css, genere.
   Theme clair uniquement. */

/* --- barre de navigation ------------------------------------------------ */
/* sticky top-0 z-[999] w-full border-b border-black/5 bg-grey-bg/95 py-3 backdrop-blur */
.tb-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(244, 242, 236, 0.95);
  padding: 12px 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.tb-navbar.tb-scrolled { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* mx-auto flex w-full max-w-[1440px] items-center justify-between gap-6 px-6 max-[767px]:px-5 */
.tb-navbar_inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 1440px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
@media (max-width: 767px) { .tb-navbar_inner { padding: 0 1.25rem; } }

.tb-navbar_logo { display: flex; flex-shrink: 0; align-items: center; }
/* h-10 w-auto max-[420px]:h-9 */
.tb-navbar_logo img { height: 40px; width: auto; display: block; }
@media (max-width: 420px) { .tb-navbar_logo img { height: 36px; } }

/* flex min-w-0 flex-1 items-center justify-end gap-5 max-[991px]:hidden */
.tb-navbar_desktop {
  display: flex;
  min-width: 0;
  flex: 1 1 0%;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}
@media (max-width: 991px) { .tb-navbar_desktop { display: none; } }

/* flex items-center justify-end gap-1 rounded-full bg-white/45 px-2 py-1 shadow-[inset...] */
.tb-navbar_pills {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.45);
  padding: 0.25rem 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* rounded-full px-4 py-2 font-primary text-sm font-semibold leading-none text-[#595b61] */
.tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  padding: 0.5rem 1rem;
  font-family: Archivo, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #595b61;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.tb-pill:hover { background-color: #fff; color: #000; }
/* page courante : bg-white text-orange shadow-sm */
.tb-pill.is-current { background-color: #fff; color: #ef7a1a; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.tb-nav-dropdown-chevron { transition: transform 0.2s; }

/* menu deroulant : absolute left-1/2 top-[calc(100%+0.75rem)] w-[min(380px,calc(100vw-2rem))]
   -translate-x-1/2 rounded-3xl border border-black/10 bg-white p-2 shadow-[0_20px_60px_rgba(0,0,0,0.14)] */
.tb-nav-dropdown { position: relative; }
.tb-nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.75rem);
  z-index: 1000;
  width: min(380px, calc(100vw - 2rem));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  transition: all 0.2s;
  box-sizing: border-box;
}
/* pont invisible : le menu reste ouvert quand la souris traverse les 0.75rem d'ecart */
.tb-nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem; }
/* px-3 pb-2 pt-2 text-[11px] font-bold uppercase tracking-[0.16em] text-[#8a8a8a] */
.tb-nav-dropdown-title {
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a8a8a;
}
/* block rounded-2xl px-3 py-2.5 text-sm font-semibold leading-snug text-[#595b61] */
.tb-nav-dropdown-link {
  display: block;
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  font-family: Archivo, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.375;
  color: #595b61;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.tb-nav-dropdown-link:hover { background-color: #f4f2ec; color: #000; }
.tb-nav-dropdown-link.is-current { color: #ef7a1a; }

/* inline-flex shrink-0 items-center gap-2 rounded-button bg-orange px-6 py-3 text-sm font-bold leading-none */
.tb-navbar_cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  background-color: #ef7a1a;
  padding: 0.75rem 1.5rem;
  font-family: Archivo, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.tb-navbar_cta:hover { background-color: #d66a12; transform: translateY(-1px); color: #fff; }

/* burger : hidden flex-col items-center justify-center gap-1.5 rounded-full bg-white/70 p-3 max-[991px]:flex */
.tb-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem;
  cursor: pointer;
}
@media (max-width: 991px) { .tb-burger { display: flex; } }
/* block h-[2px] w-6 origin-center bg-black transition-all duration-300 */
.tb-hamburger-bar { display: block; height: 2px; width: 1.5rem; transform-origin: center; background: #000; transition: all 0.3s; }

/* --- menu mobile ----------------------------------------------------------- */
/* fixed inset-0 z-[9999] flex flex-col bg-grey-bg transition-all duration-300 */
.tb-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background-color: #f4f2ec;
  transition: all 0.3s;
}
.tb-mobile_head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.tb-mobile_head img { height: 36px; width: auto; }
/* flex h-11 w-11 items-center justify-center rounded-full bg-white */
.tb-mobile_close { display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border: 0; border-radius: 9999px; background: #fff; cursor: pointer; }
/* flex flex-1 flex-col gap-7 overflow-y-auto px-6 pb-8 pt-4 */
.tb-mobile_nav { display: flex; flex: 1 1 0%; flex-direction: column; gap: 1.75rem; overflow-y: auto; padding: 1rem 1.5rem 2rem; }
/* mb-3 px-1 text-xs font-bold uppercase tracking-[0.18em] text-[#8a8a8a] */
.tb-mobile_label { margin: 0 0 0.75rem; padding: 0 0.25rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #8a8a8a; }
.tb-mobile_group { display: grid; gap: 0.5rem; }
/* rounded-2xl bg-white px-5 py-4 text-2xl font-bold leading-tight */
.tb-mobile_main {
  display: block;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.25rem;
  font-family: Archivo, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
/* rounded-2xl bg-white px-5 py-3.5 text-lg font-semibold leading-tight */
.tb-mobile_link {
  display: block;
  border-radius: 1rem;
  background: #fff;
  padding: 0.875rem 1.25rem;
  font-family: Archivo, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
.tb-mobile_main:hover, .tb-mobile_link:hover, .tb-mobile_main.is-current, .tb-mobile_link.is-current { color: #ef7a1a; }
/* mt-auto inline-flex items-center justify-center gap-2.5 rounded-button bg-orange px-8 py-4 text-lg font-bold leading-none */
.tb-mobile_cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 8px;
  background: #ef7a1a;
  padding: 1rem 2rem;
  font-family: Archivo, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.tb-mobile_cta:hover { background: #d66a12; color: #fff; }

/* --- hero d'article : typographie ------------------------------------------ */
/* text-h1 text-text-dark max-w-[56rem] */
.tb-blog_hero h1 {
  margin: 0;
  max-width: 56rem;
  font-family: Archivo, sans-serif;
  font-size: clamp(2rem, 1.333rem + 3.333vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  color: #000;
}
/* text-text-dark/80 text-paragraph leading-[1.6] max-w-[45rem] */
.tb-hero_intro { margin: 0; max-width: 45rem; font-size: 14px; line-height: 1.6; color: rgba(0, 0, 0, 0.8); }
.tb-hero_sep { font-size: 0.75rem; line-height: 1rem; color: rgba(0, 0, 0, 0.4); }
.tb-breadcrumb_current { text-decoration: none !important; font-weight: 600 !important; }
.tb-hero_meta-strong { font-size: 0.875rem; line-height: 1.25rem; color: #000; }
.tb-hero_meta { font-size: 0.875rem; line-height: 1.25rem; color: rgba(0, 0, 0, 0.7); }
.tb-hero_meta-icon { width: 18px; height: 18px; color: rgba(0, 0, 0, 0.7); flex-shrink: 0; }

/* --- signature « Napisał Tim » dans le hero du comparatif --------------------- */
/* meme rendu que .profil-img de pilzkaffee : 32 px, rond, cadre plein */
.tb-byline-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }

/* --- popup d'offre ------------------------------------------------------------
   Ecart volontaire avec la source : sur pilzkaffee la popup est en z-index 100 et le header
   collant en 999, donc le voile sombre passe SOUS le header, qui reste cliquable pendant que
   la popup est ouverte. On la place au-dessus de tout, y compris du menu mobile (9999). */
.tb-bp { z-index: 10000; }

/* --- footer --------------------------------------------------------------- */
/* la source a 2 colonnes (Guides, Information) ; on en a 3 (Poradniki, Marki, Informacje).
   Sous 768 px la regle d'origine repasse la grille en colonne, rien a ajouter. */
.tb-footer_grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
