/* =========================================================
   PAGE ACTUALITÉS — palette bleue cohérente, grille articles
   ========================================================= */

/* === Visually hidden helper === */
body.batipro-page .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   1. HERO ACTUALITÉS (sobre, narrow)
   ============================================================ */
body.batipro-page .bp-act-hero {
  background:
    radial-gradient(circle at 25% 35%, rgba(200, 122, 44, 0.10), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(11, 29, 58, 0.30), transparent 60%),
    var(--c-blue-deep);
  color: #fff;
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
body.batipro-page .bp-act-hero .bp-kicker {
  color: var(--c-ocre);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
body.batipro-page .bp-act-hero .bp-kicker-bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
body.batipro-page .bp-act-hero-title {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 60px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.034em !important;
  margin: 0 0 28px;
  max-width: 760px;
  font-weight: 700;
}
body.batipro-page .bp-act-hero-title em {
  color: var(--c-ocre);
  font-style: italic;
  font-weight: 500;
}
body.batipro-page .bp-act-hero-title .hl {
  color: #fff;
  background: rgba(200, 122, 44, 0.42);
  padding: 0 6px;
  border-radius: 4px;
  display: inline;
}
body.batipro-page .bp-act-hero-lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  max-width: 600px;
  margin: 0;
}

/* ============================================================
   2. TABS CATÉGORIES (sticky horizontal scrollable)
   ============================================================ */
body.batipro-page .bp-act-filters {
  background: var(--c-blue-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}
body.batipro-page .bp-act-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
}
body.batipro-page .bp-act-tabs::-webkit-scrollbar { display: none; }

body.batipro-page .bp-act-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms;
  white-space: nowrap;
  cursor: pointer;
}
body.batipro-page .bp-act-tab:hover {
  color: #fff;
}
body.batipro-page .bp-act-tab.is-active {
  color: var(--c-ocre);
  border-bottom-color: var(--c-ocre);
  font-weight: 600;
}
body.batipro-page .bp-act-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body.batipro-page .bp-act-tab.is-active .bp-act-tab-count {
  background: rgba(200, 122, 44, 0.18);
  color: var(--c-ocre);
}

/* ============================================================
   3. GRILLE ARTICLES
   ============================================================ */
body.batipro-page .bp-act-list {
  background: var(--c-cream);
  color: var(--c-text);
  padding: clamp(48px, 6vw, 80px) 0 !important;
  border-top: 1px solid rgba(11, 29, 58, 0.06);
}

body.batipro-page .bp-act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 0 48px;
}
@media (min-width: 760px) {
  body.batipro-page .bp-act-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (min-width: 1100px) {
  body.batipro-page .bp-act-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

body.batipro-page .bp-act-card {
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.10);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 320ms;
  display: flex;
  flex-direction: column;
}
body.batipro-page .bp-act-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -12px rgba(11, 29, 58, 0.18);
  border-color: rgba(200, 122, 44, 0.30);
}
body.batipro-page .bp-act-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

body.batipro-page .bp-act-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-ink), #1a3470);
  position: relative;
}
body.batipro-page .bp-act-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.batipro-page .bp-act-card:hover .bp-act-card-img img {
  transform: scale(1.04);
}

body.batipro-page .bp-act-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

body.batipro-page .bp-act-cat {
  display: inline-flex;
  align-items: center;
  width: max-content;
  background: rgba(200, 122, 44, 0.10);
  color: var(--c-ocre);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

body.batipro-page .bp-act-card h3 {
  color: var(--c-ink);
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.batipro-page .bp-act-card p {
  color: rgba(11, 29, 58, 0.72);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.batipro-page .bp-act-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 29, 58, 0.06);
  font-size: 13px;
  color: rgba(11, 29, 58, 0.62);
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}
body.batipro-page .bp-act-card:hover .bp-act-meta { color: var(--c-ocre); }

/* ============================================================
   4. PAGINATION / LOAD MORE
   ============================================================ */
body.batipro-page .bp-act-load-more {
  text-align: center;
  margin-top: 48px;
}

body.batipro-page .bp-act-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
body.batipro-page .bp-act-pagination a,
body.batipro-page .bp-act-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.14);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  font-variant-numeric: tabular-nums;
}
body.batipro-page .bp-act-pagination a:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
body.batipro-page .bp-act-pagination span.current {
  background: var(--c-ocre);
  color: #fff;
  border-color: var(--c-ocre);
}
body.batipro-page .bp-act-pagination .dots {
  border: none;
  background: transparent;
}

/* État "aucun article" */
body.batipro-page .bp-act-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(11, 29, 58, 0.62);
  font-size: 16px;
  font-style: italic;
}

/* Lien article entier (gros tap target mobile) */
body.batipro-page .bp-act-card-link {
  cursor: pointer;
}

@media (max-width: 760px) {
  body.batipro-page .bp-act-tab { padding: 14px 16px; font-size: 13px; }
  body.batipro-page .bp-act-card-body { padding: 18px 18px 22px; }
}
