/* ═══════════════════════════════════════════════════════════════════
   PAGE BLOG — Boolva (préfixe bg-)
   Bandeau 3 blocs : mise en avant 16:9 · informations · recherche.
   Puis la grille des publications.
═══════════════════════════════════════════════════════════════════ */
.bg-page {
  --bg-navy:     #13294B;
  --bg-navy-2:   #184280;
  --bg-navy-h:   #1a3a6e;
  --bg-yellow:   #F2BA3F;
  --bg-yellow-h: #e8ad28;
  --bg-ink:      #1a1a1a;
  --bg-muted:    #6B7A90;
  --bg-soft:     #F3F5F7;
  --bg-line:     #E4E8ED;
  --bg-font:     'Jost', 'Montserrat', sans-serif;
  font-family: var(--bg-font);
  background: #fff;
  padding-top: 100px;
}

.bg-wrap { width: 90%; margin: 0 auto; }
@media (max-width: 768px) { .bg-wrap { width: 100%; padding: 0 16px; } }

/* assets/css/styles.css pose `section { padding: 80px 0 }` sur TOUTES les
   balises <section> du site : sans ce garde-fou, 160 px de vide s'intercalaient
   entre le bandeau et la liste. Les espacements de la page sont posés bloc
   par bloc ci-dessous. */
.bg-page section { padding: 0; }

/* ═══ HERO ═══ */
.bg-hero { text-align: center; padding: 28px 0 26px; }
.bg-hero__title {
  margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
  font-size: clamp(34px, 5.4vw, 62px); color: var(--bg-navy-2);
  max-width: 14ch; margin-inline: auto;
}
.bg-crumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--bg-muted);
}
.bg-crumb a { color: var(--bg-muted); text-decoration: none; }
.bg-crumb a:hover { color: var(--bg-navy-2); }
.bg-crumb .sep { color: #C9CFD6; }
.bg-crumb .current {
  background: #EDF1F7; color: var(--bg-navy-2); font-weight: 500;
  border-radius: 999px; padding: 4px 14px;
}

/* ═══ BANDEAU 3 BLOCS ═══ */
.bg-banner {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px; margin: 10px 0 64px;
}
@media (max-width: 1100px) { .bg-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1100px) { .bg-banner__feature { grid-column: 1 / -1; } }
@media (max-width: 680px)  { .bg-banner { grid-template-columns: minmax(0, 1fr); } }

/* ─── Bloc 1 : mise en avant (articles ou publicités), format 16:9 ─── */
.bg-banner__feature {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: var(--bg-soft);
}
.bg-feat__slide {
  position: absolute; inset: 0; display: block; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity 520ms ease;
}
.bg-feat__slide.is-active { opacity: 1; visibility: visible; }
.bg-feat__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.02); transition: transform 6s linear;
}
.bg-feat__slide.is-active .bg-feat__img { transform: scale(1.08); }
.bg-feat__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,42,.05) 0%, rgba(10,22,42,.35) 45%, rgba(10,22,42,.82) 100%);
}
.bg-feat__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
@media (max-width: 680px) { .bg-feat__body { padding: 18px 18px; } }
.bg-feat__tag {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 5px 13px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-yellow); color: #1a1a1a;
}
.bg-feat__tag--ad { background: rgba(255,255,255,.92); color: var(--bg-navy); }
.bg-feat__tag svg { width: 13px; height: 13px; }
.bg-feat__title {
  margin: 0; color: #fff; font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(18px, 2vw, 28px); line-height: 1.2;
  max-width: 24ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.bg-feat__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 14px; font-weight: 600; color: #fff;
}
.bg-feat__cta span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-yellow); color: #1a1a1a;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms ease;
}
.bg-feat__slide:hover .bg-feat__cta span { transform: translateX(3px); }
.bg-feat__cta svg { width: 13px; height: 13px; }

/* Puces + flèches */
.bg-feat__dots {
  position: absolute; z-index: 3; right: 20px; bottom: 22px;
  display: flex; gap: 7px;
}
.bg-feat__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: all 180ms ease;
}
.bg-feat__dots button[aria-current="true"] { width: 22px; border-radius: 999px; background: var(--bg-yellow); }
.bg-feat__nav {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--bg-navy);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 180ms ease, background 140ms ease;
}
.bg-banner__feature:hover .bg-feat__nav { opacity: 1; }
.bg-feat__nav:hover { background: #fff; }
.bg-feat__nav svg { width: 17px; height: 17px; }
.bg-feat__nav--prev { left: 16px; }
.bg-feat__nav--next { right: 16px; }
@media (max-width: 680px) { .bg-feat__nav { display: none; } }

.bg-feat__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--bg-muted); font-size: 14px; text-align: center; padding: 20px;
}
.bg-feat__empty svg { width: 30px; height: 30px; opacity: .5; }

/* ─── Bloc 2 : informations ─── */
.bg-banner__info {
  background: var(--bg-yellow); border-radius: 20px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 16px;
  color: #17243a; min-width: 0;
}
.bg-info__text {
  margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 500;
}
.bg-info__stats {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding-top: 14px; border-top: 1px solid rgba(23,36,58,.18);
}
.bg-info__stat { display: flex; flex-direction: column; line-height: 1.1; }
.bg-info__stat b { font-size: 22px; font-weight: 700; }
.bg-info__stat span { font-size: 12px; font-weight: 500; opacity: .75; }
.bg-info__social { display: flex; gap: 8px; flex-wrap: wrap; }
.bg-info__social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-navy-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms ease, transform 140ms ease;
}
.bg-info__social a:hover { background: var(--bg-navy); transform: translateY(-2px); color: #fff; }
.bg-info__social svg { width: 15px; height: 15px; }

/* ─── Bloc 3 : recherche (reprend le design de .bv-search-wrap de l'accueil) ─── */
.bg-banner__search {
  border-radius: 20px; overflow: hidden; min-width: 0;
  /* Voile blanc par-dessus la texture : recadrée dans une colonne étroite,
     l'image vire au bleu soutenu et le texte marine devenait illisible. */
  background:
    linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.62)),
    #E8F0FB url('../img/background_claire.png') center/cover no-repeat;
  padding: 24px 20px; display: flex; flex-direction: column; gap: 14px;
}
.bg-search__label {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--bg-navy-2); line-height: 1.3;
}
/* Styles repris de assets/css/homepage.css (.bv-search-form), portés ici pour
   que la page blog ne dépende pas de la feuille de la page d'accueil. */
.bg-page .bv-search-wrap { position: relative; width: 100%; flex-shrink: 0; }
.bg-page .bv-search-form {
  position: relative; width: 100%; height: 56px; flex-shrink: 0;
  border: 2px solid #184280; border-radius: 50px; background: #fff;
  overflow: hidden; box-sizing: border-box;
}
.bg-page .bv-search-form input {
  width: 100%; height: 100%; padding: 0 56px 0 24px;
  border: 0 !important; outline: 0 !important; box-shadow: none; background: transparent;
  font-family: var(--bg-font); font-size: 15px; color: var(--bg-navy-2) !important;
  box-sizing: border-box; margin: 0 !important;
  -webkit-appearance: none; appearance: none;
}
.bg-page .bv-search-form input::placeholder { color: var(--bg-muted) !important; opacity: 1 !important; }
.bg-page .bv-search-form:focus-within { box-shadow: 0 0 0 3px rgba(24,66,128,.18); }
.bg-page .bv-search-form input::-webkit-search-decoration,
.bg-page .bv-search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bg-page .bv-search-form button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 2px solid #184280; border-radius: 50%;
  background: var(--bg-yellow); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background 140ms ease;
}
.bg-page .bv-search-form button:hover { background: var(--bg-yellow-h); }
.bg-page .bv-search-form button:active { background: #d99e1c; }
.bg-page .bv-search-form button svg { width: 18px; height: 18px; display: block; }

.bg-search__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.bg-search__tags a {
  font-size: 12.5px; font-weight: 500; text-decoration: none;
  background: rgba(24,66,128,.08); color: var(--bg-navy-2);
  border-radius: 999px; padding: 5px 12px;
  transition: background 140ms ease, color 140ms ease;
}
.bg-search__tags a:hover, .bg-search__tags a.is-active { background: var(--bg-navy-2); color: #fff; }

/* ═══ LISTE DES PUBLICATIONS ═══ */
.bg-list { padding: 0 0 90px; }
.bg-list__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 30px;
}
.bg-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  background: #EDF1F7; color: var(--bg-navy-2);
  border-radius: 999px; padding: 6px 15px; font-size: 13px; font-weight: 500;
}
.bg-eyebrow svg { width: 15px; height: 15px; }
.bg-list__title {
  margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--bg-navy-2); max-width: 12ch;
}
.bg-list__aside { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bg-list__aside p { margin: 0; max-width: 28ch; font-size: 14px; line-height: 1.45; color: var(--bg-muted); }
.bg-btn-navy {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--bg-navy-2); color: #fff !important; text-decoration: none !important;
  border-radius: 999px; padding: 12px 14px 12px 24px;
  font-size: 15px; font-weight: 600;
  transition: background 160ms ease;
}
.bg-btn-navy:hover { background: var(--bg-navy-h); }
.bg-btn-navy span {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.bg-btn-navy svg { width: 14px; height: 14px; }

/* ─── Filtres catégories ─── */
.bg-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bg-cats a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--bg-line); color: #445061; background: #fff;
  border-radius: 999px; padding: 8px 17px;
  transition: all 140ms ease;
}
.bg-cats a:hover { border-color: var(--bg-navy-2); color: var(--bg-navy-2); }
.bg-cats a.is-active { background: var(--bg-navy-2); border-color: var(--bg-navy-2); color: #fff; }

/* ─── Grille ─── */
.bg-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
@media (max-width: 991px) { .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bg-grid { grid-template-columns: minmax(0, 1fr); } }

.bg-card {
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: 18px; overflow: hidden; background: var(--bg-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.bg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(19,41,75,.55); }
.bg-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #E7EBEF;
}
.bg-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 420ms ease;
}
.bg-card:hover .bg-card__img { transform: scale(1.05); }
.bg-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-card__cat {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: rgba(255,255,255,.94); color: var(--bg-navy);
  border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 600;
}
.bg-card__body {
  flex: 1; padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.bg-card__date {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 13px;
  font-size: 12.5px; font-weight: 500;
}
.bg-card__date svg { width: 13px; height: 13px; }
.bg-card__title {
  margin: 0; font-size: 17.5px; font-weight: 600; line-height: 1.28; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bg-card__meta { margin-top: auto; padding-top: 4px; font-size: 12.5px; opacity: .78; }

/* Alternance des couleurs du bandeau, comme la maquette */
.bg-card--navy   .bg-card__body { background: var(--bg-navy); color: #fff; }
.bg-card--yellow .bg-card__body { background: var(--bg-yellow); color: #17243a; }
.bg-card--navy   .bg-card__title { color: #fff; }
.bg-card--yellow .bg-card__title { color: #17243a; }

/* ─── Aucun résultat ─── */
.bg-empty {
  padding: 70px 24px; text-align: center; color: var(--bg-muted);
  background: var(--bg-soft); border-radius: 20px;
}
.bg-empty h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--bg-navy-2); }
.bg-empty p  { margin: 0 0 18px; font-size: 14.5px; }

/* ─── Pagination ─── */
.bg-pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 46px;
}
.bg-pagination a, .bg-pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--bg-line); background: #fff;
  color: #445061; font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: all 140ms ease;
}
.bg-pagination a:hover { border-color: var(--bg-navy-2); color: var(--bg-navy-2); }
.bg-pagination .is-current { background: var(--bg-navy-2); border-color: var(--bg-navy-2); color: #fff; }
.bg-pagination .is-gap { border: 0; background: transparent; min-width: 22px; }
.bg-pagination svg { width: 15px; height: 15px; }
