/* Reserved for WordPress-specific overrides. */
:root {
  --b4y-pink: #B1264F;
  --b4y-pink-dark: #8C1E3F;
  --b4y-ink: #111827;
  --b4y-muted: #626b7a;
  --b4y-line: #ececf3;
  --b4y-soft: #f7f7fb;
  --b4y-radius: 14px;
  --b4y-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  /* Body copy (editorial paragraphs); UI text keeps its own sizes. */
  --b4y-text-body: 18px;
  --b4y-text-body-lh: 1.6;
}

/* Breadcrumb: a quiet, consistent orientation aid below the global header. */
.b4y-breadcrumb-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  border-top: 1px solid rgba(17, 24, 39, .04);
  border-bottom: 1px solid var(--b4y-line);
  background: rgba(255, 255, 255, .96);
}
.b4y-breadcrumb {
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 14px;
  line-height: 1.5;
}
.b4y-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.b4y-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--b4y-muted);
}
.b4y-breadcrumb li + li::before {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #9ca3af;
  border-right: 1.5px solid #9ca3af;
  content: "";
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.b4y-breadcrumb a {
  color: #4b5563;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.b4y-breadcrumb a:hover {
  color: var(--b4y-pink-dark);
  text-decoration-color: currentColor;
}
.b4y-breadcrumb a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(177, 38, 79, .28);
  outline-offset: 3px;
}
.b4y-breadcrumb-current {
  overflow: hidden;
  max-width: min(52vw, 560px);
  color: var(--b4y-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .b4y-breadcrumb {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13px;
  }
  .b4y-breadcrumb ol {
    flex-wrap: wrap;
    row-gap: 4px;
    overflow: visible;
  }
  .b4y-breadcrumb li { flex: 0 1 auto; min-width: 0; }
  .b4y-breadcrumb-current { max-width: none; white-space: normal; overflow-wrap: anywhere; }
}

.logo .custom-logo-link,
.logo .custom-logo-link img,
.logo img.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 62px;
}
.empty-demo-message {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}
.single-restaurant-hero {
  min-height: 420px;
}
.single-restaurant-card {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.single-restaurant-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 44px);
}
.single-restaurant-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.single-restaurant-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.single-restaurant-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--soft);
}
@media (max-width: 760px) {
  .single-restaurant-meta { grid-template-columns: 1fr; }
}

/* Patch 1.3.1: homepage must use the same full-width system as restaurant pages. */
body.b4y-home-page {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fbf9fd 54%, #fff 100%);
}
body.b4y-home-page .site-header {
  width: 100%;
}
body.b4y-home-page .b4y-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.b4y-home-page .b4y-home-container {
  width: min(calc(100% - 40px), 1210px);
  margin-left: auto;
  margin-right: auto;
}
body.b4y-home-page .b4y-home-hero {
  width: 100%;
  min-height: 560px;
  background-size: cover;
  background-position: center right;
}
body.b4y-home-page .site-footer {
  margin-top: 0;
}
/* Desktop-only zoom fix for the slider: at 560px the section is far shorter
   than wide (a ~3.4:1 box on a 1920px screen), forcing "cover" to scale the
   least-cropped source up a lot and crop most of its height away. Growing
   the box with viewport width keeps that mismatch — and the resulting zoom
   — in check on wide screens, without touching tablet/mobile (untouched
   below 1025px) or the focal points, image source, copy or CTAs. */
@media (min-width: 1025px) {
  body.b4y-home-page .b4y-home-hero.b4y-hero-slider {
    min-height: clamp(560px, 45vw, 760px);
  }

  /* Full-bleed cover on the taller box above; only the crop's anchor point
     can change here, via an optional per-slide desktop override of the
     focal point (--hero-focus-desktop, from _b4y_slide_focal_point_desktop)
     so a subject can stay fully framed on the taller desktop box without
     touching the shared tablet/mobile focal point. */
  .b4y-hero-slide:not(.b4y-hero-slide--logo) {
    background-position: var(--hero-focus-desktop, var(--hero-focus, center));
  }
}
@media (min-width: 801px) {
  .b4y-main-header .header-inner {
    gap: 22px;
  }
  .b4y-main-header .main-nav {
    gap: 20px;
    font-size: .72rem;
    letter-spacing: .04em;
  }
  .b4y-main-header .header-actions {
    gap: 12px;
  }
}
@media (max-width: 1180px) and (min-width: 801px) {
  .b4y-main-header .header-actions {
    display: none;
  }
  .b4y-main-header .main-nav {
    gap: 14px;
    font-size: .68rem;
  }
}

/* --- Icône de recherche header --- */
.b4y-header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #393542;
  transition: color .2s ease, background .2s ease;
  flex-shrink: 0;
}
.b4y-header-search svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.b4y-header-search:hover {
  color: var(--b4y-pink);
  background: rgba(177, 38, 79, .07);
}
/* Rendre l'icône de recherche visible même quand header-actions est masquée */
@media (max-width: 1180px) and (min-width: 801px) {
  .b4y-main-header .header-actions {
    display: flex;
    gap: 0;
  }
  .b4y-main-header .header-actions > *:not(.b4y-header-search):not(.b4y-language-switcher) {
    display: none;
  }
}
/* Sur mobile, l'icône de recherche n'est pas affichée (le menu hamburger gère la nav) */
@media (max-width: 800px) {
  .b4y-main-header .header-actions {
    display: none;
  }
}
@media (max-width: 680px) {
  body.b4y-home-page .b4y-home-container {
    width: min(calc(100% - 28px), 1210px);
  }
  body.b4y-home-page .b4y-home-hero {
    min-height: 600px;
  }
}

/* Guides: image-first editorial archive and detailed reading layout. */
.b4y-guides-hero {
  padding: clamp(78px, 10vw, 132px) 0 76px;
  color: #fff;
  background: url('../images/client-2026/benin-landscape.webp') center/cover;
}
.b4y-guides-hero h1 { max-width: 850px; margin: 0 0 18px; color: #fff; font-size: clamp(40px, 6vw, 70px); line-height: 1.02; }
.b4y-guides-hero > div > p:last-child { max-width: 720px; margin: 0; font-size: 18px; line-height: 1.65; }
.b4y-guides-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.b4y-guides-toolbar h2 { margin: 0; font-size: 32px; }
.b4y-guides-toolbar form { display: flex; width: min(100%, 430px); }
.b4y-guides-toolbar input { min-width: 0; flex: 1; min-height: 48px; border: 1px solid #dfe2e9; border-radius: 9px 0 0 9px; padding: 0 15px; font-size: 16px; }
.b4y-guides-toolbar button { min-height: 48px; border: 0; border-radius: 0 9px 9px 0; padding: 0 20px; background: #B1264F; color: #fff; font-weight: 800; }
.b4y-guides-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.b4y-guide-editorial-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e7e9ef; border-radius: 18px; background: #fff; box-shadow: 0 16px 42px rgba(15, 23, 42, .08); }
.b4y-guide-editorial-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eef0f3; }
.b4y-guide-editorial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.b4y-guide-editorial-media:hover img { transform: scale(1.035); }
.b4y-guide-editorial-media > span, .b4y-guide-single-image > span { position: absolute; right: 14px; bottom: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); color: #8C1E3F; font-size: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.b4y-guide-editorial-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 23px; }
.b4y-guide-editorial-body h2 { margin: 8px 0 12px; font-size: 23px; line-height: 1.2; }
.b4y-guide-editorial-body h2 a { color: #111827; }
.b4y-guide-editorial-body > p:not(.b4y-guide-type) { margin: 0 0 18px; color: #566070; }
.b4y-guide-type { margin: 0; color: #8C1E3F; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.b4y-guide-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.b4y-guide-tags li { border-radius: 999px; background: #f8eaf1; color: #6E1831; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.b4y-guide-read { margin-top: auto; min-height: 46px; }
.b4y-guide-single-hero { padding: 64px 0 82px; background: linear-gradient(135deg, #111827, #28374e); color: #fff; }
.b4y-guide-single-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 46%); gap: 52px; align-items: center; }
.b4y-guide-single-hero h1 { max-width: 780px; margin: 16px 0; color: #fff; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.b4y-guide-single-hero p:not(.b4y-pill) { max-width: 720px; font-size: 18px; line-height: 1.65; }
.b4y-guide-single-hero .back-link { display: inline-block; margin-bottom: 22px; color: #fff; font-weight: 750; }
.b4y-guide-single-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.b4y-guide-single-image img { width: 100%; height: 100%; object-fit: cover; }
.b4y-guide-content-layout { display: grid; width: min(calc(100% - 40px), 1120px); margin-inline: auto; grid-template-columns: minmax(0, 760px) 290px; gap: 52px; align-items: start; }
.b4y-guide-content { color: #283245; font-size: 17px; line-height: 1.78; }
.b4y-guide-content h2 { margin: 34px 0 14px; color: #111827; font-size: 30px; line-height: 1.2; }
.b4y-guide-content h3 { margin: 28px 0 12px; color: #111827; font-size: 23px; }
.b4y-guide-summary { position: sticky; top: 110px; border: 1px solid #eadbe3; border-radius: 16px; background: #fff8fb; padding: 24px; }
.b4y-guide-summary h2 { margin: 0 0 12px; font-size: 22px; }
.b4y-guide-summary p { color: #566070; font-size: 15px; line-height: 1.6; }
.b4y-guide-summary .b4y-btn { margin-top: 12px; }
.b4y-guide-related { background: #faf8fb; }
.b4y-lightbox { position: fixed; inset: 0; width: min(88vw, 1080px); max-width: 1080px; height: auto; max-height: 86dvh; margin: auto; overflow: hidden; border: 0; border-radius: 18px; padding: 48px 64px 24px; background: #10131a; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.b4y-lightbox::backdrop { background: rgba(5, 8, 14, .88); }
.b4y-lightbox figure { display: grid; max-height: calc(86dvh - 72px); margin: 0; grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
.b4y-lightbox img { display: block; max-width: 100%; max-height: calc(86dvh - 122px); width: auto; height: auto; margin: auto; object-fit: contain; }
.b4y-lightbox figcaption { min-height: 38px; padding: 14px 8px 0; color: #f4f5f7; text-align: center; font-size: 15px; line-height: 1.45; }
.b4y-lightbox button { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; line-height: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(16,19,26,.78); color: #fff; font-size: 28px; cursor: pointer; }
.b4y-lightbox-close { top: 12px; right: 12px; }
.b4y-lightbox-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.b4y-lightbox-next { top: 50%; right: 10px; transform: translateY(-50%); }
.b4y-lightbox button svg { display: block; pointer-events: none; }
.b4y-lightbox button:focus-visible, [data-b4y-lightbox]:focus-visible { outline: 3px solid #E8759A; outline-offset: 3px; }
@media (max-width: 980px) {
  .b4y-guides-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b4y-guide-single-hero-grid, .b4y-guide-content-layout { grid-template-columns: 1fr; }
  .b4y-guide-single-image { max-width: 720px; }
  .b4y-guide-summary { position: static; }
}
@media (max-width: 620px) {
  .b4y-guides-toolbar { align-items: stretch; flex-direction: column; }
  .b4y-guides-toolbar form { width: 100%; }
  .b4y-guides-toolbar .b4y-filter-bar input { border-radius: 9px; }
  .b4y-guides-toolbar .b4y-filter-bar button { border-radius: 8px; }
  .b4y-guides-editorial-grid { grid-template-columns: 1fr; }
  .b4y-guide-editorial-media { aspect-ratio: 3 / 2; }
  .b4y-guide-single-hero { padding: 46px 0 58px; }
  .b4y-guide-single-hero-grid { gap: 30px; }
  .b4y-guide-single-hero p:not(.b4y-pill) { font-size: 16px; }
  .b4y-guide-content-layout { width: min(calc(100% - 28px), 1120px); }
  .b4y-lightbox { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border-radius: 14px; padding: 52px 46px 20px; }
  .b4y-lightbox figure { max-height: calc(100dvh - 104px); }
  .b4y-lightbox img { max-height: calc(100dvh - 160px); }
  .b4y-lightbox figcaption { padding-top: 12px; font-size: 14px; }
  .b4y-lightbox-close { top: 8px; right: 8px; }
  .b4y-lightbox-prev { left: 4px; }
  .b4y-lightbox-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .b4y-guide-editorial-media img { transition: none; } }

/* Patch 1.3.2: professional full-width CPT archives/singles outside GeneratePress wrapper. */
body.b4y-portal-page {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fbf9fd 56%, #fff 100%);
  color: #141827;
}
body.b4y-portal-page .site-header.b4y-main-header,
body.b4y-portal-page .site-footer.b4y-site-footer {
  width: 100%;
}
body.b4y-portal-page .b4y-directory-page,
body.b4y-portal-page .b4y-directory-single {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.b4y-portal-page .b4y-home-container {
  width: min(calc(100% - 40px), 1210px);
  margin-left: auto;
  margin-right: auto;
}
.b4y-portal-hero,
.b4y-portal-single-hero {
  min-height: 460px;
  background-size: cover;
  background-position: center right;
}
.b4y-portal-hero:before,
.b4y-portal-single-hero:before {
  display: none;
}
.b4y-portal-hero h1,
.b4y-portal-hero p:not(.b4y-pill),
.b4y-portal-hero .b4y-pill {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}
.b4y-portal-hero .b4y-hero-text-panel {
  display: inline-block;
  max-width: min(760px, 100%);
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(20, 24, 32, .46);
  color: #fff;
}
.b4y-portal-hero .b4y-hero-text-panel h1,
.b4y-portal-hero .b4y-hero-text-panel .b4y-category-breadcrumbs {
  color: #fff;
}
.b4y-portal-hero .b4y-hero-text-panel h1 {
  margin-bottom: 0;
}
.b4y-portal-hero .b4y-hero-text-panel .b4y-hero-description {
  margin-top: 12px;
}
.b4y-portal-hero .b4y-hero-text-panel :last-child {
  margin-bottom: 0;
}
.b4y-portal-hero h1,
.b4y-portal-single-hero h1 {
  font-size: clamp(46px, 5vw, 76px);
  letter-spacing: -.055em;
  max-width: 850px;
}
.b4y-portal-hero p:not(.b4y-pill),
.b4y-portal-single-hero p:not(.b4y-pill) {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}
.b4y-portal-search .b4y-search-card {
  grid-template-columns: 1.4fr 1fr 1fr 150px;
  border-radius: 16px;
  padding: 18px;
}
.b4y-directory-section {
  padding-top: 58px;
}
.b4y-portal-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
}
.b4y-portal-row {
  grid-template-columns: 238px minmax(0, 1fr);
  padding: 16px;
  border-radius: 20px;
}
.b4y-portal-row .b4y-directory-thumb {
  min-height: 175px;
}
.b4y-portal-row .b4y-directory-info {
  padding: 4px 4px 4px 0;
}
.b4y-portal-row .b4y-directory-title h2 {
  font-size: 24px;
  letter-spacing: -.03em;
}
.b4y-portal-row .b4y-directory-info p {
  display: flex;
  gap: 8px;
  align-items: center;
}
.b4y-portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.b4y-portal-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: #f1edf4;
  color: #354052;
  font-weight: 700;
  font-size: 12px;
}
.b4y-portal-map {
  top: 22px;
  padding: 16px;
  border-radius: 22px;
}
.b4y-portal-map img {
  aspect-ratio: 1 / 1.03;
  object-fit: cover;
}
.b4y-map-caption {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  color: #485063;
}
.b4y-map-caption strong {
  color: #141827;
  font-size: 16px;
}
.b4y-map-caption span {
  font-size: 13px;
}
.back-link {
  display: inline-flex;
  color: rgba(255,255,255,.9);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 18px;
}
.b4y-detail-badge {
  display: inline-flex;
  margin: 0 0 10px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.42);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.b4y-detail-panel {
  overflow: hidden;
  padding: 0 0 24px;
}
.b4y-detail-panel-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}
.b4y-detail-panel strong,
.b4y-detail-panel p {
  margin-left: 24px;
  margin-right: 24px;
}
.b4y-hero-address svg,
.hero-rating-line svg {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}
.b4y-single-section {
  padding-top: 58px;
}
.b4y-single-richtext {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.75;
}
.b4y-single-chips {
  margin-bottom: 24px;
}
.b4y-footer-text {
  color: rgba(255,255,255,.78);
  max-width: 280px;
  line-height: 1.65;
}
@media (max-width: 980px) {
  .b4y-portal-layout,
  .b4y-single-hero-inner {
    grid-template-columns: 1fr;
  }
  .b4y-portal-search .b4y-search-card {
    grid-template-columns: 1fr 1fr;
  }
  .b4y-portal-map {
    position: static;
  }
}
@media (max-width: 680px) {
  body.b4y-portal-page .b4y-home-container {
    width: min(calc(100% - 28px), 1210px);
  }
  .b4y-portal-hero,
  .b4y-portal-single-hero {
    min-height: 520px;
  }
  .b4y-portal-search .b4y-search-card,
  .b4y-portal-row {
    grid-template-columns: 1fr;
  }
  .b4y-portal-row .b4y-directory-thumb {
    min-height: 220px;
  }
}


/* Patch 1.3.3: hotfix affichage SVG / hero CPT / boutons détails.
   Cause: les SVG inline hors .b4y-home prenaient leur taille HTML par défaut,
   ce qui déformait les boutons et les pages détail. */
body.b4y-portal-page svg,
body.b4y-directory-single-page svg,
body.b4y-directory-archive-page svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}
body.b4y-portal-page .rating-stars svg,
body.b4y-portal-page .b4y-directory-title strong svg,
body.b4y-portal-page .b4y-single-panel strong svg,
body.b4y-portal-page .b4y-detail-panel strong svg {
  fill: #f7b500;
  stroke: #f7b500;
  color: #f7b500;
}
body.b4y-portal-page .b4y-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
body.b4y-portal-page .b4y-hero-actions .b4y-btn {
  width: auto;
  min-width: 178px;
  min-height: 54px;
  padding: 0 24px;
  white-space: nowrap;
  line-height: 1;
  border-radius: 9px;
  text-decoration: none;
}
body.b4y-portal-page .b4y-hero-actions .b4y-btn-primary {
  background: linear-gradient(135deg, #B1264F, #8C1E3F);
  color: #fff;
}
body.b4y-portal-page .b4y-hero-actions .b4y-btn-light {
  background: #fff;
  color: #172033;
  border: 1px solid rgba(255,255,255,.7);
}
body.b4y-portal-page .b4y-portal-single-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 38px 0;
}
body.b4y-portal-page .b4y-single-hero-inner {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}
body.b4y-portal-page .b4y-portal-single-hero h1 {
  margin-top: 14px;
  margin-bottom: 14px;
  max-width: 760px;
}
body.b4y-portal-page .b4y-detail-panel {
  max-width: 360px;
  justify-self: end;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.55);
}
body.b4y-portal-page .b4y-detail-panel-image {
  height: 190px;
  object-fit: cover;
}
body.b4y-portal-page .b4y-pill,
body.b4y-portal-page .b4y-detail-badge {
  vertical-align: middle;
}
body.b4y-portal-page .back-link {
  margin-right: 10px;
}
body.b4y-portal-page .b4y-directory-section {
  padding-bottom: 62px;
}
body.b4y-portal-page .b4y-directory-map a svg,
body.b4y-portal-page .b4y-section-head a svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}
@media (max-width: 980px) {
  body.b4y-portal-page .b4y-single-hero-inner {
    grid-template-columns: 1fr;
  }
  body.b4y-portal-page .b4y-detail-panel {
    justify-self: start;
    max-width: 420px;
    width: 100%;
  }
}
@media (max-width: 680px) {
  body.b4y-portal-page .b4y-portal-single-hero {
    min-height: auto;
    padding: 46px 0 34px;
  }
  body.b4y-portal-page .b4y-hero-actions .b4y-btn {
    width: 100%;
  }
}


/* QA 1.3.4: consolidation anti-regression before client demo. */
.b4y-main-header .main-nav li {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.b4y-main-header .main-nav li a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.b4y-main-header .main-nav ul {
  display: flex;
  align-items: center;
  gap: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.b4y-portal-page .b4y-btn,
body.b4y-home-page .b4y-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}
body.b4y-portal-page .b4y-btn svg,
body.b4y-home-page .b4y-btn svg,
body.b4y-portal-page .b4y-search-card svg,
body.b4y-home-page .b4y-search-card svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
}

.b4y-theme-listing-cta {
	margin-top: 20px;
}

.b4y-results-summary {
	margin: 0 0 20px;
	color: #4b5563;
	font-weight: 700;
}

.b4y-results-summary a {
	color: var(--b4y-pink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.b4y-portal-page .b4y-directory-map a,
body.b4y-portal-page .b4y-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.b4y-portal-page .b4y-directory-map a:after {
  line-height: 1;
}
body.b4y-portal-page .b4y-detail-panel-image,
body.b4y-portal-page .b4y-directory-thumb img,
body.b4y-home-page .b4y-address-media img,
body.b4y-home-page .b4y-rubrique-card img {
  display: block;
}
body.b4y-portal-page .b4y-portal-single-hero .b4y-home-container,
body.b4y-portal-page .b4y-portal-hero .b4y-home-container {
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .b4y-main-header .main-nav ul,
  .b4y-main-header .main-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Patch 1.4.3: aligned editorial posts and static pages with the Benin4you shell. */
body.b4y-article-page,
body.b4y-static-page {
  background: linear-gradient(180deg, #fff 0%, #fbf9fd 58%, #fff 100%);
}
body.b4y-article-page .b4y-article-main,
body.b4y-static-page .b4y-static-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.b4y-article-hero,
.b4y-static-hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center right;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.b4y-article-hero:before,
.b4y-static-hero:before {
  display: none;
}
.b4y-article-hero-inner,
.b4y-static-hero .b4y-home-container {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}
.b4y-article-hero h1,
.b4y-static-hero h1 {
  max-width: 860px;
  margin: 12px 0 16px;
  color: #fff;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 900;
}
.b4y-static-hero p:not(.b4y-pill),
.b4y-article-meta {
  max-width: 720px;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.6;
}
.b4y-static-hero .b4y-home-container,
.b4y-article-hero .b4y-article-hero-inner,
.b4y-guides-hero .b4y-home-container,
.b4y-photo-stories-hero .b4y-home-container {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}
.restaurant-detail-hero::after {
  display: none;
}
.b4y-annuaire-hero::before {
  display: none;
}
.b4y-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.b4y-article-meta span {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}
.b4y-article-section {
  margin-top: -54px;
  position: relative;
  z-index: 2;
}
.b4y-article-container {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
}
.b4y-article-content {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15,23,42,.08);
  padding: 48px;
}
.b4y-article-lead {
  margin: 0 0 28px;
  color: #384154;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 650;
}
.b4y-article-richtext {
  color: #263044;
  font-size: 17px;
  line-height: 1.78;
}
.b4y-article-richtext > *:first-child {
  margin-top: 0;
}
.b4y-article-richtext h2,
.b4y-article-richtext h3,
.b4y-article-richtext h4 {
  margin: 32px 0 14px;
  color: #141827;
  line-height: 1.18;
  letter-spacing: 0;
}
.b4y-article-richtext p,
.b4y-article-richtext ul,
.b4y-article-richtext ol {
  margin-bottom: 18px;
}
.b4y-article-richtext a {
  color: #B1264F;
  font-weight: 750;
}
.b4y-article-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.b4y-article-related {
  padding-top: 10px;
}
.b4y-article-related-grid .b4y-guide-card {
  height: 100%;
}
.b4y-shared-partner-cta {
  padding-top: 24px;
}
.b4y-contact-section,
.b4y-partner-benefits-section,
.b4y-process-section,
.b4y-partner-request-section {
  background: transparent;
}
.b4y-contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}
.b4y-contact-info {
  display: grid;
  gap: 16px;
}
.b4y-contact-card,
.b4y-contact-form,
.b4y-partner-benefit,
.b4y-step-card {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15,23,42,.065);
}
.b4y-contact-card {
  padding: 24px;
}
.b4y-contact-card > span,
.b4y-partner-benefit > span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff0f7;
  color: #B1264F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.b4y-contact-card h2,
.b4y-form-head h2,
.b4y-partner-benefit h3,
.b4y-step-card h3 {
  margin: 0 0 8px;
  color: #141827;
  letter-spacing: 0;
}
.b4y-contact-card p,
.b4y-form-head p,
.b4y-partner-benefit p,
.b4y-step-card p {
  margin: 0;
  color: #5b6472;
  line-height: 1.6;
}
.b4y-contact-card a {
  color: #263044;
  font-weight: 800;
  text-decoration: none;
}
.b4y-contact-form {
  padding: 30px;
}
.b4y-form-head {
  margin-bottom: 22px;
}
.b4y-contact-form label {
  display: block;
  margin: 14px 0 7px;
  color: #303849;
  font-size: 13px;
  font-weight: 800;
}
.b4y-contact-form input,
.b4y-contact-form textarea {
  width: 100%;
  border: 1px solid #e2e5ee;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  padding: 12px 14px;
  min-height: 48px;
}
.b4y-contact-form textarea {
  resize: vertical;
}
.b4y-contact-form input:focus,
.b4y-contact-form textarea:focus {
  outline: 3px solid rgba(177, 38, 79,.16);
  border-color: #B1264F;
}
.b4y-contact-form .wpcf7-form-control-wrap {
  display: block;
}
.b4y-contact-form .wpcf7-not-valid {
  border-color: #b42318;
}
.b4y-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b42318;
  font-size: 13px;
}
.b4y-contact-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.5;
}
.b4y-contact-form .b4y-btn {
  border: 0;
  margin-top: 20px;
  cursor: pointer;
}
button.b4y-btn-primary,
input[type="submit"].b4y-btn-primary,
.b4y-btn.b4y-btn-primary,
.b4y-search-card button,
.filters button.btn-filter {
  background: linear-gradient(135deg, var(--b4y-pink), var(--b4y-pink-dark)) !important;
  color: #fff !important;
  border: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
button.b4y-btn-primary:hover,
input[type="submit"].b4y-btn-primary:hover,
.b4y-btn.b4y-btn-primary:hover,
.b4y-search-card button:hover,
.filters button.btn-filter:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px rgba(177, 38, 79, 0.26) !important;
  filter: brightness(1.08) !important;
}
button.b4y-btn-primary:active,
input[type="submit"].b4y-btn-primary:active,
.b4y-btn.b4y-btn-primary:active,
.b4y-search-card button:active {
  transform: translateY(0) !important;
  box-shadow: 0 8px 16px rgba(177, 38, 79, 0.16) !important;
}
.b4y-btn:focus,
.btn:focus,
.b4y-search-card button:focus {
  outline: none;
}
.b4y-btn:focus-visible,
.btn:focus-visible,
.b4y-search-card button:focus-visible {
  outline: 3px solid var(--b4y-pink, #B1264F) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(177, 38, 79, 0.2) !important;
}
.b4y-partner-benefits,
.b4y-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.b4y-partner-benefit,
.b4y-step-card {
  padding: 26px;
}
.b4y-step-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #B1264F, #6E1831);
  color: #fff;
  font-size: 13px;
}
.b4y-partner-request-form {
  max-width: 920px;
  margin-inline: auto;
}
.b4y-partner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.b4y-partner-form-grid p {
  margin: 0;
}
.b4y-partner-form-grid .b4y-optional {
  color: #667085;
  font-weight: 500;
}
.b4y-partner-form-grid .b4y-consent-field {
  margin-top: 14px;
}
.b4y-partner-form-grid .b4y-consent-field .wpcf7-list-item {
  margin: 0;
}
.b4y-partner-form-grid .b4y-consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}
.b4y-partner-form-grid .b4y-consent-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin-top: 1px;
  padding: 0;
}
.b4y-field-full {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .b4y-contact-layout,
  .b4y-partner-benefits,
  .b4y-steps {
    grid-template-columns: 1fr;
  }
  .b4y-article-hero h1,
  .b4y-static-hero h1 {
    font-size: 42px;
  }
}
@media (max-width: 680px) {
  .b4y-article-hero,
  .b4y-static-hero {
    min-height: auto;
  }
  .b4y-article-hero-inner,
  .b4y-static-hero .b4y-home-container {
    padding: 52px 0;
  }
  .b4y-article-hero h1,
  .b4y-static-hero h1 {
    font-size: 34px;
  }
  .b4y-article-container {
    width: min(calc(100% - 28px), 920px);
  }
  .b4y-article-section {
    margin-top: -28px;
  }
  .b4y-article-content,
  .b4y-contact-form,
  .b4y-partner-benefit,
  .b4y-step-card {
    padding: 22px;
  }
  .b4y-partner-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Explorez le Benin - Capture 1 Visual Card Style transformation */
.b4y-rubriques-grid-v2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2 {
  display: block !important;
  position: relative !important;
  height: 300px !important;
  min-height: 300px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
  border: 0 !important;
  background: #eef0f4 !important;
  transform: none !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2:after {
  display: none !important;
}

.b4y-rubrique-card-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  text-decoration: none !important;
}

.b4y-rubrique-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
}

.b4y-rubrique-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.b4y-rubrique-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, rgba(9, 15, 29, 0) 0%, rgba(9, 15, 29, 0) 56%, rgba(9, 15, 29, 0.2) 70%, rgba(9, 15, 29, 0.36) 84%, rgba(9, 15, 29, 0.44) 100%) !important;
  z-index: 2 !important;
}

.b4y-rubrique-badge {
  position: absolute !important;
  top: 22px !important;
  left: 22px !important;
  z-index: 3 !important;
}

.b4y-rubrique-badge .b4y-card-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--b4y-pink, #B1264F) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(177, 38, 79, 0.32) !important;
  margin: 0 !important;
}

.b4y-rubrique-badge .b4y-card-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.2px !important;
}

.b4y-rubrique-info {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 24px 26px !important;
  z-index: 3 !important;
  color: #fff !important;
  box-sizing: border-box !important;
}

.b4y-rubrique-info h3 {
  margin: 0 0 6px !important;
  font-size: clamp(20px, 2.5vw, 23px) !important;
  font-weight: 850 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  text-shadow: 0 1px 2px rgba(9, 15, 29, 0.3) !important;
}

.b4y-rubrique-desc-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.b4y-rubrique-desc {
  margin: 0 !important;
  font-size: 14.5px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 2px rgba(9, 15, 29, 0.3) !important;
}

.b4y-rubrique-arrow-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--b4y-pink, #B1264F) !important;
  color: #fff !important;
  flex-shrink: 0 !important;
  box-shadow: 0 6px 14px rgba(177, 38, 79, 0.28) !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.b4y-rubrique-arrow-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2.5px !important;
  fill: none !important;
  stroke: currentColor !important;
}

/* Hover/Active states */
.b4y-rubrique-card-v2:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14) !important;
}

.b4y-rubrique-card-v2:hover .b4y-rubrique-bg img {
  transform: scale(1.06) !important;
  filter: saturate(1.05) !important;
}

.b4y-rubrique-card-v2:hover .b4y-rubrique-arrow-btn {
  transform: translateX(4px) !important;
  background-color: var(--b4y-pink-dark, #8C1E3F) !important;
}

.b4y-rubrique-card-v2:active {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1) !important;
}

.b4y-rubrique-card-link:focus-visible {
  outline: 3px solid var(--b4y-pink, #B1264F) !important;
  outline-offset: 3px !important;
  border-radius: 22px !important;
}

/* Responsiveness adjustments */
@media (max-width: 860px) {
  .b4y-rubriques-grid-v2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 680px) {
  .b4y-rubriques-grid-v2 .b4y-rubrique-card-v2 {
    height: 240px !important;
    min-height: 240px !important;
    border-radius: 18px !important;
  }
  .b4y-rubrique-card-link:focus-visible {
    border-radius: 18px !important;
  }
  .b4y-rubrique-info {
    padding: 20px 22px !important;
  }
  .b4y-rubrique-info h3 {
    font-size: 20px !important;
  }
  .b4y-rubrique-desc {
    font-size: 13.5px !important;
  }
}

/* Home Slider System Styles */
.b4y-hero-slider {
  position: relative;
  overflow: hidden;
}

/* Aucun voile ni degrade sur la photo : seul le bloc de texte a un fond (voir plus bas). */
.b4y-hero-slider::after {
  z-index: 1;
  pointer-events: none;
}

.b4y-slider-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.b4y-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* General rule: the "mobile" source is the least-cropped upload for every
     slide (the "desktop" thumbnail is often pre-cropped to a very wide
     panorama that cuts subjects); a per-slide focal point (--hero-focus,
     from _b4y_slide_focal_point) is the only per-slide exception needed,
     and it applies at every breakpoint since the same image is used
     throughout. */
  background-position: var(--hero-focus, center);
  background-image: var(--mobile-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  z-index: 0;
  /* Defensively clear any filters, opacities, or blend modes that distort images */
  filter: none !important;
  mix-blend-mode: normal !important;
}

.b4y-hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible;
  z-index: 2;
}

.b4y-hero-slide.is-active .b4y-home-container {
  position: relative;
  z-index: 3;
}

/* Exception: purpose-built wide artwork is not a cropped photo — keep using
   its dedicated desktop banner above the tablet breakpoint (unchanged from
   before), instead of the general least-cropped-source rule above. */
.b4y-hero-slide--logo,
.b4y-hero-slide--restaurant {
  background-image: var(--desktop-bg);
}

/* The supplied brand banner is artwork, not a cover photo: keep it entirely visible. */
.b4y-hero-slide--logo {
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Slider Controls (Chevrons)
   Dark translucent fill (not a light one) so the button reads as its own
   shape regardless of what is behind it: it must stay visible over the
   plain white "logo" slide as well as over bright photo areas, not only
   over the darker left side of a photo slide. */
.b4y-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.28);
}

.b4y-slider-nav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.b4y-slider-nav:hover {
  background: var(--b4y-pink);
  border-color: var(--b4y-pink);
  box-shadow: 0 8px 24px rgba(177, 38, 79, 0.4);
}

.b4y-slider-prev {
  left: 30px;
}

.b4y-slider-prev:hover svg {
  transform: translateX(-2px);
}

.b4y-slider-next {
  right: 30px;
}

.b4y-slider-next:hover svg {
  transform: translateX(2px);
}

/* Dots Page Indicator */
.b4y-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.b4y-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.b4y-slider-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.b4y-slider-dot.is-active {
  background: var(--b4y-pink);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(177, 38, 79, 0.6);
}

/* Responsiveness for Slider */
@media (max-width: 768px) {
  /* Flèches visibles sur mobile — réduites et repositionnées en bas du slider */
  .b4y-slider-nav {
    display: flex;
    width: 38px;
    height: 38px;
    top: auto;
    bottom: 56px; /* Au-dessus des dots (18px + 10px dot + marge) */
    transform: none;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.28);
  }
  .b4y-slider-nav svg {
    width: 18px;
    height: 18px;
  }
  .b4y-slider-prev {
    left: 12px;
  }
  .b4y-slider-next {
    right: 12px;
  }
  .b4y-slider-dots {
    bottom: 18px;
  }
}

/* Tablette / largeur intermediaire (769-1380px) : le texte de la banniere commence a gauche du conteneur
   (marge < 78px = largeur des fleches + leur decalage), donc les fleches centrees verticalement le chevauchent.
   Elles passent en bas, a gauche et a droite, au-dessus des points et du bloc de recherche (qui mord de 36px
   sur le bas du slider). Au-dela de 1380px (desktop), les fleches restent sur les cotes, inchangees. */
@media (min-width: 769px) and (max-width: 1380px) {
  .b4y-slider-nav {
    top: auto;
    bottom: 56px;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .b4y-slider-prev {
    left: 20px;
  }
  .b4y-slider-next {
    right: 20px;
  }
  .b4y-slider-dots {
    bottom: 18px;
  }
  /* Reserve la rangee des fleches : le texte et les boutons des slides restent au-dessus. */
  .b4y-hero-slide .b4y-home-container {
    padding-bottom: 110px;
    box-sizing: border-box;
  }
}

@media (max-width: 680px) {
  .b4y-hero-slide {
    background-image: var(--mobile-bg);
    background-position: var(--hero-focus, center);
  }
  .b4y-hero-slide--logo {
    background-position: center;
    background-size: contain;
  }
  .b4y-hero-copy {
    padding: 60px 0 80px !important;
  }
  .b4y-hero-copy h1,
  .b4y-hero-copy .b4y-hero-title {
    font-size: clamp(28px, 7.5vw, 36px) !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  .b4y-hero-copy p:not(.b4y-pill) {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .b4y-hero-actions {
    margin-top: 18px !important;
    gap: 10px !important;
  }
  .b4y-btn {
    min-height: 44px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
  }
  .b4y-pill {
    font-size: 10px !important;
    padding: 5px 12px !important;
    margin-bottom: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b4y-hero-slide {
    transition: none !important;
  }
}

/*
 * When .b4y-home-hero is used as a slider (.b4y-hero-slider),
 * suppress its legacy ::before (86% dark gradient) and ::after (white fade)
 * so they don't stack with the slider's own controlled overlay above.
 */
.b4y-home-hero.b4y-hero-slider::before,
.b4y-home-hero.b4y-hero-slider::after {
  display: none !important;
}

/*
 * Slider : image naturelle (aucun filtre, voile ni degrade) ; seuls de PETITS fonds semi-transparents, independants,
 * limites a la taille reelle de chaque contenu : le badge (label), le titre (un seul fond autour du titre complet),
 * la description. Les boutons restent independants. L'espace entre les blocs laisse voir la photo.
 * Fond commun (--b4y-slide-panel) pour le badge, le titre, la description et les textes de la banniere partenaire :
 * a .76, le texte blanc garde au moins 9:1 meme devant un blanc pur, sans voile sur la photo.
 */
.b4y-hero-slider { --b4y-slide-panel: rgba(8, 13, 26, .76); }
.b4y-hero-slider .b4y-hero-copy .b4y-pill,
.b4y-hero-slider .b4y-hero-text-panel .b4y-hero-title,
.b4y-hero-slider .b4y-hero-text-panel > p {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.b4y-hero-slider .b4y-hero-copy {
  width: fit-content;
  max-width: min(100%, 560px);
  padding: 0 !important;
  background: none;
}

.b4y-hero-slider .b4y-hero-copy .b4y-pill:empty {
  display: none;
}

/* Badge : sa propre petite zone, jamais fondue dans un fond commun. */
.b4y-hero-slider .b4y-hero-copy .b4y-pill {
  background: var(--b4y-slide-panel);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  margin: 0 0 12px;
  align-self: flex-start;
}

.b4y-hero-slider .b4y-hero-text-panel {
  width: auto;
  max-width: none;
  padding: 0;
  background: none;
  text-shadow: none;
}

/* Titre : UNE zone compacte autour du titre complet (pas un fond par ligne), largeur = texte + leger padding. */
.b4y-hero-slider .b4y-hero-text-panel .b4y-hero-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 14px 10px;
  border-radius: 10px;
  background: var(--b4y-slide-panel);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}

/* Description : sa propre petite zone, uniquement autour du texte. */
.b4y-hero-slider .b4y-hero-text-panel > p {
  display: block;
  width: fit-content;
  max-width: min(100%, 30rem);
  margin: 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--b4y-slide-panel);
  color: #fff;
  font-weight: 500;
  text-wrap: pretty;
}

.b4y-hero-slider .b4y-hero-actions {
  width: auto;
  margin-top: 18px; /* CTA clairement separe des blocs de texte */
}
.b4y-hero-slider .b4y-btn {
  width: auto;
  min-height: 44px;
}
.b4y-hero-slider .b4y-btn-primary:hover { filter: brightness(.9); }
.b4y-hero-slider .b4y-btn-light:hover { background: #fbe6f0; border-color: #fbe6f0; }
/* Focus clavier visible sur toute photo : anneau blanc double d'un liseré sombre. */
.b4y-hero-slider .b4y-hero-actions .b4y-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 8px rgba(8, 13, 26, .9) !important; }
/* Points du carrousel : zone de toucher élargie sans changer leur dessin. */
.b4y-hero-slider .b4y-slider-dots button { position: relative; }
.b4y-hero-slider .b4y-slider-dots button::after { content: ""; position: absolute; inset: -9px -5px; }

/* Bannière partenaire (accueil seulement) : mêmes fonds sous le titre et le texte, bouton aux couleurs du partenaire
   légèrement foncées pour un contraste AA avec son libellé blanc. */
.b4y-hero-slider .b4y-pac__title,
.b4y-hero-slider .b4y-pac__text { width: fit-content; max-width: 100%; box-sizing: border-box; padding: 6px 12px; border-radius: 10px; background: var(--b4y-slide-panel); }
.b4y-hero-slider .b4y-pac .b4y-pac__btn { background: #a94f38; }
@supports (background: color-mix(in srgb, red 50%, black)) {
  .b4y-hero-slider .b4y-pac .b4y-pac__btn { background: color-mix(in srgb, var(--b4y-pac-btn, #d7684c) 78%, #000); }
}

/* Tablette / mobile : blocs plus petits et plus etroits plutot que plus de surface sombre. */
@media (max-width: 1024px) {
  .b4y-hero-slider .b4y-hero-copy {
    max-width: min(100%, 460px);
  }
  .b4y-hero-slider .b4y-hero-text-panel .b4y-hero-title {
    font-size: clamp(24px, 4.6vw, 36px);
    padding: 6px 12px 8px;
  }
  .b4y-hero-slider .b4y-hero-text-panel > p {
    font-size: 15px;
    padding: 6px 12px;
  }
}

@media (max-width: 680px) {
  .b4y-hero-slider .b4y-hero-copy {
    max-width: min(100%, 340px);
    padding: 0 !important;
  }
  .b4y-hero-slider .b4y-hero-text-panel .b4y-hero-title {
    font-size: clamp(22px, 6.4vw, 28px) !important;
    margin-bottom: 8px !important;
    padding: 5px 10px 7px;
  }
  .b4y-hero-slider .b4y-hero-text-panel > p {
    font-size: 14px !important;
    padding: 6px 10px;
  }
  .b4y-hero-slider .b4y-hero-actions {
    width: auto !important;
    margin-top: 14px !important;
    gap: 10px !important;
  }
  .b4y-hero-slider .b4y-btn {
    width: auto !important;
    min-height: 44px !important;
    padding: 0 14px !important;
  }
  .b4y-hero-slider .b4y-hero-copy .b4y-pill {
    margin-bottom: 8px !important;
  }
}

/* Client photo stories: responsive editorial galleries and landing page. */
.b4y-home-photo-stories .b4y-section-head h2 {
  margin-bottom: 20px;
}

.b4y-home-photo-stories .b4y-section-head h2 + p {
  margin-top: 0;
}

.b4y-photo-stories-hero {
  padding: clamp(72px, 10vw, 130px) 0 70px;
  color: #fff;
  background: url('../images/client-2026/hero-grand-popo.webp') center/cover;
}
.b4y-photo-stories-hero h1 { max-width: 850px; margin: 0 0 18px; color: #fff; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; }
.b4y-photo-stories-hero > div > p:last-child { max-width: 720px; margin: 0; font-size: 18px; line-height: 1.65; }
.b4y-photo-stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b4y-photo-story-card { overflow: hidden; border: 1px solid #e8e9ef; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(20, 28, 42, .08); }
.b4y-photo-story-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.b4y-photo-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.b4y-photo-story-card:hover .b4y-photo-story-media img { transform: scale(1.035); }
.b4y-photo-story-card > div { padding: 20px; }
.b4y-photo-story-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.b4y-photo-story-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.b4y-photo-story-card h2 a, .b4y-photo-story-card h3 a { color: #172033; text-decoration: none; }
.b4y-photo-story-card p { color: #5b6472; line-height: 1.55; }
.b4y-photo-story-link { display: inline-flex; align-items: center; gap: 8px; color: #B1264F; font-weight: 800; }
.b4y-photo-story-link svg { width: 18px; }
.b4y-client-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 30px 0; }
.b4y-client-gallery figure { margin: 0; overflow: hidden; border: 1px solid #e7e8ed; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(20, 28, 42, .07); }
.b4y-client-gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.b4y-client-gallery figcaption { padding: 12px 15px; color: #525c6d; font-size: 14px; line-height: 1.45; }
.b4y-client-video { margin: 34px 0; }
.b4y-client-video video { display: block; width: 100%; height: auto; border-radius: 16px; background: #10131a; box-shadow: 0 16px 40px rgba(20, 28, 42, .16); }
.b4y-client-video figcaption { margin-top: 10px; color: #5b6472; font-size: 14px; }
@media (max-width: 900px) { .b4y-photo-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .b4y-photo-stories-grid, .b4y-client-gallery { grid-template-columns: 1fr; }
  .b4y-photo-stories-hero { padding: 68px 0 52px; }
  .b4y-client-gallery { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .b4y-photo-story-media img { transition: none; } }

/* Search & Pagination styles */
.b4y-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  width: 100%;
}
.b4y-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid #ececf3;
  background: #fff;
  color: #4b5563;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.b4y-pagination .page-numbers:hover {
  border-color: var(--b4y-pink);
  color: var(--b4y-pink);
  background: #fff0f7;
}
.b4y-pagination .page-numbers svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-pagination .page-numbers.prev,
.b4y-pagination .page-numbers.next { min-width: 40px; }
.b4y-pagination .page-numbers:focus-visible { outline: 3px solid #181722; outline-offset: 2px; }
.b4y-pagination .page-numbers.current {
  background: var(--b4y-pink);
  border-color: var(--b4y-pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(177, 38, 79, 0.2);
}

.cpt-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.b4y-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--b4y-radius, 14px);
  border: 1px dashed var(--b4y-line, #ececf3);
  width: 100%;
}

.b4y-reset-btn:hover {
  color: var(--b4y-pink-dark) !important;
  text-decoration: underline !important;
}

.b4y-annuaire-sidebar-sticky {
  position: sticky;
  top: 100px;
}





/* ==========================================================================
   Header Desktop Refonte (Benin4you)
   ========================================================================== */
@media (min-width: 1025px) {
  /* 1. Sur-header (Top Bar) */
  .b4y-top-bar {
    background: var(--b4y-pink);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
  }
  .b4y-top-bar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .b4y-top-bar-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
  }
  .b4y-top-bar-icon svg {
    width: 15px;
    height: 15px;
    fill: var(--white);
  }
  .b4y-top-bar-text {
    line-height: 1.2;
  }

  /* 2. Main Header Container */
  body .b4y-main-header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  body .b4y-main-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  /* 3. Navigation (Pill shape) */
  body .b4y-main-header .main-nav {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin: 0 auto;
    gap: 8px;
    height: 52px; /* Fixed height to match actions */
  }
  body .b4y-main-header .main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--b4y-heading);
    font-size: 13px;
    font-weight: 800; /* Bolder text like mockup */
    text-transform: uppercase;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  body .b4y-main-header .main-nav a::after {
    display: none !important; /* Remove old underline */
  }
  body .b4y-main-header .main-nav a:hover:not(.is-active) {
    background: rgba(0, 0, 0, 0.03);
    color: var(--b4y-pink);
  }
  body .b4y-main-header .main-nav a.is-active,
  body .b4y-main-header .main-nav .current-menu-item > a {
    background: var(--b4y-pink);
    color: var(--white);
  }

  /* 4. Header Actions (Search & Lang) */
  body .b4y-main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  body .b4y-main-header .b4y-header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    color: var(--b4y-heading);
    background: var(--white);
    transition: all 0.3s ease;
  }
  body .b4y-main-header .b4y-header-search:hover {
    border-color: var(--b4y-pink);
    color: var(--b4y-pink);
  }
  body .b4y-main-header .b4y-header-search svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }

  /* 5. Language Switcher */
  body .b4y-main-header .b4y-language-switcher {
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 4px;
    background: var(--white);
    gap: 4px;
    height: 52px;
  }
  body .b4y-main-header .b4y-language-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--b4y-heading);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  body .b4y-main-header .b4y-language-link:hover:not(.is-active) {
    background: rgba(0, 0, 0, 0.03);
  }
  body .b4y-main-header .b4y-language-link.is-active {
    background: var(--b4y-pink);
    color: var(--white);
  }
  
  /* Hide mobile toggle and mobile lang switcher */
  body .b4y-main-header .nav-toggle,
  body .b4y-main-header > .header-inner > .b4y-header-lang {
    display: none !important;
  }
}

/* SEO Block Explorez le Bénin */
.b4y-explore-intro {
    max-width: 680px;
    margin-top: 24px;
    margin-bottom: 0;
    color: #5b6472;
    line-height: 1.7;
    font-size: 15.5px;
}

.b4y-explore-seo-block {
    margin-top: 64px;
    padding-top: 0;
    border-top: none;
}

.b4y-explore-seo-container {
    background: rgba(177, 38, 79, 0.025);
    border: 1px solid rgba(177, 38, 79, 0.08);
    border-radius: 24px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    position: relative;
}

/* Badge rose avec trait de soulignement */
.b4y-explore-seo-badge {
    display: block;
    color: var(--b4y-pink, #B1264F);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.b4y-explore-seo-badge-line {
    display: block;
    width: 32px;
    height: 3px;
    background: var(--b4y-pink, #B1264F);
    border-radius: 99px;
    margin-bottom: 24px;
}

.b4y-explore-seo-column-left h3 {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 850;
    line-height: 1.25;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

/* Séparateur vertical fin */
.b4y-explore-seo-column-divider {
    width: 1px;
    background: rgba(177, 38, 79, 0.12);
    align-self: stretch;
    display: block;
}

/* Ajustement de la grille avec le diviseur */
@media (min-width: 1025px) {
    .b4y-explore-seo-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
    }
}

.b4y-explore-seo-text {
    color: #5b6472;
    font-size: 15px;
    line-height: 1.7;
}

.b4y-explore-seo-text p {
    margin-bottom: 18px;
}

.b4y-explore-seo-text p:last-child {
    margin-bottom: 0;
}

.b4y-explore-seo-text a {
    color: var(--b4y-pink, #B1264F);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.b4y-explore-seo-text a:hover {
    color: var(--b4y-pink-dark, #8C1E3F);
}

.b4y-explore-seo-text strong {
    color: #1e293b;
    font-weight: 700;
}

/* Lien d'action en bas de la colonne de droite */
.b4y-explore-seo-link-wrapper {
    margin-top: 32px;
}

.b4y-explore-seo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--b4y-pink, #B1264F);
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.b4y-explore-seo-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.b4y-explore-seo-link:hover {
    color: var(--b4y-pink-dark, #8C1E3F);
}

.b4y-explore-seo-link:hover svg {
    transform: translateX(5px);
}

/* Version mobile et tablette */
@media (max-width: 1024px) {
    .b4y-explore-seo-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
    }
    
    .b4y-explore-seo-column-divider {
        display: none;
    }
}

@media (max-width: 680px) {
    .b4y-explore-intro {
        margin-top: 16px;
        font-size: 14.5px;
    }
    
    .b4y-explore-seo-block {
        margin-top: 48px;
    }
    
    .b4y-explore-seo-container {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .b4y-explore-seo-column-left h3 {
        margin-bottom: 18px;
    }
    
    .b4y-explore-seo-link-wrapper {
        margin-top: 24px;
    }
}

/* Category taxonomy page styles */
.b4y-category-breadcrumbs {
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.b4y-category-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.b4y-category-breadcrumbs a:hover {
  color: #fff;
}
.b4y-category-breadcrumbs span.sep {
  color: rgba(255, 255, 255, 0.4);
}
.b4y-category-breadcrumbs span.current {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.b4y-hero-description {
  margin-top: 14px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}
.b4y-hero-description p {
  margin: 0;
}
.b4y-subcategory-section {
  padding: 58px 0 20px;
}
.b4y-subcategory-section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--b4y-ink);
}
.b4y-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.b4y-subcategory-card {
  background: #fff;
  border: 1px solid var(--b4y-line);
  border-radius: var(--b4y-radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.b4y-subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--b4y-shadow);
}
.b4y-subcategory-card .card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaeaea;
}
.b4y-subcategory-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.b4y-subcategory-card:hover .card-media img {
  transform: scale(1.06);
}
.b4y-subcategory-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.b4y-subcategory-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.4;
}
.b4y-subcategory-card h3 a {
  color: var(--b4y-ink);
  text-decoration: none;
}
.b4y-subcategory-card h3 a:hover {
  color: var(--b4y-pink);
}
.b4y-subcategory-card p {
  color: var(--b4y-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px;
  flex-grow: 1;
}
.b4y-subcategory-card .mini-btn {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--b4y-pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.b4y-subcategory-card:hover .mini-btn {
  gap: 8px;
}

/* Typography comfort pass: readable utility text without changing layouts. */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (min-width: 1025px) {
  body .b4y-main-header .main-nav a {
    padding-inline: 13px;
    font-size: 14px;
    letter-spacing: .025em;
  }
  body .b4y-main-header .b4y-language-link {
    font-size: 14px;
  }
}

.b4y-btn,
.btn,
.b4y-card-actions a,
.card-actions a,
.mini-btn,
.b4y-filter-btn,
.b4y-annuaire-more a,
.b4y-annuaire-cta a,
.b4y-section-head > a,
.b4y-photo-story-link,
.b4y-rubrique-link {
  font-size: 15px;
  line-height: 1.35;
}

.b4y-search-card input,
.b4y-search-card select,
.b4y-search-card button,
.b4y-annuaire-search input,
.b4y-annuaire-search select,
.b4y-annuaire-search button,
.b4y-annuaire-filter label,
.b4y-annuaire-filter select {
  font-size: 16px;
}

.b4y-why-card p,
.b4y-address-body p,
.b4y-guide-card p,
.b4y-photo-story-card p,
.b4y-directory-info p,
.b4y-annuaire-card p,
.b4y-annuaire-mini p,
.b4y-annuaire-join p,
.b4y-rubrique-content p,
.b4y-rubrique-children li,
.b4y-subcategory-card p {
  font-size: 16px;
  line-height: 1.6;
}

.b4y-article-meta span,
.b4y-client-gallery figcaption,
.b4y-client-video figcaption,
.b4y-category-breadcrumbs,
.b4y-annuaire-cat em {
  font-size: 14px;
  line-height: 1.5;
}

.b4y-address-media span,
.b4y-annuaire-card-media span,
.b4y-directory-thumb span,
.badge,
.cpt-badge,
.b4y-pill,
.eyebrow {
  font-size: 12px;
  line-height: 1.35;
}

.b4y-annuaire-cat strong,
.b4y-annuaire-mini strong,
.b4y-rubrique-count {
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .b4y-hero-copy p:not(.b4y-pill),
  .b4y-annuaire-hero p,
  .b4y-static-hero p:not(.b4y-pill),
  .b4y-photo-stories-hero > div > p:last-child {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .b4y-btn,
  .btn,
  .b4y-card-actions a,
  .card-actions a,
  .mini-btn {
    font-size: 15px !important;
  }

  .b4y-pill,
  .eyebrow {
    font-size: 12px !important;
  }
}

/* Keep the introductory top bar visible and readable at every viewport width. */
.b4y-top-bar {
  display: block;
  padding: 10px 0;
  background: var(--b4y-pink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}
.b4y-top-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.b4y-top-bar-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.b4y-top-bar-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.b4y-top-bar-text {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Header: switch to the compact navigation before the nine links run out of room. */
@media (max-width: 767px) {
  body .b4y-main-header { padding: 0; }
  body .b4y-main-header .header-inner { min-height: 72px; gap: 12px; }
  body .b4y-main-header .logo { flex: 0 1 auto; min-width: 0; }
  body .b4y-main-header .logo .custom-logo-link,
  body .b4y-main-header .logo .custom-logo-link img,
  body .b4y-main-header .logo img.custom-logo { max-width: min(210px, 34vw); max-height: 54px; }
  body .b4y-main-header > .header-inner > .b4y-header-lang {
    display: inline-flex !important;
    align-items: center;
    margin-left: auto;
    flex: 0 0 auto;
  }
  body .b4y-main-header .header-actions { display: none !important; }
  body .b4y-main-header .nav-toggle {
    display: flex !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  body .b4y-main-header .main-nav,
  body .b4y-main-header .main-nav ul { flex-direction: column; align-items: stretch; }
  body .b4y-main-header .main-nav {
    /* Anchored to .header-inner (position:relative — see base rule in
       benin4you.css), not to the viewport: top:100%/right:0 always match
       the header's own real edge and real rendered height at this exact
       breakpoint, instead of the previous fixed top:115px/right:20px
       guesses, which drifted out of sync with the burger button as soon as
       the header's actual height differed from that assumption (e.g. with
       the optional top announcement bar, or on the client's real device). */
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 40px));
    height: auto;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    display: flex;
    gap: 2px;
    margin: 10px 0 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  body .b4y-main-header .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  body .b4y-main-header .main-nav a,
  body .b4y-main-header .main-nav li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: .78rem;
    line-height: 1.25;
  }
  body .b4y-main-header .main-nav a::after { display: none; }
  body .b4y-main-header .main-nav a:hover,
  body .b4y-main-header .main-nav a:focus-visible,
  body .b4y-main-header .main-nav a.is-active,
  body .b4y-main-header .main-nav .current-menu-item > a {
    background: #f6edf3;
    color: var(--primary);
  }
}

@media (min-width: 768px) {
  body .b4y-main-header .header-inner { width: min(calc(100% - 40px), 1520px); }
  body .b4y-main-header .main-nav a,
  body .b4y-main-header .main-nav li a { white-space: nowrap; }
}

@media (max-width: 560px) {
  .b4y-portal-hero .b4y-hero-text-panel {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .b4y-portal-hero .b4y-hero-text-panel h1 {
    font-size: clamp(34px, 11vw, 44px);
    overflow-wrap: anywhere;
  }
  .b4y-top-bar {
    padding: 7px 0;
    font-size: 12px;
  }
  body .b4y-main-header .logo,
  body .b4y-main-header .logo img.custom-logo {
    max-width: 145px;
  }
  body .b4y-main-header .b4y-header-lang .b4y-language-switcher {
    height: 46px;
    padding: 3px;
  }
  body .b4y-main-header .b4y-header-lang .b4y-language-link {
    width: 36px;
    min-height: 38px;
  }
  body .b4y-main-header .header-inner {
    position: relative;
    min-height: 66px;
    padding-right: 142px;
  }
  body .b4y-main-header > .header-inner > .b4y-header-lang {
    position: absolute;
    right: 52px;
    margin-left: 0;
  }
  body .b4y-main-header .nav-toggle {
    position: absolute;
    right: 0;
  }
  body .b4y-main-header .main-nav {
    /* top/right inherited from the 1159px rule (top:100%; right:0;),
       anchored to .header-inner — no viewport-relative override here. */
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 88px);
  }
}

@media (min-width: 561px) and (max-width: 1024px) {
  body .b4y-main-header .b4y-header-lang .b4y-language-switcher { gap: 4px; }
  body .b4y-main-header .b4y-header-lang .b4y-language-link {
    width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .b4y-main-header .main-nav { transition: none; }
}

/* Client banners: preserve the supplied artwork and avoid darkening overlays. */
.hero-restaurants {
  min-height: clamp(280px, 42.85vw, 620px);
  align-items: end;
  background: #f3e5d6;
}

.hero-restaurants::before {
  background-image: var(--b4y-banner-image);
  background-position: center;
  background-size: cover;
  transform: none;
}

.hero-restaurants::after {
  display: none;
}

.hero-restaurants .hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 24px;
}

.hero-restaurants .hero-cta {
  width: fit-content;
  margin-top: 0;
  padding: 10px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(33, 24, 20, .14);
  backdrop-filter: blur(8px);
}

.b4y-event-banner {
  min-height: clamp(280px, 50vw, 620px);
  background-color: #f8f8f7;
  background-position: center;
  background-size: cover;
}

.b4y-event-banner::before {
  display: none;
}

.b4y-event-banner .b4y-home-container {
  position: relative;
  z-index: 1;
}

.b4y-event-banner h1,
.b4y-event-banner p:not(.b4y-pill) {
  max-width: 48%;
  color: #172036;
  text-shadow: none;
}

.b4y-event-banner .b4y-pill {
  color: #8C1E3F;
  background: rgba(255, 255, 255, .9);
  border-color: rgba(177, 38, 79, .18);
}

@media (max-width: 680px) {
  .hero-restaurants {
    min-height: calc(42.85vw + 86px);
  }

  .hero-restaurants::before {
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .hero-restaurants .hero-content {
    padding-bottom: 14px;
  }

  .hero-restaurants .hero-cta {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: none;
  }

  .hero-restaurants .hero-cta .btn {
    min-height: 46px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .b4y-event-banner {
    background-position: 61% center;
  }

  .b4y-event-banner h1,
  .b4y-event-banner p:not(.b4y-pill) {
    max-width: 56%;
  }

  .b4y-event-banner h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .b4y-event-banner p:not(.b4y-pill) {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .hero-restaurants {
    min-height: calc(42.85vw + 132px);
  }
}

/* Client image3: complete monuments, people and products, without text over subjects. */
.b4y-directory-hero.b4y-editorial-hero {
  background: #f5f2ed !important;
  min-height: 0;
  padding: 36px 0;
}
.b4y-editorial-hero > .b4y-home-container {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 40px;
}
.b4y-portal-hero.b4y-editorial-hero .b4y-hero-text-panel {
  background: transparent;
  padding: 0;
  color: #202631;
  max-width: 100%;
}
.b4y-portal-hero.b4y-editorial-hero h1,
.b4y-portal-hero.b4y-editorial-hero .b4y-hero-description,
.b4y-portal-hero.b4y-editorial-hero p {
  color: #202631;
  text-shadow: none;
}
.b4y-portal-hero.b4y-editorial-hero h1 {
  font-size: clamp(34px, 4.5vw, 64px);
}
.b4y-editorial-hero .b4y-editorial-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgb(24 32 43 / 12%);
}
/* The Amazone fills a portrait frame: keep the head, sword and plinth. */
.b4y-editorial-hero--cotonou .b4y-editorial-hero-image {
  width: min(100%, 390px);
  justify-self: center;
}
/* Arts, culture & loisirs : photo de 559 px, affichée entière et à sa taille d'origine (pas d'étirement ni de flou). */
.b4y-editorial-hero--arts-culture-loisirs .b4y-editorial-hero-image {
  width: min(100%, 520px);
  justify-self: center;
}
/* Ouidah needs the arch, visitors and horizon together, including its sky. */
.b4y-editorial-hero--ouidah .b4y-editorial-hero-image {
  width: min(100%, 420px);
  justify-self: center;
}
/* Porto-Novo includes pedestrians along the bottom and towers at the top.
   Abomey's raised hand and Pendjari's herd also require the original ratios.
   The aerial views retain both shores and the foreground houses. */
.b4y-editorial-hero--porto-novo > .b4y-home-container,
.b4y-editorial-hero--abomey > .b4y-home-container {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
}
.b4y-editorial-hero--grand-popo > .b4y-home-container,
.b4y-editorial-hero--ganvie > .b4y-home-container,
.b4y-editorial-hero--parc-pendjari > .b4y-home-container {
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
}
.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2.b4y-editorial-card {
  height: auto !important;
  min-height: 0 !important;
}
.b4y-editorial-card .b4y-rubrique-card-link {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.b4y-editorial-card .b4y-rubrique-bg {
  position: relative !important;
  grid-column: 1 / -1;
  height: auto !important;
  background: #fff;
}
.b4y-editorial-card .b4y-rubrique-bg img {
  position: static !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}
.b4y-editorial-card .b4y-rubrique-overlay {
  display: none !important;
}
.b4y-editorial-card .b4y-rubrique-badge {
  position: static !important;
  align-self: start;
  margin: 22px 0 22px 20px;
}
.b4y-editorial-card .b4y-rubrique-info {
  position: static !important;
  align-self: center;
  padding: 22px 22px 22px 14px !important;
}
.b4y-editorial-card .b4y-rubrique-card-link:focus-visible {
  outline-offset: -4px !important;
}
/* Natural 3:2 frames preserve the cosmetics, clothing mannequins and fruit;
   the appliance trio needs its taller 4:3 frame, including their feet. */
.b4y-editorial-card--electronique-electromenager .b4y-rubrique-bg img {
  aspect-ratio: 4 / 3;
}
/* Décoration & Meubles partage sa rangée avec Électronique (cadre 4:3, plus haut) : sans ceci la grille
   l'étire à la hauteur de sa voisine. Elle garde sa hauteur naturelle, identique aux autres cartes (image 3:2). */
.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2.b4y-editorial-card--decoration-et-meubles {
  align-self: start;
}
.b4y-annuaire-context-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .b4y-directory-hero.b4y-editorial-hero {
    padding: 28px 0;
  }
  .b4y-directory-hero.b4y-editorial-hero > .b4y-home-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .b4y-editorial-hero--cotonou .b4y-editorial-hero-image {
    width: min(100%, 360px);
  }
  .b4y-editorial-hero--ouidah .b4y-editorial-hero-image {
    width: min(100%, 390px);
  }
}
/* Keep all existing desktop navigation actions inside the viewport. */
@media (min-width: 1440px) and (max-width: 1599px) {
  body .b4y-main-header .header-inner { gap: 14px; }
  body .b4y-main-header .main-nav { gap: 2px; }
  body .b4y-main-header .main-nav a,
  body .b4y-main-header .main-nav li a {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Header 1160-1439px: one-line horizontal menu, sizes shrink fluidly (no jump).
   Below 1160px (FR labels measured to fit down to 1140px) the tablet layout
   below takes over. The burger only exists up to 767px: keep that breakpoint
   identical in all the header rules (search "767px" / "768px").
   Sizes shrink fluidly with the viewport (no jump) down to 11.5px / 5px. */
@media (min-width: 1160px) and (max-width: 1439px) {
  body .b4y-main-header .header-inner {
    width: min(calc(100% - 32px), 1520px);
    gap: clamp(10px, 1.2vw, 14px);
  }
  body .b4y-main-header .logo .custom-logo-link,
  body .b4y-main-header .logo .custom-logo-link img,
  body .b4y-main-header .logo img.custom-logo {
    max-width: clamp(132px, 14vw, 199px);
    height: auto;
  }
  body .b4y-main-header .main-nav { gap: 2px; margin: 0 auto; }
  body .b4y-main-header .main-nav a,
  body .b4y-main-header .main-nav li a {
    font-size: clamp(11.5px, calc(.5vw + 4.8px), 12px);
    letter-spacing: .01em;
    padding-left: clamp(5px, calc((100vw - 1160px) * .0179 + 5px), 10px);
    padding-right: clamp(5px, calc((100vw - 1160px) * .0179 + 5px), 10px);
  }
  body .b4y-main-header .header-actions { gap: 4px; }
}

/* Header tablet / intermediate width (768-1159px): the menu stays visible.
   Row 1 = logo + actions (search, language), row 2 = the pill menu on the full
   width. Links wrap onto a second line only when one line is not enough, with a
   readable 14px font and 44px touch targets: no shrinking, no overlap, no
   horizontal scroll. Below 768px the burger takes over (rules above). */
@media (min-width: 768px) and (max-width: 1159px) {
  body .b4y-main-header { padding: 10px 0 12px; }
  body .b4y-main-header .header-inner {
    width: min(calc(100% - 32px), 1520px);
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
  }
  body .b4y-main-header .logo { order: 1; flex: 0 1 auto; min-width: 0; }
  body .b4y-main-header .logo .custom-logo-link,
  body .b4y-main-header .logo .custom-logo-link img,
  body .b4y-main-header .logo img.custom-logo { max-width: 180px; max-height: 54px; height: auto; }
  body .b4y-main-header .nav-toggle,
  body .b4y-main-header > .header-inner > .b4y-header-lang { display: none !important; }
  body .b4y-main-header .header-actions {
    order: 2;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  body .b4y-main-header .header-actions > *:not(.b4y-header-search):not(.b4y-language-switcher) { display: none; }
  body .b4y-main-header .header-actions .b4y-header-search { display: flex; }
  body .b4y-main-header .main-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    position: static;
    height: auto;
    max-height: none;
    margin: 0;
    /* Vertical rhythm: same inner padding on every side, one row-gap between rows. */
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 6px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03);
  }
  body .b4y-main-header .main-nav > ul { display: contents; }
  body .b4y-main-header .main-nav li { position: relative; justify-content: center; }
  body .b4y-main-header .main-nav a,
  body .b4y-main-header .main-nav li a {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .02em;
    white-space: nowrap;
    justify-content: center;
    border-radius: 8px;
  }
  body .b4y-main-header .main-nav a::after { display: none !important; }
  body .b4y-main-header .main-nav a:hover:not(.is-active) { background: rgba(0, 0, 0, .04); color: var(--b4y-pink); }
  body .b4y-main-header .main-nav a.is-active,
  body .b4y-main-header .main-nav .current-menu-item > a { background: var(--b4y-pink); color: var(--white); }
  body .b4y-main-header .main-nav .b4y-nav-pro-item { display: none !important; }
}

/* 768-1019px: one line cannot hold the links at a readable size, so they form
   a regular 4 x 2 grid (equal cells, no orphan link). Dropdowns span the menu
   width, so they can never leave the viewport. */
@media (min-width: 768px) and (max-width: 1019px) {
  body .b4y-main-header .main-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
  }
  body .b4y-main-header .main-nav li,
  body .b4y-main-header .main-nav li.menu-item-has-children { position: static; }
  body .b4y-main-header .main-nav li { width: 100%; }
  body .b4y-main-header .main-nav li > a,
  body .b4y-main-header .main-nav li > .b4y-nav-trigger { width: 100%; padding: 0 6px; }
  body .b4y-main-header .main-nav .menu-item-has-children > .sub-menu.b4y-mega {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
  }
}

/* Banner text moved off a centred subject (category setting "Position du texte"). */
.b4y-directory-hero.b4y-hero-text--top {
  align-items: flex-start;
}
.b4y-directory-hero.b4y-hero-text--bottom {
  align-items: flex-end;
}
.b4y-directory-hero.b4y-hero-text--top > .b4y-home-container {
  padding-top: 28px;
}
.b4y-directory-hero.b4y-hero-text--bottom > .b4y-home-container {
  padding-bottom: 28px;
}
@media (max-width: 560px) {
  .b4y-directory-hero.b4y-hero-text--top > .b4y-home-container {
    padding-top: 16px;
  }
  .b4y-directory-hero.b4y-hero-text--bottom > .b4y-home-container {
    padding-bottom: 16px;
  }
}

/* Category image behind the directory banner: natural image, a translucent
   panel only behind the text (same pattern as .b4y-hero-text-panel). */
.b4y-annuaire-hero--category .b4y-annuaire-hero-intro {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(20, 24, 32, .6);
}
.b4y-annuaire-hero--category .b4y-annuaire-hero-intro :last-child {
  margin-bottom: 0;
}
.b4y-annuaire-hero--category .b4y-annuaire-stats span {
  background: rgba(20, 24, 32, .6);
}
.b4y-annuaire-hero--category h1,
.b4y-annuaire-hero--category p,
.b4y-annuaire-hero--category .b4y-annuaire-stats span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
@media (max-width: 560px) {
  .b4y-annuaire-hero--category .b4y-annuaire-hero-intro {
    padding: 14px 16px;
    border-radius: 10px;
  }
}

/* Client photo cards: shade only the title band, the image stays natural. */
.b4y-rubrique-card--natural .b4y-rubrique-overlay {
  background: linear-gradient(to bottom, rgba(9, 15, 29, 0) 56%, rgba(9, 15, 29, .2) 70%, rgba(9, 15, 29, .36) 84%, rgba(9, 15, 29, .44) 100%) !important;
}
.b4y-rubrique-card--natural .b4y-rubrique-info h3,
.b4y-rubrique-card--natural .b4y-rubrique-desc {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

/* Small client banner images: never upscaled more than x1.15. On wider
   screens the sharp image is centred over a blurred copy of itself. */
.b4y-hero-contained {
  isolation: isolate;
}
.b4y-hero-contained::before,
.b4y-hero-contained::after {
  content: "";
  display: block !important;
  position: absolute;
  top: 0;
  bottom: 0;
  background-image: inherit !important;
  background-position: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}
.b4y-hero-contained::before {
  left: 0;
  right: 0;
  z-index: -2;
  filter: blur(64px) saturate(1.1);
  transform: scale(1.25);
}
.b4y-hero-contained::after {
  left: max(0px, calc((100% - var(--b4y-hero-max, 100%)) / 2));
  right: max(0px, calc((100% - var(--b4y-hero-max, 100%)) / 2));
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

/* Hub banner whose whole subject must stay visible on a narrow screen (page meta _b4y_hero_fit_sm): the sharp image is shown
   entire (contain) over its blurred copy instead of being cropped by "cover". */
@media (max-width: 680px) {
  .b4y-hero-fit-sm.b4y-hero-contained::after {
    left: 0;
    right: 0;
    background-size: contain;
    background-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Rubrique presentation (category term meta "Texte de présentation"). */
.b4y-category-intro {
  padding: 44px 0 0;
}
.b4y-category-intro-text {
  color: #454b5f;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.b4y-category-intro-text p {
  margin: 0 0 12px;
}
.b4y-category-intro-text p:last-child {
  margin-bottom: 0;
}
.b4y-category-intro + .b4y-subcategory-section {
  padding-top: 36px;
}
@media (max-width: 680px) {
  .b4y-category-intro {
    padding-top: 30px;
  }
  .b4y-category-intro-text {
    font-size: 1rem;
    line-height: 1.65;
  }
  .b4y-category-intro + .b4y-subcategory-section {
    padding-top: 28px;
  }
}

/* Category option "Image entière sur mobile": the whole banner image width
   stays visible on phones, over a blurred copy filling the banner height. */
@media (max-width: 680px) {
  .b4y-hero-fit-mobile {
    isolation: isolate;
  }
  .b4y-hero-fit-mobile::before,
  .b4y-hero-fit-mobile::after {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    background-image: inherit !important;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  .b4y-hero-fit-mobile::before {
    z-index: -2;
    background-size: cover;
    background-position: inherit;
    filter: blur(64px) saturate(1.1);
    transform: scale(1.25);
  }
  .b4y-hero-fit-mobile::after {
    z-index: -1;
    background-size: 100% auto;
    background-position: center 58%;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Category setting "Zoom de la miniature": whole image at the chosen height,
   anchored at the bottom (room above the subject), over its blurred copy. */
.b4y-rubrique-card--zoom .b4y-rubrique-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--b4y-card-bg) center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.1);
}
.b4y-rubrique-card--zoom .b4y-rubrique-bg img {
  top: auto !important;
  bottom: 0 !important;
  height: var(--b4y-card-zoom, 100%) !important;
  object-fit: contain !important;
}

/* Category setting "Zoom de la bannière": desktop and tablet only; phones keep
   their own framing (see "Image entière sur mobile"). */
@media (max-width: 680px) {
  .b4y-hero-zoom {
    --b4y-hero-max: 100% !important;
  }
}

/* Responsive framing overrides ("50% 0%; sm: 37% 0%; md: …; xl: …"),
   for banners (background) and cards (object-position). */
@media (max-width: 680px) {
  .b4y-focus-sm {
    background-position: var(--b4y-pos-sm) !important;
    object-position: var(--b4y-pos-sm) !important;
  }
}
@media (min-width: 681px) and (max-width: 1199px) {
  .b4y-focus-md {
    background-position: var(--b4y-pos-md) !important;
    object-position: var(--b4y-pos-md) !important;
  }
}
@media (min-width: 1600px) {
  .b4y-focus-xl {
    background-position: var(--b4y-pos-xl) !important;
    object-position: var(--b4y-pos-xl) !important;
  }
}
/* Category setting "Position du texte sur mobile". */
@media (max-width: 680px) {
  .b4y-directory-hero.b4y-hero-text-sm--top {
    align-items: flex-start;
  }
  .b4y-directory-hero.b4y-hero-text-sm--bottom {
    align-items: flex-end;
  }
  .b4y-directory-hero.b4y-hero-text-sm--center {
    align-items: center;
  }
  .b4y-directory-hero.b4y-hero-text-sm--top > .b4y-home-container {
    padding-top: 16px;
    padding-bottom: 0;
  }
  .b4y-directory-hero.b4y-hero-text-sm--bottom > .b4y-home-container {
    padding-top: 0;
    padding-bottom: 16px;
  }
  .b4y-directory-hero.b4y-hero-text-sm--center > .b4y-home-container {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Category setting "Image entière sur grand écran" (ordinateur et tablette, dès 681 px) : la photo entière, nette et jamais
   agrandie, alignée sur le bord droit du contenu, sur une copie floutée d'elle-même ; le panneau du titre reste à gauche. */
@media (min-width: 681px) {
  .b4y-directory-hero.b4y-hero-fit-desktop {
    background-image: none !important;
    background-color: #e8ebef !important;
    isolation: isolate;
    overflow: hidden;
  }
  .b4y-directory-hero.b4y-hero-fit-desktop::before,
  .b4y-directory-hero.b4y-hero-fit-desktop::after {
    content: "";
    display: block !important;
    position: absolute;
    pointer-events: none;
    background-image: var(--b4y-hero-img) !important;
    background-repeat: no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
  }
  .b4y-directory-hero.b4y-hero-fit-desktop::before {
    inset: 0;
    z-index: -2;
    background-image: var(--b4y-hero-img) !important;
    background-size: cover;
    background-position: center;
    filter: blur(60px) saturate(1.1);
    transform: scale(1.12);
    opacity: .7;
  }
  .b4y-directory-hero.b4y-hero-fit-desktop::after {
    top: 0;
    bottom: 0;
    left: auto;
    right: max(20px, calc((100% - 1210px) / 2));
    width: auto;
    aspect-ratio: var(--b4y-hero-ar, 1.3);
    max-width: calc(100% - 40px);
    z-index: -1;
    background-size: cover;
    background-position: var(--b4y-hero-fit-pos, center);
  }
  .b4y-directory-hero.b4y-hero-fit-desktop .b4y-hero-text-panel {
    max-width: min(520px, 100%) !important;
  }
  .b4y-directory-hero.b4y-hero-fit-desktop .b4y-hero-text-panel h1 {
    font-size: clamp(34px, 3.4vw, 52px);
    overflow-wrap: normal;
  }
}
/* Tablette : la photo entière occupe la droite, le titre passe en haut à gauche pour ne pas la masquer. */
@media (min-width: 681px) and (max-width: 1199px) {
  .b4y-directory-hero.b4y-hero-fit-desktop {
    align-items: flex-start;
  }
  .b4y-directory-hero.b4y-hero-fit-desktop > .b4y-home-container {
    padding-top: 28px;
  }
}

/* "Découvrir" main-nav submenu ("Explorez le Bénin" rubriques). "Découvrir"
   itself (.b4y-nav-trigger) is a plain <a> reusing every existing
   .main-nav a rule as-is (pill/underline/mobile-row styling, all free) —
   only its href="#" + role="button" + JS keep it from navigating, so label
   and caret stay one link, one hit target, one focus stop. Base rules below
   are breakpoint-agnostic; the two media queries only change how the panel
   is positioned/revealed: ≥1160px = floating dropdown (hover, focus-within
   or click/tap), ≤1159px = inline accordion inside the existing off-canvas
   nav panel (same range the header's own CSS already uses for it). */
.b4y-main-header .main-nav li.menu-item-has-children {
  display: block !important;
  position: relative;
}
.b4y-nav-trigger {
  cursor: pointer;
}
.b4y-nav-trigger:focus-visible {
  outline: 2px solid var(--b4y-pink);
  outline-offset: 2px;
  border-radius: 6px;
}
.b4y-nav-trigger > svg {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
  vertical-align: middle;
}
.menu-item-has-children.is-open > .b4y-nav-trigger > svg {
  transform: rotate(180deg);
}
.b4y-main-header .main-nav .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.b4y-main-header .main-nav .sub-menu li {
  display: block;
  margin: 0;
  padding: 0;
}
.b4y-main-header .main-nav .sub-menu a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  height: auto !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: var(--b4y-ink);
  white-space: normal;
}
.b4y-main-header .main-nav .sub-menu a::after {
  display: none !important;
}
.b4y-main-header .main-nav .sub-menu a:hover,
.b4y-main-header .main-nav .sub-menu a:focus-visible {
  background: var(--b4y-soft);
  color: var(--b4y-pink);
}
.b4y-main-header .main-nav .sub-menu a:focus-visible {
  outline: 2px solid var(--b4y-pink);
  outline-offset: -2px;
}
.b4y-main-header .main-nav .sub-menu svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: var(--b4y-pink);
  fill: none;
  stroke-width: 2;
}
.b4y-main-header .main-nav .sub-menu .b4y-mega-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.b4y-main-header .main-nav .sub-menu .b4y-mega-label { min-width: 0; }
.b4y-main-header .main-nav .sub-menu .b4y-mega-all a { font-weight: 800; }

/* True horizontal pill nav only exists from 768px up (below that, the
   header's own CSS — @media (max-width: 767px) above — turns .main-nav
   into a fixed off-canvas panel, burger-toggled, even on tablet and small
   desktop widths). Floating dropdown only makes sense in that pill range;
   everything below it needs the accordion instead. */
@media (min-width: 768px) {
  .menu-item-has-children.is-open > .sub-menu,
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    display: grid;
  }
  .menu-item-has-children:hover > .b4y-nav-trigger > svg,
  .menu-item-has-children:focus-within > .b4y-nav-trigger > svg {
    transform: rotate(180deg);
  }

  /* Mega-menu: a panel centred under the whole menu pill (never under one
     link), on a regular grid. Column count comes from the number of entries
     (--b4y-cols, set in site-shell.php), never from a label. Every cell has
     the same height, the icon sits in a fixed tile, labels wrap on at most
     two lines. */
  body .b4y-main-header .main-nav { position: relative; }
  body .b4y-main-header .main-nav li.menu-item-has-children { position: static; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 60;
    box-sizing: border-box;
    grid-template-columns: repeat(var(--b4y-cols, 2), minmax(0, 1fr));
    gap: 8px;
    width: calc(var(--b4y-cols, 2) * 264px + (var(--b4y-cols, 2) - 1) * 8px + 32px);
    max-width: calc(100vw - 32px);
    margin-top: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--b4y-line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(20, 24, 39, .14);
  }
  /* Invisible bridge: the pointer can cross the gap between the menu and the
     panel without losing :hover. */
  body .b4y-main-header .main-nav .sub-menu.b4y-mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 24px;
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--b4y-line);
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all a {
    justify-content: space-between;
    min-height: 0;
    padding: 4px 6px !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--b4y-heading);
    background: none;
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all a:hover,
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all a:focus-visible { color: var(--b4y-pink); background: none; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all svg { transition: transform .2s ease; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-all a:hover svg { transform: translateX(3px); }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item { display: flex; min-width: 0; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-height: 68px;
    padding: 12px 14px !important;
    border: 1px solid var(--b4y-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--b4y-soft);
    transition: background-color .15s ease;
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-ico svg { width: 20px; height: 20px; transition: stroke .15s ease; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:hover,
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:focus-visible {
    border-color: var(--b4y-pink);
    background: var(--b4y-soft);
    box-shadow: 0 6px 16px rgba(177, 38, 79, .1);
  }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:hover .b4y-mega-ico,
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:focus-visible .b4y-mega-ico { background: var(--b4y-pink); }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:hover .b4y-mega-ico svg,
  body .b4y-main-header .main-nav .sub-menu.b4y-mega .b4y-mega-item a:focus-visible .b4y-mega-ico svg { stroke: #fff; }
  body .b4y-main-header .main-nav .sub-menu.b4y-mega a:focus-visible { outline: 2px solid var(--b4y-pink); outline-offset: 2px; }
}

/* Below 768px (mobile ONLY — same fixed off-canvas
   panel throughout): inline accordion, the trigger expands the rubriques in
   place (pushing later items down) instead of a floating panel that would
   misalign inside the off-canvas panel. */
@media (max-width: 767px) {
  .b4y-nav-trigger {
    justify-content: space-between;
  }
  .b4y-nav-trigger > svg {
    width: 18px;
    height: 18px;
  }
  .b4y-main-header .main-nav .sub-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .menu-item-has-children.is-open > .sub-menu {
    display: block;
    max-height: 640px;
    padding: 4px 0 8px 6px;
  }
  .b4y-main-header .main-nav .sub-menu a {
    padding: 10px 10px !important;
  }
}

/* Body copy: one typographic rule for the editorial paragraphs of the whole
   site (home, rubrique intros, guides, articles, listings, static pages), FR
   and EN. Cards, buttons, filters, menus, metadata and footer keep their own
   UI sizes: add a selector here only for long-form text, never a per-page size. */
.b4y-explore-intro,
.b4y-explore-seo-text p,
.b4y-category-intro-text p,
.b4y-section-head p,
.b4y-guide-editorial-body > p:not(.b4y-guide-type),
.b4y-guide-content p,
.b4y-guide-content li,
.b4y-single-richtext p,
.b4y-single-richtext li,
.b4y-article-richtext p,
.b4y-article-richtext li,
.restaurant-description p,
.entry-content p,
.entry-content li,
.b4y-static-hero p:not(.b4y-pill),
.b4y-annuaire-hero-intro p {
  font-size: var(--b4y-text-body);
  line-height: var(--b4y-text-body-lh);
}
.b4y-guide-content {
  font-size: var(--b4y-text-body);
  line-height: var(--b4y-text-body-lh);
}

/* News feed block (Médias): same cards, grid and pagination as the guides.
   Médias is a news page: the block is the main content, directly under the
   breadcrumb / rubrique intro. */
.b4y-news-section { padding: 40px 0 72px; }
.b4y-news-toolbar { margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--b4y-line); }
.b4y-news-toolbar h2 { font-size: 28px; }
.b4y-news-toolbar input[type="search"] { background: #fff; }
.b4y-news-status { margin: -10px 0 24px; color: #566070; font-size: 15px; }
.b4y-news-status a { color: var(--b4y-pink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.b4y-news-grid { gap: 28px; }
.b4y-news-card .b4y-guide-editorial-body { padding: 24px; }
.b4y-news-card .b4y-news-date { margin: 0 0 10px; }
.b4y-news-card .b4y-news-title { margin: 0 0 12px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.b4y-news-card .b4y-news-title a { color: #111827; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.b4y-news-card .b4y-news-title a:hover { color: var(--b4y-pink); }
.b4y-news-card .b4y-news-excerpt { margin: 0 0 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.b4y-news-card .b4y-news-source { margin: 0 0 18px; color: #626b7a; letter-spacing: 0; text-transform: none; font-weight: 700; }
.b4y-news-card .b4y-news-cta { align-self: stretch; justify-content: center; min-height: 48px; }
/* Date, title, excerpt, source and button share the same rows across a grid
   line, so cards of a row line up whatever the text length (flex fallback above). */
@supports (grid-template-rows: subgrid) {
  .b4y-news-grid { row-gap: 0; }
  .b4y-news-card { grid-row: span 5; display: grid; grid-template-rows: subgrid; margin-bottom: 28px; }
  .b4y-news-card .b4y-guide-editorial-body { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; align-items: start; }
  .b4y-news-card .b4y-news-date { grid-row: 1; }
  .b4y-news-card .b4y-news-title { grid-row: 2; }
  .b4y-news-card .b4y-news-excerpt { grid-row: 3; }
  .b4y-news-card .b4y-news-source { grid-row: 4; align-self: end; }
  .b4y-news-card .b4y-news-cta { grid-row: 5; align-self: end; }
}
.b4y-news-pagination { flex-wrap: wrap; margin-top: 12px; }
.b4y-news-pagination .page-numbers.prev,
.b4y-news-pagination .page-numbers.next { gap: 6px; padding: 0 14px; }
.b4y-news-pagination svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 620px) {
  .b4y-news-section { padding: 28px 0 52px; }
  .b4y-news-card .b4y-news-cta { min-height: 52px; }
}
@media (max-width: 480px) {
  .b4y-news-pagination { gap: 6px; }
  .b4y-news-pagination .page-numbers.prev,
  .b4y-news-pagination .page-numbers.next { padding: 0 10px; }
}

/* ==========================================================================
   Annuaire landing (page-annuaire.php): single-column hero, category cards
   with sub-category links, and "à la une" blocks.
   ========================================================================== */
.b4y-annuaire-hero {
  min-height: 0;
  padding: 72px 0 64px;
}
.b4y-annuaire-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}
.b4y-annuaire-hero .b4y-annuaire-search {
  max-width: 900px;
}
.b4y-annuaire-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}
.b4y-annuaire-quick a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
}
.b4y-annuaire-quick a:hover,
.b4y-annuaire-quick a:focus-visible {
  background: #fff;
  color: #8C1E3F;
}
.b4y-annuaire-cats .b4y-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}
.b4y-annuaire-cats .b4y-section-head p {
  margin: 0;
  color: #647084;
}
.b4y-annuaire-cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.b4y-annuaire-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  height: 100%;
}
.b4y-annuaire-cat-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.b4y-annuaire-cat .b4y-annuaire-cat-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff0f7;
  color: #B1264F;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b4y-annuaire-cat-main strong {
  font-size: 16px;
  line-height: 1.25;
}
.b4y-annuaire-cat-main em {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.4;
}
.b4y-annuaire-cat-main:hover strong,
.b4y-annuaire-cat-main:focus-visible strong {
  color: #B1264F;
}
.b4y-annuaire-subcats {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #f0f0f5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.b4y-annuaire-subcats a {
  display: inline-block;
  font-size: 12.5px;
  color: #495365;
  text-decoration: none;
  background: #f5f6fa;
  border-radius: 999px;
  padding: 5px 11px;
}
.b4y-annuaire-subcats a:hover,
.b4y-annuaire-subcats a:focus-visible {
  background: #fff0f7;
  color: #B1264F;
}
.b4y-annuaire-block .b4y-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 22px;
}
.b4y-annuaire-block .b4y-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #B1264F;
  font-weight: 700;
  text-decoration: none;
}
.b4y-annuaire-block .b4y-section-head a svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1100px) {
  .b4y-annuaire-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .b4y-annuaire-hero {
    padding: 44px 0 40px;
  }
  .b4y-annuaire-cat-grid {
    grid-template-columns: 1fr;
  }
  .b4y-annuaire-stats {
    display: flex;
  }
}
.b4y-annuaire-hero:not(.b4y-annuaire-hero--category):not(.b4y-annuaire-hero--directory)::before {
  background: linear-gradient(90deg, rgba(10, 14, 25, .9) 0%, rgba(10, 14, 25, .7) 60%, rgba(10, 14, 25, .4) 100%);
}
@media (max-width: 900px) {
  .b4y-annuaire-hero:not(.b4y-annuaire-hero--category):not(.b4y-annuaire-hero--directory)::before {
    background: rgba(10, 14, 25, .72);
  }
}
@media (max-width: 680px) {
  .b4y-annuaire-stats {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .b4y-annuaire-stats span {
    flex: 1 1 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Annuaire default banner (.b4y-annuaire-hero--directory): light illustrated
   image (laptop on the right, empty space on the left), one file per language.
   >=1360px: image covers the banner, anchored right so the laptop is never cut,
   dark copy on the bright left behind a soft white veil.
   <1360px: the copy would overlap the laptop, so the whole image is shown as a
   strip (never cropped or distorted) above the copy, faded into the page.
   ========================================================================== */
.b4y-annuaire-hero--directory {
  --b4y-strip: min(43vw, 420px);
  background: #f4f5f9 var(--b4y-hero-img) right bottom / cover no-repeat;
  color: #172033;
  min-height: min(46vw, 700px);
  padding: 48px 0;
}
.b4y-annuaire-hero--directory::before {
  display: block;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .78) 34%, rgba(255, 255, 255, 0) 52%);
}
.b4y-annuaire-hero--directory .b4y-annuaire-hero-intro,
.b4y-annuaire-hero--directory .b4y-annuaire-search,
.b4y-annuaire-hero--directory .b4y-annuaire-quick {
  max-width: 540px;
}
.b4y-annuaire-hero--directory .b4y-annuaire-stats {
  display: none;
}
.b4y-annuaire-hero--directory h1 {
  color: #172033;
  font-size: clamp(34px, 3.4vw, 50px);
  max-width: none;
}
.b4y-annuaire-hero--directory .b4y-annuaire-hero-intro p {
  color: #3d4859;
  font-size: 16px;
}
.b4y-annuaire-hero--directory .b4y-pill {
  color: #8C1E3F;
  border-color: rgba(177, 38, 79, .4);
  background: rgba(255, 255, 255, .7);
}
.b4y-annuaire-hero--directory .b4y-annuaire-search {
  filter: drop-shadow(0 12px 28px rgba(23, 32, 51, .14));
}
.b4y-annuaire-hero--directory .b4y-annuaire-quick {
  color: #495365;
}
.b4y-annuaire-hero--directory .b4y-annuaire-quick a {
  color: #172033;
  background: rgba(255, 255, 255, .9);
  border-color: #dfe1ea;
}
.b4y-annuaire-hero--directory .b4y-annuaire-quick a:hover,
.b4y-annuaire-hero--directory .b4y-annuaire-quick a:focus-visible {
  background: #B1264F;
  border-color: #B1264F;
  color: #fff;
}
@media (max-width: 1359px) {
  .b4y-annuaire-hero--directory {
    background: #fff;
    display: block;
    min-height: 0;
    padding: calc(var(--b4y-strip) + 8px) 0 36px;
  }
  .b4y-annuaire-hero--directory::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--b4y-strip);
    background: var(--b4y-hero-img) center top / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-composite: intersect;
  }
  .b4y-annuaire-hero--directory .b4y-annuaire-hero-intro,
  .b4y-annuaire-hero--directory .b4y-annuaire-search,
  .b4y-annuaire-hero--directory .b4y-annuaire-quick {
    max-width: 760px;
  }
  .b4y-annuaire-hero--directory h1 {
    font-size: clamp(30px, 5.5vw, 44px);
  }
}

/* Editorial cards (image on top, title/subtitle/icon/arrow in a text zone below,
   e.g. Shopping): that zone has no photo behind it, so it needs its own dark
   background for the white text. A light card background (used behind full-bleed
   photos) made the text unreadable. */
.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2.b4y-editorial-card {
  background: linear-gradient(180deg, #1c2540 0%, #0d1424 100%) !important;
}


/* --- Acces a l'espace professionnel (jalon 9) ---------------------------------------------------------------
   Desktop (>= 768 px) : petit lien arrondi a droite de la barre d'annonce (la place est libre ; l'en-tete est deja
   plein). En dessous : element dedie en bas du menu burger. Si la barre d'annonce est desactivee : icone compacte
   dans les actions du header (meme gabarit que la recherche). */
.b4y-top-bar-pro {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 99px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.b4y-top-bar-pro svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b4y-top-bar-pro:hover,
.b4y-top-bar-pro:focus-visible,
.b4y-top-bar-pro[aria-current="page"] {
  background: var(--white);
  color: var(--b4y-pink);
}
.b4y-top-bar-pro:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.b4y-nav-pro-item,
body .b4y-main-header .main-nav .b4y-nav-pro-item { display: none !important; }
.b4y-header-pro { display: none; }
@media (min-width: 768px) {
  .b4y-top-bar-pro { display: inline-flex; }
  .b4y-header-pro { display: inline-flex; }
}
@media (max-width: 767px) {
  body .b4y-main-header .main-nav .b4y-nav-pro-item {
    display: block !important;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line, #e6e1eb);
  }
  .b4y-main-header .main-nav a.b4y-nav-pro {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--b4y-pink);
  }
  .b4y-main-header .main-nav a.b4y-nav-pro svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* ==========================================================================
   Rythme vertical commun des pages de listing (recherche + filtres + resultats)
   Une seule regle pour Restaurants, Hotels, Evenements, Offres d'emploi, Adresses, Partenaires, categories
   (Sante, Shopping, Ecoles...), Guides, Annuaire (resultats) et Recherche. Marqueurs de gabarit :
   .b4y-listing-head    section qui porte le titre + les filtres + la ligne de resultats ;
   .b4y-listing-results section qui porte les resultats (peut etre la meme section ou la suivante).
   fil d'Ariane -> titre -> filtres -> ligne « X resultats » -> premieres cartes.
   ========================================================================== */
:root {
	--b4y-ls-top: 24px;           /* fil d'Ariane -> titre */
	--b4y-ls-title-filters: 12px; /* titre -> bloc de filtres */
	--b4y-ls-filters-results: 14px; /* filtres -> ligne de resultats */
	--b4y-ls-before-cards: 22px;  /* ligne de resultats -> premieres cartes */
}
.b4y-breadcrumb-bar + .b4y-listing-head,
.b4y-breadcrumb-bar + .b4y-listing-results {
	padding-top: var(--b4y-ls-top);
}
/* Le titre et les filtres ne laissent plus de marge basse : l'espace avant les cartes est porte par la ligne de resultats. */
.b4y-listing-head:not(.b4y-listing-results) {
	padding-bottom: 0;
}
/* GeneratePress ajoute 20px sous chaque enfant direct de .site-main : le fil d'Ariane ne doit pas s'ajouter au rythme ci-dessus. */
.b4y-breadcrumb-bar:has(+ .b4y-listing-head),
.b4y-breadcrumb-bar:has(+ .b4y-listing-results) {
	margin-bottom: 0;
}
body .b4y-listing-head + .b4y-listing-results.b4y-directory-section,
body .b4y-listing-head + .b4y-listing-results {
	padding-top: 0;
}
.b4y-listing-head .section-heading {
	margin-bottom: var(--b4y-ls-title-filters);
}
.b4y-listing-head .section-heading h2 {
	margin-bottom: 10px;
}
.b4y-listing-head .b4y-filter-bar {
	margin-bottom: var(--b4y-ls-filters-results);
}
.b4y-listing-head .b4y-results-summary {
	margin: 0 0 var(--b4y-ls-before-cards);
}
.b4y-listing-head .b4y-guides-toolbar {
	align-items: flex-start; /* titre en haut, a la hauteur du fil d'Ariane, comme les autres pages */
	margin-bottom: var(--b4y-ls-before-cards);
}
.b4y-listing-head .b4y-guides-toolbar .b4y-filter-bar {
	margin-bottom: 0;
}
/* Annuaire (resultats) : meme distance entre le fil d'Ariane / le titre et les cartes. */
.b4y-annuaire-main.b4y-listing-results .b4y-section-head {
	margin-bottom: var(--b4y-ls-before-cards);
}
@media (max-width: 680px) {
	:root {
		--b4y-ls-top: 18px;
		--b4y-ls-filters-results: 12px;
		--b4y-ls-before-cards: 18px;
	}
}

/* ==========================================================================
   Carrousel « A la une » (composant unique : inc/carousel.php + assets/js/b4y-carousel.js)
   La piste est la grille existante : meme design de cartes, defilement horizontal avec accrochage (swipe natif).
   ========================================================================== */
.b4y-carousel {
	position: relative;
	--b4y-car-gap: 20px;
}
.b4y-carousel .b4y-carousel__track {
	display: flex;
	grid-template-columns: none;
	gap: var(--b4y-car-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 12px 16px 36px; /* laisse voir l'ombre des cartes (pas de coupure par le defilement) */
	margin: -12px -16px -20px;
	scroll-padding-inline: 16px;
}
.b4y-carousel .b4y-carousel__track::-webkit-scrollbar { display: none; }
.b4y-carousel .b4y-carousel__track > * {
	flex: 0 0 calc((100% - (var(--b4y-car-cols) - 1) * var(--b4y-car-gap)) / var(--b4y-car-cols));
	min-width: 0;
	scroll-snap-align: start;
}
.b4y-carousel .b4y-carousel__track:focus-visible {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
	border-radius: 12px;
}
.b4y-carousel__btn {
	position: absolute;
	top: 42%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #dfe2e9;
	border-radius: 50%;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 6px 18px rgba(17, 24, 39, .16);
	cursor: pointer;
	transform: translateY(-50%);
}
.b4y-carousel__btn--prev { left: -14px; }
.b4y-carousel__btn--next { right: -14px; }
.b4y-carousel__btn svg {
	width: 20px;
	height: 20px;
	max-width: none;
	max-height: none;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.b4y-carousel__btn:hover:not(:disabled) { border-color: #B1264F; color: #B1264F; }
.b4y-carousel__btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.b4y-carousel__btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.b4y-carousel.is-static .b4y-carousel__btn { display: none; }
@media (max-width: 1024px) {
	.b4y-carousel { --b4y-car-gap: 16px; }
	/* Tablette : le débord de la piste (16 px) dépassait de 2 px la marge latérale du conteneur (14 px) -> défilement horizontal de la page. */
	.b4y-carousel .b4y-carousel__track { padding-inline: 14px; margin-inline: -14px; scroll-padding-inline: 14px; }
	.b4y-carousel .b4y-carousel__track > * { flex-basis: calc((100% - var(--b4y-car-gap)) / 2); }
	.b4y-carousel__btn--prev { left: -8px; }
	.b4y-carousel__btn--next { right: -8px; }
}
@media (max-width: 680px) {
	.b4y-carousel { --b4y-car-gap: 14px; }
	.b4y-carousel .b4y-carousel__track { padding: 10px 12px 30px; margin: -10px -12px -16px; scroll-padding-inline: 12px; }
	/* une carte + un apercu de la suivante : invite au balayage */
	.b4y-carousel .b4y-carousel__track > * { flex-basis: 86%; }
	.b4y-carousel__btn { width: 40px; height: 40px; top: 36%; }
	.b4y-carousel__btn--prev { left: -4px; }
	.b4y-carousel__btn--next { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
	.b4y-carousel .b4y-carousel__track { scroll-behavior: auto; }
}

/* Section « A la une » placee avant la liste d'une archive / d'une categorie : meme rythme que le reste des pages de listing. */
.b4y-breadcrumb-bar + .b4y-featured-block { padding-top: var(--b4y-ls-top); }
.b4y-breadcrumb-bar:has(+ .b4y-featured-block) { margin-bottom: 0; }
.b4y-archive-featured,
.b4y-category-featured { padding-bottom: 0; }
.b4y-featured-block + .b4y-listing-head { padding-top: var(--b4y-ls-top); }
.b4y-archive-featured .b4y-section-head,
.b4y-category-featured .b4y-section-head { margin-bottom: 22px; } /* le soulignement du titre ne touche pas les cartes */

/* ==========================================================================
   Footer global (inc/site-shell.php : b4y_render_site_footer) - un seul gabarit pour tout le site
   ========================================================================== */
.b4y-site-footer {
	padding: 56px 0 28px;
}
.b4y-site-footer .b4y-footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.15fr 1.25fr;
	gap: 40px 56px;
	align-items: start;
}
.b4y-site-footer .b4y-footer-col { min-width: 0; }
.b4y-site-footer h2 {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: .02em;
	line-height: 1.3;
}
.b4y-site-footer h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	border-radius: 999px;
	background: var(--b4y-pink, #B1264F);
}
.b4y-site-footer .b4y-footer-text {
	max-width: 340px;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, .82);
	font-size: .95rem;
	line-height: 1.65;
}
.b4y-site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.b4y-site-footer .b4y-footer-links a,
.b4y-site-footer .b4y-footer-contact a,
.b4y-site-footer .b4y-footer-legal a,
.b4y-site-footer .b4y-footer-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: rgba(255, 255, 255, .84);
	font-size: .95rem;
	text-decoration: none;
	border-radius: 4px;
	transition: color .15s ease;
}
.b4y-site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.b4y-site-footer a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	color: #fff;
}
.b4y-site-footer .b4y-footer-icon {
	flex: none;
	width: 18px;
	height: 18px;
	max-width: none;
	max-height: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.b4y-site-footer .b4y-footer-contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	color: rgba(255, 255, 255, .84);
	font-size: .95rem;
}
.b4y-site-footer .b4y-footer-contact .b4y-footer-icon { color: rgba(255, 255, 255, .6); }
.b4y-site-footer .b4y-footer-contact-link {
	margin-top: 10px;
	color: #fff;
	font-weight: 700;
}
.b4y-site-footer .b4y-footer-contact-link .b4y-footer-icon { width: 16px; height: 16px; }
/* Réseaux sociaux (colonne « Contact ») : logos blancs, contour discret, survol rose Benin4you. */
.b4y-site-footer .b4y-footer-social { margin-top: 22px; }
.b4y-site-footer .b4y-footer-social h3 { margin: 0 0 12px; color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.b4y-site-footer ul.b4y-social-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.b4y-site-footer .b4y-social-list li { margin: 0; list-style: none; }
.b4y-site-footer .b4y-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	color: #fff;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.b4y-site-footer .b4y-social-link svg { width: 22px; height: 22px; fill: currentColor; }
.b4y-site-footer .b4y-social-link:hover { background: var(--b4y-pink, #B1264F); border-color: var(--b4y-pink, #B1264F); color: #fff; text-decoration: none; transform: translateY(-2px); }
.b4y-site-footer .b4y-social-link.is-pending { cursor: default; }
.b4y-site-footer a.b4y-social-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .b4y-site-footer .b4y-social-link, .b4y-site-footer .b4y-social-link:hover { transition: none; transform: none; } }
.b4y-site-footer .b4y-footer-pro {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
}
.b4y-site-footer .b4y-footer-pro:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.b4y-site-footer .b4y-footer-bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 40px;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .78);
	font-size: .875rem;
}
.b4y-site-footer .b4y-footer-legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.b4y-site-footer .b4y-footer-legal a,
.b4y-site-footer .b4y-footer-legal span { min-height: 28px; display: inline-flex; align-items: center; font-size: .875rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 1100px) {
	.b4y-site-footer .b4y-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
}
@media (max-width: 680px) {
	.b4y-site-footer { padding: 40px 0 24px; }
	.b4y-site-footer .b4y-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.b4y-site-footer h2 { margin-bottom: 16px; }
	.b4y-site-footer .b4y-footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 30px; }
}

/* Pages legales (template-legal.php) : bandeau de titre sobre + texte lisible. */
.b4y-legal-head {
	padding: 56px 0 44px;
	background: linear-gradient(135deg, #25242b 0%, #3a2740 100%);
	color: #fff;
}
.b4y-legal-head h1 {
	margin: 0;
	max-width: 860px;
	color: #fff;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.1;
	letter-spacing: -.02em;
	font-weight: 850;
}
.b4y-legal-section { padding-top: 40px; padding-bottom: 72px; }
.b4y-legal-content {
	max-width: 820px;
	color: #1f2937;
	font-size: 17px;
	line-height: 1.75;
}
.b4y-legal-content h2 {
	margin: 36px 0 12px;
	font-size: 1.4rem;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: #141827;
}
.b4y-legal-content p { margin: 0 0 16px; }
.b4y-legal-content a { color: #8C1E3F; text-decoration: underline; text-underline-offset: 3px; }
.b4y-legal-content .b4y-demo-notice {
	margin: 0 0 28px;
	padding: 14px 18px;
	border: 1px solid #f0c36d;
	border-left-width: 5px;
	border-radius: 10px;
	background: #fff8e6;
	color: #5b3b00;
}
.b4y-legal-content .b4y-demo-notice p { margin: 0; }
@media (max-width: 680px) {
	.b4y-legal-head { padding: 40px 0 32px; }
	.b4y-legal-section { padding-top: 28px; padding-bottom: 48px; }
	.b4y-legal-content { font-size: 16px; }
}

/* ==========================================================================
   Bannieres de page : composant commun (meme rendu que le slider d'accueil).
   Image naturelle, aucun voile global ; texte blanc dans un panneau sombre
   semi-transparent qui englobe titre + description ; pastille opaque ; CTA
   hors du panneau. Le balisage est `.b4y-hero-text-panel` dans chaque banniere.
   ========================================================================== */
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) {
  --b4y-hero-panel-bg: rgba(8, 13, 26, .62);
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero)::before {
  background-image: none;
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel {
  display: block;
  width: fit-content;
  max-width: min(760px, 100%);
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 26px);
  border-radius: 12px;
  background: var(--b4y-hero-panel-bg);
  color: #fff;
  text-shadow: none;
  overflow-wrap: break-word;
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel :is(h1, p, span, strong, .b4y-category-breadcrumbs) {
  color: #fff;
  text-shadow: none;
  max-width: none;
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel h1 {
  margin: 0;
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel h1 + * {
  margin-top: 12px;
}
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel > :last-child {
  margin-bottom: 0;
}
/* Pastille / label : fond sombre opaque, texte blanc (comme le slider). */
:is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
    .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-pill {
  background: rgba(8, 13, 26, .8);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  text-shadow: none;
}
@media (max-width: 560px) {
  :is(.b4y-portal-hero:not(.b4y-editorial-hero), .b4y-portal-single-hero, .b4y-static-hero, .b4y-article-hero,
      .b4y-guides-hero, .b4y-photo-stories-hero, .b4y-event-banner, .restaurant-detail-hero) .b4y-hero-text-panel {
    width: 100%;
  }
}
/* Pages de detail : lien retour et badges lisibles sur n'importe quelle image. */
:is(.b4y-portal-single-hero, .b4y-article-hero, .restaurant-detail-hero) .back-link,
:is(.b4y-portal-single-hero, .b4y-article-hero, .restaurant-detail-hero) .b4y-detail-badge,
:is(.b4y-portal-single-hero, .b4y-article-hero, .restaurant-detail-hero) .single-badges span {
  background: rgba(8, 13, 26, .8);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-shadow: none;
}
:is(.b4y-portal-single-hero, .b4y-article-hero, .restaurant-detail-hero) .back-link {
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}
:is(.b4y-portal-single-hero, .b4y-article-hero, .restaurant-detail-hero) .back-link {
  align-self: flex-start;
  width: fit-content;
}
.b4y-hero-text-panel + .b4y-theme-listing-cta {
  margin-top: 0;
}

/* --- Pôles : cartes de rubrique et état courant ------------------------------------------------------------ */
.b4y-pole-count {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(8, 13, 26, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.b4y-pole-card.is-current .b4y-rubrique-card-link {
  outline: 4px solid var(--c, var(--primary, #B1264F));
  outline-offset: -4px;
}
/* Pictogramme et liseré des cartes : couleur officielle du pôle (b4y_pole_style()). */
.b4y-pole-card .b4y-rubrique-badge .b4y-card-icon {
  background: var(--c) !important;
  color: var(--c-on, #fff) !important;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(8, 13, 26, .3) !important;
}
.b4y-pole-card .b4y-rubrique-info { border-left: 5px solid var(--c); }
/* Cartes de pôle : photo naturelle, sans voile ni dégradé ni filtre. La lisibilité vient d'un petit fond sombre semi-transparent
   limité au bloc de texte (même principe que la bannière des pages de pôle). */
.b4y-pole-card .b4y-rubrique-overlay {
  display: none !important;
}
.b4y-pole-card .b4y-rubrique-bg img,
.b4y-pole-card:hover .b4y-rubrique-bg img {
  filter: none !important;
}
/* Survol discret : la photo ne zoome pas (ni recadrage, ni impression de voile) ; la carte se soulève légèrement. */
.b4y-pole-card:hover .b4y-rubrique-bg img {
  transform: none !important;
}
.b4y-pole-card:hover {
  transform: translateY(-3px) !important;
}
.b4y-pole-card .b4y-rubrique-info {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px;
  background: rgba(8, 13, 26, .62);
}
.b4y-pole-card .b4y-rubrique-info h3,
.b4y-pole-card .b4y-rubrique-desc {
  text-shadow: none !important;
  color: #fff !important;
}
.b4y-pole-card .b4y-rubrique-desc {
  font-size: 14px !important;
}
@media (max-width: 680px) {
  /* Mobile : bloc de texte compact pour que la photo reste dominante. */
  .b4y-pole-card .b4y-rubrique-info {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
    border-radius: 12px;
  }
  .b4y-pole-card .b4y-rubrique-info h3 {
    margin: 0 0 3px !important;
    font-size: 18px !important;
  }
  .b4y-pole-card .b4y-rubrique-desc {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }
  .b4y-pole-card .b4y-rubrique-desc-row {
    gap: 10px !important;
  }
  .b4y-pole-card .b4y-rubrique-arrow-btn {
    width: 28px !important;
    height: 28px !important;
  }
}
/* Filtres géographiques (pôle, commune) : assez larges pour « Pôle Grand-Nokoué ». */
.b4y-filter-field:has(select[data-b4y-geo]) {
  flex: 1 1 230px;
}

/* --- Module « Explorez par pôle » (accueil) ---------------------------------------------------------------- */
.b4y-poles-module .b4y-section-head p {
  margin: 14px 0 0;
  max-width: 62ch;
  color: #566070;
}
.b4y-poles-layout {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
}
.b4y-poles-map {
  padding: 16px;
  border: 1px solid var(--line, #e6e1eb);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 23, 34, .07);
}
.b4y-poles-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  margin: 0 auto;
  stroke: none;
  fill: none;
}
.b4y-poles-layout > * { min-width: 0; }
.b4y-pole-shape { cursor: pointer; outline: none; }
.b4y-pole-shape path {
  fill: var(--c);
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
  transition: opacity .2s ease, filter .2s ease;
}
.b4y-pole-shape text {
  pointer-events: none;
  fill: var(--c-on, #fff);
  stroke: var(--c); /* liseré à la couleur du pôle : le nom reste lisible s'il déborde de la forme */
  stroke-width: 4px;
  paint-order: stroke;
  stroke-linejoin: round;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}
.b4y-pole-shape:hover path,
.b4y-pole-shape:focus-visible path { filter: brightness(.93); }
.b4y-pole-shape:focus-visible path { stroke: #181722; stroke-width: 5; }
/* Les six couleurs officielles restent pleines : la sélection se lit au contour sombre épaissi et à l'ombre. */
.b4y-pole-shape.is-active path { stroke: #181722; stroke-width: 4; }
/* Pôle sélectionné : en plus du contour sombre épaissi et de l'atténuation des autres pôles (repères non colorés), halo à la couleur du pôle. */
.b4y-poles-map .b4y-pole-shape.is-active:not(.is-featured) path { filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--c-strong) 70%, transparent)); } /* pôle sélectionné : ombre à la teinte du pôle */

.b4y-poles-tabs {
  display: none;
  margin: 0 0 14px;
  padding: 0 0 6px;
  list-style: none;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.b4y-pole-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line, #e6e1eb);
  border-radius: 99px;
  background: #fff;
  color: #181722;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
}
.b4y-pole-tab::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(13, 31, 20, .35);
}
.b4y-pole-tab.is-active { background: #181722; border-color: #181722; color: #fff; }
.b4y-pole-tab.is-active::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.b4y-pole-tab:focus-visible { outline: 3px solid var(--primary, #B1264F); outline-offset: 2px; }

.b4y-pole-detail {
  display: none;
  overflow: hidden;
  border: 1px solid var(--line, #e6e1eb);
  border-top: 6px solid var(--c);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 23, 34, .07);
  outline: none;
}
.b4y-pole-detail.is-active,
.b4y-pole-detail:target { display: block; }
.b4y-poles-panel:has(.b4y-pole-detail:target) .b4y-pole-detail.is-active:not(:target) { display: none; }
.b4y-pole-detail-media { height: 170px; background: #f0eaf2; }
.b4y-pole-detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b4y-pole-detail-body { padding: 22px 24px 26px; }
.b4y-pole-detail-body h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.b4y-pole-desc { margin: 0 0 18px; color: #566070; line-height: 1.55; }
.b4y-pole-label {
  margin: 18px 0 10px;
  color: #181722;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.b4y-pole-communes,
.b4y-pole-needs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.b4y-commune-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line, #e6e1eb);
  border-radius: 99px;
  background: #f7f5fa;
  color: #3b3a46;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.b4y-commune-chip.has-content { background: #fff; color: #181722; font-weight: 700; border-color: #cfc8d6; }
.b4y-commune-chip:hover { border-color: var(--c-strong); }
.b4y-commune-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c-strong); color: var(--c-on, #fff); }
.b4y-commune-chip:focus-visible { outline: 3px solid var(--primary, #B1264F); outline-offset: 2px; }
.b4y-pole-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.b4y-pole-needs li[hidden] { display: none; }
.b4y-pole-need {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line, #e6e1eb);
  border-radius: 12px;
  background: #fff;
  color: #181722;
  font-weight: 700;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.b4y-pole-need:hover,
.b4y-pole-need:focus-visible { border-color: var(--c-strong); box-shadow: 0 8px 20px rgba(24, 23, 34, .1); transform: translateY(-1px); }
.b4y-pole-need:focus-visible { outline: 3px solid var(--primary, #B1264F); outline-offset: 2px; }
.b4y-pole-need-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--c); color: var(--c-on, #fff); flex: none; }
.b4y-pole-need-icon svg { width: 18px; height: 18px; }
.b4y-pole-need-name { flex: 1; min-width: 0; line-height: 1.25; }
.b4y-pole-need-count { padding: 2px 9px; border-radius: 99px; background: #f0eaf2; font-size: 13px; }
.b4y-pole-empty { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #f7f5fa; color: #566070; font-size: 14px; }
.b4y-pole-empty[hidden] { display: none; }
.b4y-pole-empty a { color: var(--primary, #B1264F); font-weight: 700; }

@media (max-width: 900px) {
  .b4y-poles-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .b4y-poles-map { padding: 12px; }
  .b4y-poles-map svg { max-height: 340px; }
  .b4y-poles-tabs { display: flex; }
  .b4y-pole-detail-media { height: 140px; }
}
@media (max-width: 480px) {
  .b4y-poles-map svg { max-height: 280px; }
  .b4y-pole-detail-body { padding: 18px 16px 22px; }
  .b4y-pole-needs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .b4y-pole-need, .b4y-pole-shape path { transition: none; }
}

/* Module pôles : en-tête aligné sur « Explorez le Bénin », visuel au ratio maîtrisé. */
.b4y-poles-module .b4y-section-head { align-items: flex-end; }
.b4y-poles-module .b4y-poles-intro { margin: 14px 0 0; max-width: 68ch; color: #566070; line-height: 1.6; }
.b4y-poles-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #394355; white-space: nowrap; }
.b4y-poles-cta svg { width: 16px; height: 16px; }
.b4y-pole-detail-media { height: auto; aspect-ratio: 16 / 7; }
@media (max-width: 900px) { .b4y-pole-detail-media { height: auto; aspect-ratio: 16 / 6; } }
@media (max-width: 560px) { .b4y-pole-detail-media { aspect-ratio: 16 / 8; } }
@media (max-width: 680px) { .b4y-poles-module .b4y-section-head { align-items: flex-start; } }

/* --- Carte des pôles : le Grand-Nokoué reste mis en avant (contour sombre, nom renforcé), à sa couleur officielle --- */
.b4y-poles-map .b4y-pole-shape.is-featured path { stroke: #181722; stroke-width: 3.5; }
.b4y-poles-map .b4y-pole-shape.is-featured text { font-size: 18px !important; font-weight: 900; }
.b4y-poles-map .b4y-pole-shape.is-featured:focus-visible path,
.b4y-poles-map .b4y-pole-shape.is-featured.is-active path { stroke: #181722; stroke-width: 5; filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--c-strong) 80%, transparent)); }
.b4y-pole-tab[data-pole="grand-nokoue"]::before { box-shadow: 0 0 0 2px #181722; } /* même repère non coloré que sur la carte (teinte très proche du Centre) */

/* --- Rubriques en 2 colonnes (desktop) : une carte seule sur la dernière ligne est centrée ---------------- */
@media (min-width: 861px) {
  .b4y-rubriques-grid-v2 > .b4y-rubrique-card-v2:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
}

/* --- Médias : mention de la source des actualités (AllAfrica) ---------------------------------------------- */
.b4y-news-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--b4y-line, #e6e1eb);
  border-left: 4px solid var(--b4y-pink, #B1264F);
  border-radius: 12px;
  background: #fbf6f9;
  color: #3b4352;
}
.b4y-news-notice-icon {
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--b4y-pink, #B1264F);
  box-shadow: 0 4px 12px rgba(24, 23, 34, .08);
}
.b4y-news-notice h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; color: #181722; }
.b4y-news-notice p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 80ch; }
@media (max-width: 560px) {
  .b4y-news-notice { padding: 16px; gap: 12px; }
  .b4y-news-notice-icon { width: 34px; height: 34px; }
}

/* --- Pages éditoriales (Coût de la vie, Sécurité…) : sommaire + article lisible ----------------------------- */
.b4y-editorial-section { padding: 48px 0 80px; }
.b4y-editorial-layout { display: grid; gap: 28px; }
.b4y-editorial-layout.has-toc { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 56px; align-items: start; }
.b4y-editorial-toc { position: sticky; top: 104px; padding: 22px 20px; border: 1px solid var(--b4y-line, #ececf3); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(24, 23, 34, .06); }
.b4y-editorial-toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #626b7a; }
.b4y-editorial-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: ed; display: grid; gap: 2px; }
.b4y-editorial-toc li { counter-increment: ed; }
.b4y-editorial-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; color: #2b3445; font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.b4y-editorial-toc a::before { content: counter(ed); flex: none; min-width: 1.4em; font-weight: 800; color: var(--b4y-pink, #B1264F); }
.b4y-editorial-toc a:hover, .b4y-editorial-toc a:focus-visible { background: #fbf6f9; color: #8C1E3F; }
.b4y-editorial-toc a:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 2px; }
.b4y-editorial-article { min-width: 0; max-width: 780px; }
.b4y-editorial-layout:not(.has-toc) .b4y-editorial-article { margin-inline: auto; }
.b4y-editorial-title { position: relative; margin: 0 0 32px; padding-bottom: 18px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; color: #181722; text-wrap: balance; }
.b4y-editorial-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; border-radius: 99px; background: var(--b4y-pink, #B1264F); }
.b4y-editorial-content { font-size: 17px; line-height: 1.75; color: #2b3445; overflow-wrap: anywhere; }
.b4y-editorial-content > * { margin-top: 0; margin-bottom: 18px; }
.b4y-editorial-content h2 { margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--b4y-line, #ececf3); font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; color: #181722; scroll-margin-top: 100px; }
.b4y-editorial-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.b4y-editorial-content h3 { margin: 32px 0 10px; font-size: 19px; line-height: 1.3; color: #8C1E3F; scroll-margin-top: 100px; }
.b4y-editorial-content .b4y-ed-callout { padding: 16px 20px; border: 1px solid #f0dce8; border-left: 4px solid var(--b4y-pink, #B1264F); border-radius: 12px; background: #fbf6f9; color: #2b3445; }
.b4y-editorial-content .b4y-ed-note { margin-bottom: 12px; font-size: 14px; line-height: 1.5; color: #626b7a; }
.b4y-editorial-content ul.wp-block-list { margin-inline: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.b4y-editorial-content ul.wp-block-list > li { padding: 10px 14px 10px 36px; position: relative; border: 1px solid var(--b4y-line, #ececf3); border-radius: 10px; background: #fff; line-height: 1.5; }
.b4y-editorial-content ul.wp-block-list > li::before { content: ""; position: absolute; left: 15px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--b4y-pink, #B1264F); }
.b4y-editorial-content ul.b4y-ed-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b4y-editorial-content ul.b4y-ed-emergency { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b4y-editorial-content ul.b4y-ed-emergency > li { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #B1264F, #8C1E3F); color: #fff; box-shadow: 0 14px 30px rgba(177, 38, 79, .22); }
.b4y-editorial-content ul.b4y-ed-emergency > li::before { display: none; }
.b4y-editorial-content ul.b4y-ed-emergency .b4y-ed-service { font-size: 14px; line-height: 1.35; font-weight: 600; opacity: .95; }
.b4y-editorial-content ul.b4y-ed-emergency strong { display: block; order: -1; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.b4y-editorial-content ul.b4y-ed-emergency > li, .b4y-editorial-content ul.b4y-ed-emergency > li strong, .b4y-editorial-content ul.b4y-ed-emergency .b4y-ed-service { color: #fff; }
.b4y-editorial-content ul.b4y-ed-emergency > li { font-size: 14px; line-height: 1.45; }
.b4y-editorial-content ul.b4y-ed-emergency > li a, .b4y-editorial-content ul.b4y-ed-emergency > li a:visited { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.b4y-editorial-content ul.b4y-ed-emergency > li a:hover, .b4y-editorial-content ul.b4y-ed-emergency > li a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.b4y-editorial-content ul.b4y-ed-emergency > li a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 3px; }
.b4y-editorial-content .wp-block-table { margin-inline: 0; overflow-x: auto; border: 1px solid var(--b4y-line, #ececf3); border-radius: 14px; box-shadow: 0 12px 30px rgba(24, 23, 34, .06); }
.b4y-editorial-content .wp-block-table table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.b4y-editorial-content .wp-block-table th { padding: 14px 18px; background: linear-gradient(135deg, #B1264F, #8C1E3F); color: #fff; text-align: left; font-size: 14px; letter-spacing: .02em; border: 0; }
.b4y-editorial-content .wp-block-table td { padding: 14px 18px; border: 0; border-top: 1px solid var(--b4y-line, #ececf3); vertical-align: top; }
.b4y-editorial-content .wp-block-table tbody tr:nth-child(even) td { background: #faf9fc; }
.b4y-editorial-content .wp-block-table td:last-child, .b4y-editorial-content .wp-block-table th:last-child { text-align: right; white-space: nowrap; font-weight: 800; }
.b4y-editorial-content .wp-block-table td:last-child { color: #8C1E3F; }
@media (max-width: 1023px) {
  .b4y-editorial-section { padding: 32px 0 60px; }
  .b4y-editorial-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .b4y-editorial-toc { position: static; padding: 14px 0 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .b4y-editorial-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .b4y-editorial-toc a { white-space: nowrap; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--b4y-line, #ececf3); border-radius: 99px; background: #fff; scroll-snap-align: start; }
  .b4y-editorial-article { max-width: none; }
}
@media (max-width: 720px) {
  .b4y-editorial-content { font-size: 16px; line-height: 1.7; }
  .b4y-editorial-content h2 { margin-top: 44px; padding-top: 22px; }
  .b4y-editorial-content ul.b4y-ed-prices, .b4y-editorial-content ul.b4y-ed-emergency { grid-template-columns: minmax(0, 1fr); }
  .b4y-editorial-content ul.b4y-ed-emergency > li { flex-direction: row; align-items: center; gap: 16px; }
  .b4y-editorial-content ul.b4y-ed-emergency strong { font-size: 32px; min-width: 3.2ch; }
  .b4y-editorial-content .wp-block-table th, .b4y-editorial-content .wp-block-table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.b4y-editorial-content a { color: #8C1E3F; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.b4y-editorial-content a:hover { color: var(--b4y-pink, #B1264F); text-decoration-thickness: 2px; }
.b4y-editorial-content a:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 2px; border-radius: 2px; }
/* Liste de contrôle (case cochée) */
.b4y-editorial-content ul.b4y-ed-checklist > li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; top: .85em; left: 11px; border-radius: 50%; background: var(--b4y-pink, #B1264F); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.b4y-editorial-content ul.b4y-ed-checklist > li { padding-left: 42px; }

/* Vitrine : mention « pas de paiement sur le site » sous les boutons de contact vendeur. */
.b4y-seller-note { flex-basis: 100%; width: fit-content; max-width: 100%; margin: 8px 0 0; padding: 8px 14px; border-radius: 8px; font-size: .92rem; line-height: 1.4; color: #fff; background: rgba(15, 18, 28, .78); }

/* Filtres : listes déroulantes plus larges (libellés longs : « Commune ou région », « Type d’hébergement ») et troncature propre. */
.b4y-filter-field:has(select) { flex: 1 1 220px; }
.b4y-filter-field:has(select[data-b4y-geo="lieu"]) { flex: 2 1 300px; }
.b4y-filter-field select { text-overflow: ellipsis; }

/* Tableaux éditoriaux à 3 colonnes ou plus : colonnes lisibles, mots jamais coupés, défilement horizontal en mobile. */
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide { -webkit-overflow-scrolling: touch; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide table { min-width: 640px; table-layout: auto; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide th,
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide td { hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; text-align: left; white-space: normal; font-weight: 400; color: inherit; vertical-align: top; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide th { font-weight: 700; color: #fff; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide td:first-child { min-width: 9rem; font-weight: 700; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide td:last-child { color: inherit; font-weight: 400; }
.b4y-editorial-content .wp-block-table.b4y-ed-table-wide td:not(:first-child) { min-width: 11rem; }
@media (max-width: 600px) { .b4y-editorial-content .wp-block-table.b4y-ed-table-wide table { min-width: 560px; } }

/* Réunion du 7 nov. 2026 : liste sans carte (E-commerce ; Transport avant toute recherche). */
.b4y-directory-layout--no-map,
.b4y-portal-layout.b4y-directory-layout--no-map {
  grid-template-columns: minmax(0, 1fr);
}

/* Page Restaurants / lieux : liste pleine largeur (plus de carte a droite). */
.panel.panel--no-map {
  grid-template-columns: minmax(0, 1fr);
}

/* Guide lié à une rubrique (3D) : lien de retour vers les annonces. */
.b4y-guide-back { margin: 14px 0 0; font-weight: 600; }
.b4y-guide-back a { color: inherit; text-decoration: underline; }

/* Bannière défilante du bandeau Hôtels (inc/hero-rotator.php). */
.b4y-directory-hero--rotator { background-image: none !important; }
.b4y-hero-rotator { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.b4y-hero-rotator__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.b4y-hero-rotator__slide.is-active { opacity: 1; }
.b4y-directory-hero--rotator:before { z-index: 1; }
.b4y-directory-hero--rotator .b4y-home-container { z-index: 2; }
.b4y-hero-rotator__controls { position: absolute; right: 16px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.b4y-hero-rotator__toggle { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: rgba(12, 16, 26, .72); color: #fff; cursor: pointer; font-size: 12px; }
.b4y-hero-rotator__dot { position: relative; width: 14px; height: 14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.b4y-hero-rotator__dot::after { content: ""; position: absolute; inset: -16px -6px; } /* zone de toucher élargie (44px) */
.b4y-hero-rotator__dot.is-active { background: #fff; }
.b4y-hero-rotator__toggle:focus-visible, .b4y-hero-rotator__dot:focus-visible { outline: 3px solid #f7b500; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .b4y-hero-rotator__slide { transition: none; } }

/* Note des visiteurs par étoiles (inc/restaurant-rating.php). */
.b4y-rating-box h2 { margin-top: 0; }
.b4y-rating-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.b4y-rating-stars { border: 0; padding: 0; margin: 0 0 12px; }
.b4y-rating-stars legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.b4y-rating-stars__row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.b4y-rating-stars__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b4y-rating-stars__row label { font-size: 34px; line-height: 1; padding: 4px 6px; min-width: 44px; min-height: 44px; text-align: center; cursor: pointer; color: #b8bcc8; }
.b4y-rating-stars__row label:hover,
.b4y-rating-stars__row label:hover ~ label,
.b4y-rating-stars__row input:checked ~ label { color: #f7b500; }
.b4y-rating-stars__row input:focus-visible + label { outline: 3px solid #141827; outline-offset: 2px; border-radius: 6px; }
.b4y-rating-notice { background: #f4f7f1; border-left: 4px solid #2e7d32; padding: 8px 12px; border-radius: 6px; }

/* Encadré « bloc-notes » d'une page éditoriale (ex. Organismes et contacts utiles, 1F). */
.b4y-notepad { position: relative; margin: 0 0 28px; padding: 22px 26px 20px 38px; background: #fff9db; border: 1px solid #ecd979; border-left: 8px solid #e0b400; border-radius: 6px; box-shadow: 0 8px 22px rgba(18, 21, 30, .08); color: #2b2b2b; }
.b4y-notepad__title { margin: 0 0 10px; font-size: 22px; color: #141827; }
.b4y-notepad__body ul { margin: 0 0 10px; padding-left: 20px; }
.b4y-notepad__body li { margin: 4px 0; }
.b4y-notepad__body p:last-child { margin-bottom: 0; }
.b4y-notepad a { color: #8C1E3F; text-decoration: underline; }
.b4y-top-search { padding-top: 22px; padding-bottom: 0; }

/* Espace pro : coordonnées de Benin4you dès l'accueil. */
.b4y-pro-contact { margin: 0 0 18px; padding: 14px 18px; background: #f7f4f8; border-radius: 12px; }
.b4y-pro-contact h2 { margin: 0 0 8px; font-size: 18px; }
.b4y-pro-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* Liens dans le texte de présentation d'une rubrique (ex. lien vers le guide en 3D) : visibles comme des liens. */
.b4y-category-intro-text a {
  color: var(--b4y-pink-dark, #8C1E3F);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.b4y-category-intro-text a:hover,
.b4y-category-intro-text a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Filtres : aucun libelle (selection, placeholder, option) n'est coupe.
   Un champ liste prend au minimum la largeur de son texte le plus long (select en largeur automatique) puis se partage
   l'espace restant ; quand la ligne est pleine, les champs passent a la ligne au lieu de se comprimer. Les libelles ne
   sont pas raccourcis. La recherche (largeur de base propre) et les cases a cocher gardent leur comportement. */
.b4y-filter-bar .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) {
  flex: 1 1 auto;
}
.b4y-filter-bar .b4y-filter-field select {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  text-overflow: clip;
}
@media (max-width: 680px) {
  .b4y-filter-bar .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) {
    flex: 1 1 100%;
  }
}

/* Petits mobiles : champs un peu plus compacts pour que meme la plus longue option (ex. « Services financiers &
   Investissements ») s'affiche en entier, sans raccourcir le libelle. */
@media (max-width: 480px) {
  .b4y-filter-bar {
    padding: 12px;
  }
  .b4y-filter-bar .b4y-filter-field {
    padding: 0 10px;
    gap: 8px;
  }
  .b4y-filter-bar .b4y-filter-field select,
  .b4y-filter-bar .b4y-filter-field input:not([type="checkbox"]) {
    font-size: 13.5px;
  }
}

/* Telephones etroits (<= 420px) : l'icone decorative des listes est masquee pour laisser toute la largeur au texte
   (ex. « Communautés & Associations spirituelles » reste lisible en entier). La recherche garde sa loupe. */
@media (max-width: 420px) {
  .b4y-filter-bar .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) > span[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 380px) {
  .b4y-filter-bar .b4y-filter-field select,
  .b4y-filter-bar .b4y-filter-field input:not([type="checkbox"]) {
    font-size: 13px;
  }
}

/* Fiches sans image reellement associee : aucune zone image ni visuel generique ; le texte occupe toute la carte
   (composant commun template-parts/listing-card.php, carrousels de la page Restaurants, resultats de recherche). */
.b4y-directory-row--no-image,
.b4y-portal-row.b4y-directory-row--no-image,
.restaurant-row--no-image {
  grid-template-columns: minmax(0, 1fr);
}
.b4y-portal-row.b4y-directory-row--no-image {
  padding: 18px 20px;
}
.b4y-directory-row--no-image .b4y-directory-info,
.b4y-portal-row.b4y-directory-row--no-image .b4y-directory-info {
  padding: 0;
}
.b4y-annuaire-card--no-image,
.b4y-annuaire-mini--no-image {
  display: block;
}
.b4y-annuaire-card--no-image > div,
.b4y-annuaire-mini--no-image > div {
  padding: 18px;
}
/* Badges (type, mise en avant) quand ils ne peuvent plus se superposer a une image : petite rangee au-dessus du titre. */
.b4y-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.b4y-card-badges span {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  background: #B1264F;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
  text-transform: uppercase;
}

/* Événements récurrents : bloc « Prochaines dates » de la fiche détail. */
.b4y-event-dates{margin:0 0 28px}
.b4y-event-dates ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.b4y-event-dates li{border:1px solid #ececf2;border-left:4px solid #B1264F;border-radius:10px;padding:10px 14px;background:#fff;color:#141827;font-weight:600}
.b4y-event-dates li.is-cancelled{border-left-color:#8a8f9c;color:#5b6070;font-weight:400}
.b4y-event-dates .b4y-event-cancelled{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#f1f1f5;color:#4a4f5e;font-size:.8em;font-weight:700}
.b4y-hero-recurrence strong{font-size:1.05em}

/* --- Audit des bannières (nov. 2026) : cadrage, hauteur, lisibilité ------------------------------------------------ */
/* Hauteur de bannière réglable par rubrique (--b4y-hero-h, méta « _b4y_category_cover_height »), ordinateur et tablette. */
@media (min-width: 681px) {
  .b4y-portal-hero[style*="--b4y-hero-h"] {
    min-height: min(var(--b4y-hero-h), 86vh);
  }
}
/* Titres de bannière : jamais de coupure au milieu d'un mot sur mobile (« Recommandatio-ns »). */
.b4y-portal-hero h1 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 420px) {
  .b4y-portal-hero .b4y-hero-text-panel h1,
  .b4y-portal-hero h1 {
    font-size: clamp(26px, 7.4vw, 32px);
  }
}
/* Bannière Restaurants sur grand écran : la photo (2,33:1) est recadrée en hauteur, on garde le haut (tête) et on rogne le bas. */
@media (min-width: 1100px) {
  .hero-restaurants::before {
    background-position: center 14%;
  }
}

/* Pages statiques (Contact...) : le titre se lit sur un panneau plus opaque devant l'illustration chargée. */
.b4y-static-page .b4y-static-hero {
  --b4y-hero-panel-bg: rgba(20, 24, 32, .86);
}

/* Cartes de pôles → listing : l'ancre #listings ne doit pas passer sous l'en-tête. */
.b4y-listing-results#listings { scroll-margin-top: 90px; }
.b4y-empty-pole p { margin: 0 0 10px; }

/* ===== Bannières : pleine largeur, sans fond flou (recette nov. 2026) =====
   Toutes les variantes « image contenue / entière / photo à droite » sont neutralisées : la photo couvre toute la bannière
   (cover) ; le sujet est réglé par bannière (focus, hauteur, position du texte). */
.b4y-portal-hero.b4y-hero-contained::before,
.b4y-portal-hero.b4y-hero-contained::after,
.b4y-portal-hero.b4y-hero-fit-mobile::before,
.b4y-portal-hero.b4y-hero-fit-mobile::after,
.b4y-directory-hero.b4y-hero-fit-desktop::before,
.b4y-directory-hero.b4y-hero-fit-desktop::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  filter: none !important;
}
@media (min-width: 681px) {
  .b4y-directory-hero.b4y-hero-fit-desktop {
    background-image: var(--b4y-hero-img) !important;
    background-size: cover !important;
    background-position: var(--b4y-hero-fit-pos, center) !important;
    background-color: transparent !important;
  }
}

/* Hauteur automatique (ordinateur / tablette) : une photo peu large (3:2, 4:3) montre davantage de sa hauteur dans une
   bannière plus haute ; une photo panoramique garde 460 px. Une hauteur réglée sur la rubrique (--b4y-hero-h) reste prioritaire. */
@media (min-width: 681px) {
  .b4y-portal-hero[style*="--b4y-img-ar"]:not([style*="--b4y-hero-h"]) {
    min-height: clamp(460px, calc(100vw / var(--b4y-img-ar) * .6), 620px);
  }
}
/* Univers Enfants & Ados : titre resserré pour ne pas couvrir le casque de la cavalière. */
@media (min-width: 681px) {
  .term-82 .b4y-hero-text-panel,
  .term-575 .b4y-hero-text-panel {
    max-width: 400px !important;
  }
}

/* ------------------------------------------------------------------ */
/* Icones d'action des evenements : calendrier (inc/event-calendar.php) + partage (inc/event-share.php) */
/* Meme composant visuel : meme taille, meme forme, meme etats. Masques tant que le JS n'a pas pris le relais (aucun bouton mort). */
/* ------------------------------------------------------------------ */
.b4y-cal-btn, .b4y-share-btn { display: none; }
.b4y-cal-ready .b4y-cal-btn,
.b4y-share-ready .b4y-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #8f889c; /* >= 3:1 sur blanc (WCAG 1.4.11) */
  border-radius: 50%;
  background: #fff;
  color: #263044;
  box-shadow: 0 2px 8px rgba(18, 21, 30, .12);
  cursor: pointer;
}
.b4y-cal-btn svg, .b4y-share-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-cal-ready .b4y-cal-btn:hover, .b4y-share-ready .b4y-share-btn:hover, .b4y-share-ready .b4y-share-btn[aria-expanded="true"] { background: #fff; border-color: #B1264F; color: #8C1E3F; }
.b4y-cal-btn:focus-visible, .b4y-share-btn:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }

/* Carte : les deux icones cote a cote dans l'angle superieur droit (calendrier a gauche du partage), sans chevaucher le titre. */
.b4y-has-tools { position: relative; }
.b4y-card-tools { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.b4y-has-tools .b4y-directory-title, .b4y-annuaire-card.b4y-has-tools h3 { padding-right: 96px; }

/* Fiche : a cote de la date, dans le hero (fond sombre). */
.b4y-cal-ready .b4y-cal-btn--hero, .b4y-share-ready .b4y-share-btn--hero { margin-left: 8px; vertical-align: middle; background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; box-shadow: none; }
.b4y-cal-ready .b4y-cal-btn--hero:hover, .b4y-share-ready .b4y-share-btn--hero:hover, .b4y-share-ready .b4y-share-btn--hero[aria-expanded="true"] { background: #fff; color: #141827; border-color: #fff; }

/* Infobulle (survol / focus clavier) sous l'icone, alignee a droite ; masquee quand le menu de partage est ouvert et sur ecran tactile (le nom accessible fait foi). */
.b4y-cal-btn::after, .b4y-share-btn::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; padding: 6px 10px; border-radius: 6px; background: #141827; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.b4y-cal-btn:hover::after, .b4y-cal-btn:focus-visible::after, .b4y-share-btn:hover::after, .b4y-share-btn:focus-visible::after { opacity: 1; }
.b4y-share-btn[aria-expanded="true"]::after { display: none; }
@media (prefers-reduced-motion: reduce) { .b4y-cal-btn::after, .b4y-share-btn::after { transition: none; } }

/* Ecran tactile : cibles de 44 px. */
@media (pointer: coarse) {
  .b4y-cal-ready .b4y-cal-btn, .b4y-share-ready .b4y-share-btn { width: 44px; height: 44px; }
  .b4y-card-tools { top: 10px; right: 10px; }
  .b4y-has-tools .b4y-directory-title, .b4y-annuaire-card.b4y-has-tools h3 { padding-right: 112px; }
  .b4y-cal-btn::after, .b4y-share-btn::after { display: none; }
}
@media (min-width: 681px) {
  .term-1138 .b4y-hero-text-panel, .term-1140 .b4y-hero-text-panel { max-width: 380px !important; }
}

/* ------------------------------------------------------------------ */
/* Menu de partage — inc/event-share.php                                */
/* ------------------------------------------------------------------ */
.b4y-share-menu { position: absolute; z-index: 10000; min-width: 220px; max-width: calc(100vw - 16px); margin: 0; padding: 6px; list-style: none; border: 1px solid #e3dce6; border-radius: 12px; background: #fff; color: #141827; box-shadow: 0 14px 40px rgba(12, 16, 26, .22); }
.b4y-share-menu[hidden] { display: none; }
.b4y-share-menu li { margin: 0; padding: 0; }
.b4y-share-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .12s; }
@media (prefers-reduced-motion: reduce) { .b4y-share-item { transition: none; } }
/* Etats explicites (la feuille de style du theme colore les <button> au survol/focus : on fixe fond ET texte dans chaque etat).
   Normal / apres clic (focus souris) : texte #141827 sur blanc (17:1). Survol et focus clavier : fond teinte, meme texte (14:1). */
.b4y-share-menu .b4y-share-item,
.b4y-share-menu .b4y-share-item:focus,
.b4y-share-menu .b4y-share-item:visited { background: #fff; color: #141827; text-decoration: none; }
.b4y-share-menu .b4y-share-item:hover { background: #f1e6ee; color: #141827; text-decoration: none; }
.b4y-share-menu .b4y-share-item:focus-visible { background: #e8f0fe; color: #141827; outline: 3px solid #1f6feb; outline-offset: -3px; }
.b4y-share-menu .b4y-share-item:active { background: #e4d3de; color: #141827; }
.b4y-share-item svg { width: 20px; height: 20px; flex: none; }
/* Confirmation de copie : vert fonce sur vert clair (7:1), garde le texte + une icone coche (jamais la couleur seule). */
.b4y-share-menu .b4y-share-item.is-copied, .b4y-share-menu .b4y-share-item.is-copied:hover, .b4y-share-menu .b4y-share-item.is-copied:focus { background: #e3f4e8; color: #0b5a2a; }
.b4y-share-menu .b4y-share-item.is-error, .b4y-share-menu .b4y-share-item.is-error:hover, .b4y-share-menu .b4y-share-item.is-error:focus { background: #fdecee; color: #8a1020; }
.b4y-share-item small { display: block; color: #4b5263; font-size: 12px; font-weight: 400; }
@media (forced-colors: active) {
  .b4y-cal-btn, .b4y-share-btn, .b4y-share-menu { border: 1px solid ButtonText; }
  .b4y-share-menu .b4y-share-item:hover, .b4y-share-menu .b4y-share-item:focus-visible { outline: 2px solid Highlight; }
}
/* Services financiers & Investissements : le conseiller est à gauche, le titre passe sur la zone sombre à droite (ordinateur / tablette). */
@media (min-width: 681px) {
  .term-25 .b4y-portal-hero > .b4y-home-container, .term-548 .b4y-portal-hero > .b4y-home-container { display: flex; flex-direction: column; align-items: flex-end; }
  .term-25 .b4y-hero-text-panel, .term-548 .b4y-hero-text-panel { max-width: 420px !important; }
  .term-25 .b4y-hero-text-panel h1, .term-548 .b4y-hero-text-panel h1 { font-size: clamp(28px, 2.6vw, 42px); overflow-wrap: normal; }
}

/* Fiche adresse sans image : bandeau uni (aucune photo générique), pas de panneau image ni de fausse carte. */
body.b4y-portal-page .b4y-single-hero--plain { background: linear-gradient(135deg, #1c1230 0%, #6E1831 100%); min-height: 0; padding-block: 36px; }
body.b4y-portal-page .b4y-single-hero-inner--solo { grid-template-columns: minmax(0, 1fr); }
.b4y-directory-map--link-only { padding: 10px; }
.b4y-directory-map--link-only a { margin-top: 0; }

/* --- Actualités : filtre par source, espace partenaire sponsorisé, démonstration ---------------------------- */
.b4y-news-filters { margin: 0 0 24px; }
.b4y-news-filters ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.b4y-news-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--b4y-line, #e6e1eb); border-radius: 999px; background: #fff; color: #181722; font-weight: 700; font-size: 15px; text-decoration: none; }
.b4y-news-filters a span { color: #626b7a; font-weight: 600; }
.b4y-news-filters a:hover { border-color: var(--b4y-pink, #B1264F); color: var(--b4y-pink, #B1264F); }
.b4y-news-filters a[aria-current="true"] { background: var(--b4y-pink, #B1264F); border-color: var(--b4y-pink, #B1264F); color: #fff; }
.b4y-news-filters a[aria-current="true"] span { color: #fff; }
.b4y-news-filters a:focus-visible { outline: 3px solid #181722; outline-offset: 2px; }

.b4y-news-partner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "body cta"; gap: 8px 24px; align-items: center; margin: 0 0 28px; padding: 18px 22px; border: 1px dashed #c9c3d1; border-radius: 12px; background: #fff; color: #3b4352; }
.b4y-news-partner-label { grid-area: label; margin: 0; color: #626b7a; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.b4y-news-partner-body { grid-area: body; min-width: 0; }
.b4y-news-partner-body h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; color: #181722; }
.b4y-news-partner-body p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 80ch; }
.b4y-news-partner-cta { grid-area: cta; justify-content: center; min-height: 48px; white-space: nowrap; }
@media (max-width: 700px) {
  .b4y-news-partner { grid-template-columns: 1fr; grid-template-areas: "label" "body" "cta"; padding: 16px; }
  .b4y-news-partner-cta { width: 100%; white-space: normal; min-height: 52px; }
  .b4y-news-filters a { min-height: 48px; }
}

.b4y-news-demo-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff3cd; color: #664d03; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.b4y-news-demo-notice { margin: 0 0 24px; padding: 14px 18px; border: 1px solid #f0d68a; border-left: 4px solid #d19a00; border-radius: 10px; background: #fff8e1; color: #4a3b00; font-size: 15px; line-height: 1.55; }
.b4y-news-demo-notice strong { display: block; margin-bottom: 2px; }
.b4y-news-single-meta { margin: 14px 0 0; color: rgba(255, 255, 255, .88); font-size: 14px; }

/* Module pôles (accueil) : lien vers la page éditoriale du pôle */
.b4y-pole-page-link { margin: 10px 0 0; }
.b4y-pole-page-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--c-strong, #394355); font-weight: 800; }
.b4y-pole-page-link svg { width: 15px; height: 15px; }

/* Liste filtrée sans résultat : le lien de réinitialisation doit se lire comme un lien. */
.b4y-empty-filtered p { margin: 0 0 8px; }
.b4y-empty-filtered a { color: var(--b4y-pink, #B1264F); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.b4y-empty-filtered a:focus-visible { outline: 3px solid #181722; outline-offset: 2px; }

/* Accueil : CTA « Espace professionnel » déplacé en position intermédiaire (portée limitée à l'accueil). */
body.b4y-home-page .b4y-partner-cta--home{padding:0 0 18px}
@media (max-width:680px){body.b4y-home-page .b4y-partner-cta--home{padding:0 0 14px}}

/* --- Pages éditoriales : bouton « accès rapide » (ex. numéros d'urgence) ------------------------------------ */
/* Dans la colonne de l'article, sous le titre : même alignement que le texte, espacement régulier titre → bouton → contenu. */
.b4y-editorial-title:has(+ .b4y-editorial-quick) { margin-bottom: 20px; }
.b4y-editorial-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 28px; }
.b4y-editorial-quick-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; font-size: 15px; font-weight: 800; line-height: 1.25; text-align: left; }
.b4y-editorial-quick-link svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-editorial-quick-icon, .b4y-editorial-quick-arrow { display: inline-flex; flex: none; }
.b4y-editorial-quick-link:focus-visible { outline: 3px solid #181722; outline-offset: 3px; }
/* Lisibilite de l'action : curseur, survol et focus clavier discrets, indication « Cliquez pour afficher les contacts » a droite. */
.b4y-editorial-quick-link { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.b4y-editorial-quick-link:hover, .b4y-editorial-quick-link:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(177, 38, 79, .28); filter: brightness(1.05); }
.b4y-editorial-quick-arrow svg { transition: transform .18s ease; }
.b4y-editorial-quick-link:hover .b4y-editorial-quick-arrow svg, .b4y-editorial-quick-link:focus-visible .b4y-editorial-quick-arrow svg { transform: translateY(2px); }
.b4y-editorial-quick-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #5b6472; }
.b4y-editorial-quick-hint svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .b4y-editorial-quick:has(.b4y-editorial-quick-link:hover) .b4y-editorial-quick-hint svg, .b4y-editorial-quick:has(.b4y-editorial-quick-link:focus-visible) .b4y-editorial-quick-hint svg { transform: translateX(-3px); }
}
/* La section atteinte ne doit pas passer sous l'en-tête. */
.b4y-editorial-content :is(h2, h3) { scroll-margin-top: var(--b4y-anchor-offset, 124px); }
/* Valeurs de repli (sans JS) : l'en-tête collant a 67 px (mobile), ~207 px (tablette, menu sur plusieurs lignes), ~153 px (1024), ~105 px (bureau). */
@media (max-width: 700px) { .b4y-editorial-content :is(h2, h3) { scroll-margin-top: var(--b4y-anchor-offset, 88px); } }
@media (min-width: 701px) and (max-width: 900px) { .b4y-editorial-content :is(h2, h3) { scroll-margin-top: var(--b4y-anchor-offset, 228px); } }
@media (min-width: 901px) and (max-width: 1200px) { .b4y-editorial-content :is(h2, h3) { scroll-margin-top: var(--b4y-anchor-offset, 174px); } }
@media (max-width: 700px) {
  .b4y-editorial-quick { margin-bottom: 22px; }
  .b4y-editorial-quick-link { display: flex; width: 100%; padding: 0 18px; }
  .b4y-editorial-quick-link > span:nth-child(2) { flex: 1; }
  /* Mobile : le bouton occupe la largeur, l'indication passe dessous et la fleche pointe vers le bouton (haut). */
  .b4y-editorial-quick { gap: 8px; }
  .b4y-editorial-quick-hint svg { transform: rotate(90deg); }
  @media (prefers-reduced-motion: no-preference) {
    .b4y-editorial-quick:has(.b4y-editorial-quick-link:hover) .b4y-editorial-quick-hint svg, .b4y-editorial-quick:has(.b4y-editorial-quick-link:focus-visible) .b4y-editorial-quick-hint svg { transform: rotate(90deg) translateX(-3px); }
  }
}
@media (prefers-reduced-motion: reduce) { html:has(.b4y-editorial-quick-link) { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) {
  .b4y-editorial-quick-link, .b4y-editorial-quick-link:hover, .b4y-editorial-quick-link:focus-visible, .b4y-editorial-quick-arrow svg, .b4y-editorial-quick-hint svg { transition: none; }
  .b4y-editorial-quick-link:hover, .b4y-editorial-quick-link:focus-visible, .b4y-editorial-quick-link:hover .b4y-editorial-quick-arrow svg, .b4y-editorial-quick-link:focus-visible .b4y-editorial-quick-arrow svg { transform: none; } }

/* Vignettes de rubrique, de sous-categorie, de destination et de pole : un seul principe visuel.
   Photo naturelle (ni voile ni degrade) ; la lisibilite vient d'un fond sombre semi-transparent limite au bloc de texte,
   comme sur les cartes de pole. Reglage unique : --b4y-card-panel-bg. Les cartes editoriales (image entiere a cote du texte)
   n'ont pas d'image sous le texte et ne sont pas concernees. */
.b4y-rubrique-card-v2:not(.b4y-editorial-card) {
  --b4y-card-panel-bg: rgba(8, 13, 26, .58);
}
.b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-overlay {
  display: none !important;
}
.b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-info {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px;
  background: var(--b4y-card-panel-bg);
}
.b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-info h3,
.b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-desc {
  text-shadow: none !important;
  color: #fff !important;
}
.b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-desc {
  font-size: 14px !important;
}
.b4y-pole-card {
  --b4y-card-panel-bg: rgba(8, 13, 26, .58);
}
.b4y-pole-card .b4y-rubrique-info {
  background: var(--b4y-card-panel-bg);
}
@media (max-width: 680px) {
  .b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-info {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
    border-radius: 12px;
  }
  .b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-info h3 {
    margin: 0 0 3px !important;
  }
  .b4y-rubrique-card-v2:not(.b4y-editorial-card) .b4y-rubrique-desc {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }
}

/* Shopping (cartes editoriales) : meme principe que les autres vignettes. La photo reste affichee entiere et a son
   ratio ; le titre, le sous-titre et la fleche passent dans le bloc semi-transparent pose sur le bas de la photo,
   a la place de la bande opaque sous l'image. */
.b4y-rubriques-grid-v2 .b4y-rubrique-card-v2.b4y-editorial-card {
  --b4y-card-panel-bg: rgba(8, 13, 26, .58);
  background: #fff !important;
}
.b4y-editorial-card .b4y-rubrique-card-link {
  display: block !important;
}
.b4y-editorial-card .b4y-rubrique-badge {
  position: absolute !important;
  top: 22px !important;
  left: 22px !important;
  margin: 0 !important;
}
.b4y-editorial-card .b4y-rubrique-info {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px;
  background: var(--b4y-card-panel-bg);
  align-self: auto;
}
.b4y-editorial-card .b4y-rubrique-info h3,
.b4y-editorial-card .b4y-rubrique-desc {
  text-shadow: none !important;
  color: #fff !important;
}
@media (max-width: 680px) {
  .b4y-editorial-card .b4y-rubrique-info {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
    border-radius: 12px;
  }
}

/* Electronique & Electromenager : meme cadre (3:2) et meme hauteur que les autres cartes Shopping. La photo, sur fond blanc,
   est affichee entiere (jamais recadree) au-dessus du bloc de texte : sa marge basse lui evite de passer sous le bloc. */
.b4y-editorial-card--electronique-electromenager .b4y-rubrique-bg img {
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: contain !important;
  box-sizing: border-box;
  padding-bottom: 94px;
}
@media (max-width: 680px) {
  .b4y-editorial-card--electronique-electromenager .b4y-rubrique-bg img {
    padding-bottom: 72px;
  }
}

/* Galerie d'une fiche (image principale + photos complémentaires), même visionneuse que les guides. */
.b4y-single-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.b4y-single-gallery li { margin: 0; }
.b4y-single-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #eef1f4; }
.b4y-single-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b4y-single-gallery a:focus-visible { outline: 3px solid var(--b4y-focus, #0c6f6a); outline-offset: 2px; }
@media (max-width: 560px) { .b4y-single-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Bannière défilante avec visuels partenaires : voir « Bannières PAC recomposées » plus bas (titre masqué pendant leur affichage). */
.b4y-directory-hero--ads.is-ad-slide:before { opacity: 0; }
.b4y-directory-hero--ads.is-ad-slide .b4y-home-container { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: -1px; } /* titre (h1) conservé pour les lecteurs d'écran */
.b4y-directory-hero--ads.is-ad-slide .b4y-home-container a { visibility: hidden; } /* pas de focus sur un bouton invisible */
.b4y-hero-rotator__slide--ad { overflow: hidden; background: #0e6f68; }
@media (max-width: 700px) { .b4y-directory-hero--ads .b4y-hero-rotator__controls { bottom: 6px; right: 8px; } }

/* Bannières PAC recomposées (inc/pac-banners.php) : photographie retouchée + logo, textes et bouton en HTML. Le cadre garde la hauteur du bandeau.
   Police : Barlow (OFL), la plus proche des visuels du partenaire parmi les polices disponibles. Aucun filtre, ombre ni transformation sur les textes :
   le contraste est apporté par un calque dégradé discret placé sous les textes (.b4y-pac__shade). */
@font-face { font-family: "B4Y Barlow"; src: url("../fonts/barlow/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B4Y Barlow"; src: url("../fonts/barlow/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "B4Y Barlow"; src: url("../fonts/barlow/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
.b4y-pac { position: absolute; inset: 0; overflow: hidden; container-type: size; color: #fff; font-family: "B4Y Barlow", "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.b4y-pac .b4y-pac__photo, .b4y-pac .b4y-pac__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.b4y-pac .b4y-pac__photo img { object-fit: cover; object-position: 50% 50%; }
/* Logo et textes : alignés sur la largeur du site (1152 px max), la photographie reste pleine largeur derrière. */
.b4y-pac .b4y-pac__inner { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; width: min(100%, 1152px); container-type: inline-size; z-index: 2; }
/* Ordinateur : photo 2:1 entière en pleine largeur, calée verticalement (--b4y-s = part de la hauteur masquée en haut), sans jamais laisser de vide en bas. */
@media (min-width: 901px) {
  .b4y-pac .b4y-pac__photo img { top: max(calc(var(--b4y-s, 0) * -50cqw), calc(100cqh - 50cqw)); bottom: auto; height: auto; }
}
.b4y-pac .b4y-pac__shade { position: absolute; inset: 0; pointer-events: none; }
.b4y-pac .b4y-pac__logo { position: absolute; z-index: 2; height: auto; width: clamp(150px, 17.5cqw, 210px); left: calc((100cqw - min(100cqw, 1152px)) / 2 + min(100cqw, 1152px) * .045); top: 7%; }
.b4y-pac .b4y-pac__copy { position: absolute; z-index: 2; }
.b4y-pac p.b4y-pac__title { max-width: none; margin: 0 0 .55em; font-weight: 700; font-size: clamp(22px, 2.8cqw, 34px); line-height: 1.15; letter-spacing: 0; color: #fff; }
.b4y-pac .b4y-pac__lead { display: block; font-weight: 500; }
.b4y-pac .b4y-pac__nb { white-space: nowrap; }
/* Netteté : aucune ombre, aucun filtre, aucune transformation sur les textes (la règle générale des bandeaux ajoute sinon une ombre portée). */
.b4y-pac p.b4y-pac__title, .b4y-pac p.b4y-pac__text, .b4y-pac .b4y-pac__lead, .b4y-pac .b4y-pac__btn { text-shadow: none; filter: none; transform: none; }
.b4y-pac p.b4y-pac__text { max-width: none; margin: 0 0 18px; font-weight: 500; font-size: clamp(15px, 1.58cqw, 19px); line-height: 1.45; text-wrap: pretty; color: #fff; }
.b4y-pac .b4y-pac__btn { display: inline-block; padding: .55em 1.3em; border-radius: 999px; background: var(--b4y-pac-btn, #d7684c); color: #fff; font-weight: 500; font-size: clamp(14px, 1.4cqw, 17px); line-height: 1.2; }
/* 01 · accueil : titre sur deux lignes, paragraphe, bouton ; à droite sur la mer, navire en bas */
.b4y-pac--p1 .b4y-pac__copy { left: 42%; top: 9%; width: 46%; }
.b4y-pac--p1 .b4y-pac__shade { background: linear-gradient(to bottom, rgba(0, 45, 45, .22) 0%, rgba(0, 45, 45, .14) 45%, rgba(0, 45, 45, 0) 64%); }
/* 03 · commerces : bloc de texte à droite sur le bassin */
.b4y-pac--p3 .b4y-pac__logo { left: calc((100cqw - min(100cqw, 1152px)) / 2 + min(100cqw, 1152px) * .05); top: 6%; }
.b4y-pac--p3 .b4y-pac__copy { left: 47%; top: 37%; width: 50%; }
.b4y-pac--p3 .b4y-pac__shade { background: linear-gradient(to left, rgba(0, 40, 50, .26) 0%, rgba(0, 40, 50, .16) 45%, rgba(0, 40, 50, 0) 72%); }
/* 02 · vivre à Cotonou : navire au centre, deux colonnes de texte sous le navire */
.b4y-pac--p2 .b4y-pac__logo { left: 3.5cqw; top: 6%; }
.b4y-pac--p2 .b4y-pac__copy { left: 6%; right: 4%; bottom: 5%; display: grid; grid-template-columns: 38% 1fr; column-gap: 8%; align-items: end; }
.b4y-pac--p2 p.b4y-pac__title { margin: 0; font-size: clamp(21px, 2.6cqw, 31px); }
.b4y-pac--p2 p.b4y-pac__text { font-size: clamp(15px, 1.5cqw, 18px); }
.b4y-pac--p2 p.b4y-pac__text { margin-bottom: 14px; }
.b4y-pac--p2 .b4y-pac__shade { background: linear-gradient(to bottom, rgba(0, 45, 45, .4) 0%, rgba(0, 45, 45, 0) 30%), linear-gradient(to top, rgba(0, 50, 45, .42) 0%, rgba(0, 50, 45, .24) 30%, rgba(0, 50, 45, 0) 52%); }
@media (max-width: 900px) {
  .b4y-pac .b4y-pac__logo { width: clamp(140px, 21cqw, 190px); left: 5%; top: 6%; }
  .b4y-pac p.b4y-pac__title { font-size: clamp(21px, 3.3cqw, 27px); text-wrap: balance; }
  .b4y-pac p.b4y-pac__text { font-size: clamp(14.5px, 1.95cqw, 17px); }
  .b4y-pac .b4y-pac__btn { font-size: 15px; }
  .b4y-pac .b4y-pac__br { display: none; }
  .b4y-pac--p1 .b4y-pac__copy { left: 5%; top: 25%; width: 78%; }
  .b4y-pac--p3 .b4y-pac__copy { left: 40%; top: 38%; width: 56%; }
  .b4y-pac--p2 .b4y-pac__logo { left: 5%; top: 5%; }
  .b4y-pac--p2 .b4y-pac__copy { left: 5%; right: 4%; bottom: 5%; grid-template-columns: 40% 1fr; column-gap: 6%; }
  .b4y-pac--p2 p.b4y-pac__title { font-size: clamp(20px, 2.9cqw, 25px); }
  .b4y-pac--p2 p.b4y-pac__text { font-size: clamp(14px, 1.8cqw, 16px); margin-bottom: 10px; }
}
@media (max-width: 700px) {
  .b4y-pac .b4y-pac__photo img { object-position: 50% 100%; }
  .b4y-pac .b4y-pac__logo { width: 46cqw; left: 5%; top: 14px; }
  .b4y-pac p.b4y-pac__title { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
  .b4y-pac p.b4y-pac__text { font-size: 15px; line-height: 1.42; margin-bottom: 12px; }
  .b4y-pac .b4y-pac__btn { font-size: 14.5px; }
  .b4y-pac--p1 .b4y-pac__logo { top: 12px; }
  .b4y-pac--p1 .b4y-pac__copy { left: 5%; right: 5%; width: auto; top: 22%; }
  .b4y-pac--p2 .b4y-pac__copy, .b4y-pac--p3 .b4y-pac__copy { left: 5%; right: 5%; width: auto; top: auto; bottom: 14px; display: block; }
  .b4y-pac--p2 p.b4y-pac__title { font-size: 22px; }
  .b4y-pac--p2 p.b4y-pac__text { font-size: 15px; margin-bottom: 12px; }
  .b4y-pac--p2 .b4y-pac__lead { display: inline; }
  .b4y-pac--p2 .b4y-pac__shade { background: linear-gradient(to bottom, rgba(4, 38, 46, .6) 0%, rgba(4, 38, 46, 0) 26%), linear-gradient(to top, rgba(4, 38, 46, .88) 0%, rgba(4, 38, 46, .62) 42%, rgba(4, 38, 46, 0) 68%); }
  .b4y-pac--p3 .b4y-pac__shade { background: linear-gradient(to top, rgba(4, 38, 46, .88) 0%, rgba(4, 38, 46, .62) 42%, rgba(4, 38, 46, 0) 68%); }
}
/* Lien : toute la bannière est cliquable. Au-dessus de la photo et des textes, sous les commandes du slider (flèches, points, pause). */
.b4y-pac .b4y-pac__link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; text-decoration: none; background: transparent; }
.b4y-pac .b4y-pac__link:focus-visible { outline: 3px solid #fff; outline-offset: -8px; box-shadow: inset 0 0 0 11px rgba(0, 0, 0, .55); }
.b4y-pac:hover .b4y-pac__btn { box-shadow: 0 4px 12px rgba(0, 0, 0, .32); }
/* Pendant le fondu, une diapositive masquée ne doit pas intercepter les clics destinés à la bannière affichée. */
.b4y-directory-hero--ads .b4y-hero-rotator__slide:not(.is-active) { pointer-events: none; }
/* Accueil : la slide partenaire remplit le cadre du slider (pas de fond « logo » centré). */
.b4y-hero-slide--pac { background: none !important; overflow: hidden; }
.b4y-hero-slide--pac .b4y-home-container { pointer-events: none; } /* ne contient que le titre masqué : ne doit pas intercepter le clic sur la bannière */
@keyframes b4yPacFade { from { opacity: 0; } to { opacity: 1; } }
.b4y-directory-hero--ads:not(.is-ad-slide) .b4y-home-container { animation: b4yPacFade .5s ease both; }
@media (prefers-reduced-motion: reduce) { .b4y-directory-hero--ads:not(.is-ad-slide) .b4y-home-container { animation: none; } }

/* Accueil « Que faire sur Benin4you ? » : cartes entièrement cliquables (lien étiré, un seul lien par carte). */
.b4y-why-card--link{position:relative;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.b4y-why-card__link{color:inherit;text-decoration:none}
.b4y-why-card__link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.b4y-why-card--link:hover{transform:translateY(-2px);border-color:var(--b4y-pink);box-shadow:0 14px 32px rgba(15,23,42,.1)}
.b4y-why-card--link:focus-within{outline:3px solid var(--b4y-pink);outline-offset:3px}
.b4y-why-card__link:focus-visible{outline:none}
@media (prefers-reduced-motion:reduce){.b4y-why-card--link,.b4y-why-card--link:hover{transition:none;transform:none}}

/* Événements : l'affiche (souvent portrait, texte dans l'image) n'est jamais recadrée — vignette de liste et panneau de la fiche. */
.b4y-directory-row--event .b4y-directory-thumb{background:#f1ecf3}
.b4y-directory-row--event .b4y-directory-thumb img{object-fit:contain}
body.single-b4y_event .b4y-detail-panel-image{height:auto;max-height:560px;object-fit:contain;background:#f1ecf3}
/* Téléphone et tablette en portrait : les boutons calendrier / partage ont leur propre bande au-dessus de l'affiche (ils en masquaient le haut). */
@media (max-width:900px){.b4y-directory-row--event.b4y-has-tools:not(.b4y-directory-row--no-image){padding-top:66px}.b4y-directory-row--event.b4y-has-tools:not(.b4y-directory-row--no-image) .b4y-directory-title{padding-right:0}}

/* CTA « Espace professionnel » : jamais plus large que l'écran (360 px) — le libellé du bouton peut passer à la ligne. */
.b4y-partner-box > *{min-width:0}
@media (max-width:680px){
  .b4y-partner-box .b4y-btn{white-space:normal;text-align:center;width:100%;max-width:100%;min-height:52px;height:auto;padding-block:12px;line-height:1.25}
  .b4y-partner-box{box-sizing:border-box;max-width:100%}
}
.b4y-detail-panel-zoom{display:block;cursor:zoom-in}.b4y-detail-panel-zoom:focus-visible{outline:3px solid #B1264F;outline-offset:-3px}
@media (max-width:640px){body.single-b4y_event .b4y-lightbox{width:calc(100vw - 12px);max-width:calc(100vw - 12px);padding:58px 6px 12px}}
.b4y-lightbox button[hidden]{display:none}

/* Lot 26/11 : une adresse web longue (ex. page Instagram) passe à la ligne au lieu d'élargir la fiche sur mobile. */
.b4y-practical-list li > span { min-width: 0; overflow-wrap: anywhere; }

/* Annuaire filtré, petits écrans : le libellé le plus long d'une liste déroulante ne doit pas élargir la page. */
.b4y-annuaire-layout > *,
.b4y-annuaire-filter .b4y-filter-field,
.b4y-annuaire-filter select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .b4y-annuaire-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .b4y-annuaire-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  /* La pagination passe à la ligne au lieu d'élargir la liste. */
  .b4y-annuaire-cards > .b4y-pagination {
    flex-wrap: wrap;
    min-width: 0;
  }
}

/* --- Lien entre une page d'annonces et son guide (appel à l'action) ----------------------------------------- */
.b4y-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 18px 22px; border: 1px solid #f0dce8; border-left: 4px solid var(--b4y-pink, #B1264F); border-radius: 12px; background: #fbf6f9; }
.b4y-category-intro-text + .b4y-cta { margin-top: 20px; }
.b4y-cta__text { flex: 1 1 320px; margin: 0; color: #2b3445; font-size: 16px; line-height: 1.55; }
.b4y-cta__text p { margin: 0; }
.b4y-cta__text a { color: var(--b4y-pink, #B1264F); font-weight: 600; text-decoration: underline; }
.b4y-cta__button { flex: 0 0 auto; min-height: 48px; padding: 0 22px; text-align: center; }
.b4y-cta__button, .b4y-cta__button:hover, .b4y-cta__button:focus, .b4y-cta__button:visited { color: #fff; text-decoration: none; }
.b4y-cta__button:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 3px; }
.b4y-cta__arrow { display: inline-flex; }
.b4y-cta__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Page Emploi : encart recruteurs (même composant .b4y-cta) à côté des offres ; pleine largeur sous le message quand il n'y a rien à afficher. */
.b4y-jobs-layout:not(.b4y-jobs-layout--empty) { grid-template-columns: minmax(0, 1fr) 340px; }
.b4y-jobs-layout:not(.b4y-jobs-layout--empty) .b4y-cta--recruit { position: sticky; top: 24px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.b4y-jobs-layout:not(.b4y-jobs-layout--empty) .b4y-cta--recruit .b4y-cta__text { flex: 0 0 auto; }
.b4y-jobs-layout--empty { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.b4y-cta__title { margin: 0 0 6px; color: #141827; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.b4y-jobs-empty p { margin: 0; }
@media (max-width: 980px) {
  .b4y-jobs-layout:not(.b4y-jobs-layout--empty) { grid-template-columns: minmax(0, 1fr); }
  .b4y-jobs-layout:not(.b4y-jobs-layout--empty) .b4y-cta--recruit { position: static; }
}
.b4y-guide-cta-section { padding: 0 0 64px; }
.b4y-editorial-article .b4y-editorial-title.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b4y-guide-editorial-page .b4y-editorial-section { padding-bottom: 48px; }
@media (max-width: 560px) {
  .b4y-cta { padding: 16px; }
  .b4y-cta__button { width: 100%; justify-content: center; padding-block: 10px; }
}

/* === CR client du 27 nov. 2026 === */
/* Restaurants : titre visible sur la bannière, à gauche, hors du visage. */
.hero-restaurants .b4y-restaurants-title { width: fit-content; max-width: min(100%, 440px); margin: 0 0 14px; padding: 8px 16px 10px; border-radius: 10px; background: rgba(8, 13, 26, .66); color: #fff; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; text-shadow: none; text-wrap: balance; }
@media (max-width: 680px) {
  .hero-restaurants { min-height: calc(42.85vw + 158px); }
  .hero-restaurants .b4y-restaurants-title { max-width: 100%; margin: 0 0 8px; padding: 6px 12px 8px; background: rgba(8, 13, 26, .82); font-size: 21px; }
}
/* Découvrir le Bénin : sous chaque pôle, la liste complète de ses communes. */
.b4y-pole-card--communes .b4y-rubrique-desc { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; overflow: visible !important; white-space: normal !important; font-size: 13px !important; line-height: 1.5; }
/* Bannière du port (accueil) : navire montré sur toute sa longueur sur tablette et mobile, au-dessus du moteur de recherche. */
@media (max-width: 900px) {
  .b4y-pac--p1 .b4y-pac__photo { background: #0c5f58; }
  .b4y-pac.b4y-pac--p1 .b4y-pac__photo img { top: auto; bottom: var(--b4y-pac-lift, 56px); width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
}
@media (max-width: 680px) {
  .hero-restaurants { position: relative; min-height: calc(42.85vw + 86px); }
  .hero-restaurants .hero-content { position: static; }
  .hero-restaurants .b4y-restaurants-title { position: absolute; z-index: 2; left: 10px; top: calc(42.85vw - 46px); max-width: calc(100% - 20px); margin: 0; font-size: 20px; }
}
@media (min-width: 901px) {
  .b4y-pac--p1 .b4y-pac__photo { background: #0c5f58; }
  .b4y-pac.b4y-pac--p1 .b4y-pac__photo img { top: calc(100cqh - 50cqw - 20px); }
}
/* Soutien scolaire, mobile : photo montrée sur toute sa largeur (les deux visages visibles), titre en bas. */
@media (max-width: 600px) {
  body.term-soutien-scolaire .b4y-directory-hero.b4y-portal-hero,
  body.term-academic-tutoring-en .b4y-directory-hero.b4y-portal-hero { min-height: calc(66.7vw + 24px) !important; height: calc(66.7vw + 24px) !important; background-size: cover !important; background-position: 50% 0 !important; }
}
/* Textes sur photo : ne pas masquer les visages (Chercher un emploi, E-commerce). */
@media (min-width: 901px) {
  body.post-type-archive-b4y_job .b4y-portal-hero .b4y-hero-text-panel,
  body.term-e-commerce .b4y-portal-hero .b4y-hero-text-panel,
  body.term-e-commerce-en .b4y-portal-hero .b4y-hero-text-panel { max-width: 360px; }
  body.post-type-archive-b4y_job .b4y-portal-hero .b4y-hero-text-panel > *,
  body.term-e-commerce .b4y-portal-hero .b4y-hero-text-panel > *,
  body.term-e-commerce-en .b4y-portal-hero .b4y-hero-text-panel > * { max-width: 100%; }
  body.post-type-archive-b4y_job .b4y-portal-hero h1,
  body.term-e-commerce .b4y-portal-hero h1,
  body.term-e-commerce-en .b4y-portal-hero h1 { font-size: 38px; }
}
@media (max-width: 680px) {
  body.post-type-archive-b4y_job .b4y-directory-hero.b4y-portal-hero { align-items: flex-end !important; }
  body.post-type-archive-b4y_job .b4y-portal-hero .b4y-hero-text-panel p:not(.b4y-pill) { display: none; }
}

/* === Lot 13b (28 nov. 2026) : page Restaurants === */
[data-b4y-featured][hidden] { display: none !important; }
.b4y-restaurant-search { padding-bottom: 8px; scroll-margin-top: 90px; }
.b4y-restaurant-featured { padding-block: 28px 8px; }
.b4y-restaurant-featured + #liste { padding-top: 24px; }
#liste { scroll-margin-top: 90px; }
#liste .list-heading { scroll-margin-top: 90px; }
#liste .b4y-results-summary { margin: 0 0 16px; }
@media (min-width: 760px) {
  .b4y-restaurant-featured__list.is-short .b4y-carousel .b4y-carousel__track > * { flex: 0 0 calc((100% - var(--b4y-car-gap, 20px)) / 2) !important; max-width: none; }
}
/* Moteur sur une seule ligne quand les cinq éléments tiennent sans tronquer les libellés. */
@media (min-width: 1200px) {
  .b4y-restaurant-search .b4y-filter-bar { display: flex !important; flex-wrap: nowrap !important; align-items: stretch; gap: 10px; }
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-field { flex: 1 1 auto !important; min-width: 0; width: auto; }
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-field--search { flex: 1 1 0 !important; min-width: 180px; }
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-field > span[aria-hidden="true"] { display: none; }
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-field select,
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-field input { width: 100%; padding-left: 14px !important; }
  .b4y-restaurant-search .b4y-filter-bar .b4y-filter-submit { flex: 0 0 auto; width: auto; padding-inline: 28px; }
}
/* Recherche : rubriques correspondantes. */
.b4y-search-sections { grid-column: 1 / -1; margin: 0 0 20px; }
.b4y-search-sections h2 { margin: 0 0 10px; font-size: 18px; }
.b4y-search-sections ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.b4y-search-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #e4c3d3; border-radius: 999px; background: #fdf1f7; color: #8C1E3F; font-weight: 700; text-decoration: none; }
.b4y-search-sections a:hover, .b4y-search-sections a:focus-visible { text-decoration: underline; }
/* Marketplace & Commerces : bannière plus haute pour montrer les billets et le téléphone. */
@media (min-width: 901px) {
  body.page-id-11252 .b4y-directory-hero.b4y-portal-hero,
  body.page-id-11253 .b4y-directory-hero.b4y-portal-hero { min-height: min(620px, 82vh); background-position: 50% 46% !important; }
}

/* ==========================================================================
   Annuaire (nov. 2026) : filtre latéral « Affiner votre recherche », grille des résultats, boutons des cartes.

   Causes corrigées (et non masquées) :
   1. Filtre : .b4y-filter-field { flex: 1 1 190px }, --search { flex: 2 1 220px } et .b4y-filter-submit { flex: 1 1 160px }
      sont écrits pour la barre en LIGNE (la base 190/220/160 px est alors une largeur). Dans la colonne latérale, la barre
      passe en flex-direction: column : la même base devient une HAUTEUR et prime sur height: 48px (champ de recherche à
      220 px, bouton à 160 px). Les enfants ne doivent pas s'étirer dans ce contexte : flex: 0 0 auto.
   2. Libellé « Pôle ou commun… » : le select cumule le padding d'un input générique (15 px à gauche) et celui du champ
      (14 px + icône + gap), il ne reste que ~135 px de texte. Dans le filtre latéral, le padding gauche est retiré.
   3. Grille : .b4y-annuaire-cards est en repeat(4, 1fr) alors que la colonne de résultats ne mesure que ~900 px (la
      colonne latérale prend 280 px) : cartes de ~210 px, pistes 1fr élargies par leur contenu (largeurs irrégulières),
      adresses sur 6 lignes. Colonnes automatiques : minimum 270 px par carte (2 à 3 colonnes sur ordinateur, 1 sur mobile).
   4. Boutons : .b4y-card-actions a est un bloc qui peut rétrécir et passer à la ligne (« Voir / la / fiche »).
   Portée : uniquement la zone de résultats de la page Annuaire (.b4y-annuaire-main, hors carrousels .b4y-carousel__track).
   ========================================================================== */
.b4y-annuaire-filter { padding: 20px; }
.b4y-annuaire-filter h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.b4y-annuaire-filter .b4y-filter-bar { gap: 10px; }
.b4y-annuaire-filter .b4y-filter-bar > * { flex: 0 0 auto; }
.b4y-annuaire-filter .b4y-filter-field { height: 48px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease; }
.b4y-annuaire-filter .b4y-filter-field input:not([type="checkbox"]),
.b4y-annuaire-filter .b4y-filter-field select { padding: 0; text-overflow: ellipsis; }
.b4y-annuaire-filter .b4y-filter-field select { padding-right: 22px; }
.b4y-annuaire-filter .b4y-filter-field:hover { border-color: #c9a9bd; }
.b4y-annuaire-filter .b4y-filter-field:focus-within { border-color: #B1264F; box-shadow: 0 0 0 3px rgba(177, 38, 79, .16); }
.b4y-annuaire-filter .b4y-filter-submit { width: 100%; max-width: none; min-width: 0; height: 48px; min-height: 48px; padding: 0 20px; font-size: 15px; }
.b4y-annuaire-filter .b4y-filter-submit:hover { filter: brightness(1.06); }
.b4y-annuaire-filter .b4y-filter-submit:focus-visible,
.b4y-annuaire-filter .b4y-reset-btn:focus-visible { outline: 3px solid #181722; outline-offset: 3px; }
.b4y-annuaire-filter .b4y-reset-btn { margin-top: 12px; padding: 10px 0; text-align: center; font-weight: 700; }
.b4y-annuaire-filter .b4y-reset-btn:hover { text-decoration: underline; }

.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) > * { min-width: 0; }
/* La pagination est un enfant de la grille : elle occupait une cellule (à côté des dernières cartes, débordante à 1024 px). Elle s'étend désormais sur toute la largeur, centrée, sous la dernière ligne quel que soit le nombre de fiches. */
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) > .b4y-pagination { grid-column: 1 / -1; flex-wrap: wrap; justify-content: center; margin-top: 12px; padding-top: 4px; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-annuaire-card { display: flex; flex-direction: column; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-annuaire-card > div:not(.b4y-annuaire-card-media) { display: flex; flex: 1 1 auto; flex-direction: column; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-annuaire-card h3 { overflow-wrap: anywhere; line-height: 1.3; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-annuaire-card p { align-items: flex-start; overflow-wrap: anywhere; line-height: 1.45; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-annuaire-card p svg { flex: none; margin-top: .15em; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-card-actions { flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-card-actions a {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap;
}
/* Cartes des carrousels de la page Annuaire (état initial) : mêmes boutons sur une ligne, zone cliquable suffisante. */
.b4y-annuaire .b4y-carousel__track .b4y-card-actions { flex-wrap: wrap; }
.b4y-annuaire .b4y-carousel__track .b4y-card-actions a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 40px; white-space: nowrap; }
@media (max-width: 680px) { .b4y-annuaire .b4y-carousel__track .b4y-card-actions a { min-height: 44px; } }
@media (max-width: 1100px) {
  /* Tablette et mobile : le filtre passe avant les résultats (il était sous la pagination), en grille compacte. */
  .b4y-annuaire-layout > .b4y-annuaire-sidebar-sticky { order: -1; }
  .b4y-annuaire-filter .b4y-filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
}
@media (max-width: 680px) {
  .b4y-annuaire-filter { padding: 16px; }
  .b4y-annuaire-filter h3 { font-size: 18px; margin-bottom: 12px; }
  .b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-card-actions a { flex: 1 1 0; min-height: 44px; }
}
@media (max-width: 340px) {
  .b4y-annuaire-main .b4y-annuaire-cards:not(.b4y-carousel__track) .b4y-card-actions a { flex-basis: 100%; }
}

/* Écrans tactiles et mobiles : zones d'action d'au moins 44 px (cartes, listes de restaurants, flèches des carrousels). */
@media (max-width: 820px), (pointer: coarse) {
  .b4y-card-actions a, .mini-btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .icon-btn, .b4y-card-actions a.b4y-next { width: 44px; min-width: 44px; height: 44px; }
  .b4y-slider-nav { width: 44px; height: 44px; }
}

/* Page 404 (styles auparavant écrits dans le gabarit). */
.b4y-404 { max-width: 800px; text-align: center; padding-block: 24px; }
.b4y-404__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 50%; background: #fbe6f0; color: var(--b4y-pink, #B1264F); }
.b4y-404__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-404 h2 { margin: 0 0 20px; font-size: 28px; color: #141827; }
.b4y-404 h3 { margin: 0 0 16px; font-size: 19px; color: #485063; }
.b4y-404__search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 500px; margin: 0 auto 36px; }
.b4y-404__search input { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid #dfe2e9; border-radius: 8px; font-size: 16px; }
.b4y-404__search button { flex: 0 0 auto; border: 0; cursor: pointer; }
.b4y-404 .b4y-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.b4y-404 .b4y-quick-links .b4y-btn { min-height: 44px; padding: 0 20px; box-shadow: none; }
@media (max-width: 480px) { .b4y-404__search button { flex: 1 1 100%; } }

/* Bouton « Explorer » de la bannière Restaurants : pictogramme du thème (remplace un caractère typographique). */
.btn[href="#restaurants"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn[href="#restaurants"] svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Moteur de recherche (accueil, annuaire) : les champs n'ont pas de contour natif, le focus clavier se lit sur leur cadre. */
.b4y-search-card label:focus-within { border-color: #B1264F; box-shadow: 0 0 0 3px rgba(177, 38, 79, .22); }

/* Archives de communes, cuisines, types de lieu, prix et articles (archive.php). */
.b4y-term-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; }
.b4y-term-head__text { flex: 1 1 420px; min-width: 0; }
.b4y-term-head h1 { margin: 0 0 8px; color: #141827; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.b4y-term-head p { margin: 0 0 8px; max-width: 760px; }
.b4y-term-head .b4y-results-summary { margin-bottom: var(--b4y-ls-before-cards, 22px); }
.b4y-term-head__action { margin-bottom: var(--b4y-ls-before-cards, 22px); min-height: 48px; box-shadow: none; }
.b4y-term-head__action:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 3px; }
@media (max-width: 560px) { .b4y-term-head__action { width: 100%; } }
/* Cartes en ligne : un mot ou une adresse très longue ne doit pas élargir la carte (débordement à 360 px). */
.b4y-directory-list { grid-template-columns: minmax(0, 1fr); }
.b4y-directory-list > .b4y-directory-row { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (min-width: 901px) { .b4y-directory-list > .b4y-portal-row:not(.b4y-directory-row--no-image) { grid-template-columns: 238px minmax(0, 1fr); } }
.b4y-directory-list .b4y-directory-info { min-width: 0; overflow-wrap: anywhere; }

/* Pagination de toutes les listes : centrée, et à la ligne sur les écrans étroits (« Précédent … Suivant » débordait à 360 px). */
.b4y-pagination { flex-wrap: wrap; justify-content: center; }
/* Pied de page : les deux liens d'action de la colonne Contact sont l'un sous l'autre. */
.b4y-site-footer .b4y-footer-contact-link { display: flex; width: fit-content; }

/* Recherche globale dans l'en-tête mobile (sous 768 px ; au-dessus, la loupe est dans les actions de l'en-tête). */
.b4y-header-search-mobile { display: none; }
@media (max-width: 767px) {
  body .b4y-main-header .b4y-header-search-mobile { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid #eaeaea; border-radius: 12px; background: #fff; color: #181722; }
  body .b4y-main-header .b4y-header-search-mobile:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 2px; }
  body .b4y-main-header .b4y-header-search-mobile:hover { border-color: var(--b4y-pink, #B1264F); color: var(--b4y-pink, #B1264F); }
  body .b4y-main-header .b4y-header-search-mobile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  body .b4y-main-header > .header-inner > .b4y-header-lang { margin-left: 0; }
}
@media (max-width: 560px) {
  body .b4y-main-header .header-inner { padding-right: 188px; }
  body .b4y-main-header .b4y-header-search-mobile { position: absolute; right: 142px; margin: 0; }
}
@media (max-width: 380px) {
  body .b4y-main-header .logo,
  body .b4y-main-header .logo .custom-logo-link,
  body .b4y-main-header .logo img.custom-logo { max-width: 136px; }
}
@media (max-width: 340px) {
  body .b4y-main-header .logo,
  body .b4y-main-header .logo .custom-logo-link,
  body .b4y-main-header .logo img.custom-logo { max-width: 100px; }
}

/* Bouton « Agent IA » (extension non modifiée) : icône et libellé sur tous les écrans, mêmes couleurs et même forme que sur
   grand écran, en format compact sur mobile (demande cliente du 30 nov. 2026). La fin des pages reste dégagée. */
@media screen {
  .b4y-ai .b4y-ai-launcher { white-space: nowrap; }
  html { scroll-padding-bottom: 84px; }
  body .b4y-site-footer { padding-bottom: 84px; } /* les liens légaux restent au-dessus du bouton flottant en fin de page */
}
@media (max-width: 680px) {
  .b4y-ai .b4y-ai-launcher { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); min-height: 44px; height: 44px; gap: 6px; padding: 0 14px 0 12px; font-size: 13.5px; }
  .b4y-ai .b4y-ai-launcher svg { width: 20px; height: 20px; }
}
/* Place réservée au bouton : la barre de recherche de l'accueil et les vignettes des pôles ne passent pas dessous. */
@media (min-width: 1025px) and (max-width: 1599px) {
  body.b4y-home-page .b4y-search-panel .b4y-home-container { width: min(100% - 300px, 1210px); }
  body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: 1.3fr 1.2fr 1fr 136px; gap: 10px; }
  body.b4y-home-page .b4y-search-panel .b4y-search-card label { gap: 6px; padding-inline: 8px; }
  body.b4y-home-page .b4y-search-panel .b4y-search-card input,
  body.b4y-home-page .b4y-search-panel .b4y-search-card select { padding-inline-start: 4px; font-size: 15px; text-overflow: ellipsis; }
}
@media (min-width: 1025px) and (max-width: 1179px) {
  body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: 1fr 1fr; } /* champs lisibles sur deux lignes */
  body.b4y-home-page .b4y-search-panel .b4y-search-card button { height: 48px; }
}
@media (min-width: 681px) {
  body .b4y-pole-hero .b4y-pole-hero__nav { right: 196px; }
}

/* Filtre latéral de l'annuaire (ordinateur) : « Tout le Grand-Nokoué (908) » était coupé. Colonne un peu plus large,
   et les listes déroulantes y utilisent toute la largeur (pictogramme décoratif masqué, la loupe de la recherche reste). */
@media (min-width: 1101px) {
  .b4y-annuaire-layout { grid-template-columns: minmax(0, 1fr) 304px; }
  .b4y-annuaire-filter .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) { padding-inline: 10px; }
  .b4y-annuaire-filter .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) > span[aria-hidden="true"] { display: none; }
  .b4y-annuaire-filter .b4y-filter-field select { font-size: 14px; }
}

/* Rubrique sans aucune fiche (et sans filtre actif) : pas de moteur ni de « 0 résultat », un message et une action utile. */
.b4y-listing-head:has(+ .b4y-listing-results .b4y-empty-none) :is(.b4y-filter-bar, .b4y-results-summary),
.b4y-listing-results:has(.b4y-empty-none) :is(.b4y-filter-bar, .b4y-results-summary) { display: none; }
.empty-demo-message.b4y-empty-none { text-align: center; }
.b4y-empty-none__title { margin: 0 0 14px; color: #141827; font-size: 18px; font-weight: 700; }
.b4y-empty-none p:last-child { margin: 0; }
.b4y-empty-none .b4y-btn { height: auto; min-height: 48px; padding: 10px 20px; line-height: 1.35; text-align: center; box-shadow: none; }

/* Appel à l'inscription professionnelle (inc/pro-cta.php) : le titre garde l'allure du bloc partenaire sans être un intertitre. */
.b4y-partner-box p.b4y-pro-cta__title{margin:0 0 8px;color:#fff;font-size:26px;font-weight:850;line-height:1.2;text-wrap:balance}
.b4y-pro-cta .b4y-partner-box .b4y-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (max-width:680px){.b4y-partner-box p.b4y-pro-cta__title{font-size:22px}}
/* « Parcourir la rubrique » mène aux cartes : le titre reste visible sous l'en-tête. */
#b4y-rubriques{scroll-margin-top:110px}
.b4y-pro-cta .b4y-partner-box > span svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8}
/* Intitulé long de la rubrique touristique : titre de bannière sur deux ou trois lignes. */
body.term-1134 .b4y-hero-text-panel h1, body.term-1136 .b4y-hero-text-panel h1{max-width:min(100%,780px);font-size:clamp(28px,3.4vw,48px);line-height:1.15;text-wrap:balance}

/* Photos des fiches (hors événements, qui ont leurs règles d'affiche). */
body.b4y-portal-page:not(.single-b4y_event) .b4y-detail-panel--photo{padding:0}
body.b4y-portal-page:not(.single-b4y_event) .b4y-detail-panel--photo .b4y-detail-panel-image{height:auto;aspect-ratio:4/3;object-fit:cover;margin:0}
/* Photo verticale : montrée en entier. */
body.b4y-portal-page:not(.single-b4y_event) .b4y-detail-panel--portrait .b4y-detail-panel-image{height:auto;aspect-ratio:auto;width:100%;max-height:480px;object-fit:contain;background:#f1ecf3;margin:0}
body.b4y-portal-page .b4y-portal-row .b4y-directory-thumb--portrait{align-self:start;min-height:0;aspect-ratio:4/5;background:#f1ecf3}
body.b4y-portal-page .b4y-portal-row .b4y-directory-thumb--portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media (max-width:900px){body.b4y-portal-page .b4y-portal-row .b4y-directory-thumb--portrait{width:min(100%,360px);justify-self:center}}
body.b4y-portal-page .b4y-single-hero--own-photo .b4y-single-hero-inner{align-items:center}
.b4y-restaurant-gallery-title{margin:26px 0 14px}
.restaurant-story .b4y-single-gallery{margin-bottom:24px}
/* Les logos et affiches d'une galerie restaurant restent entiers. */
.restaurant-story .b4y-single-gallery li + li img{object-fit:contain;background:#fff}
.restaurant-story .b4y-single-gallery li + li a{background:#fff;border:1px solid #ececf2}
body.single-b4y_event .b4y-single-richtext a{color:#B1264F;text-decoration:underline;text-underline-offset:3px}

/* Avertissement en bas des fiches de l'Annuaire (inc/listing-disclaimer.php). */
.b4y-listing-disclaimer {
  padding: 18px 0 22px;
  background: #f6f4f1;
  border-top: 1px solid #e3ded8;
}
.b4y-listing-disclaimer p {
  margin: 0;
  color: #4a4440;
  font-size: 14px;
  line-height: 1.6;
}

/* Recherche de l'accueil sans filtre « Catégorie » (demande cliente du 2 déc. 2026) : mot-clé, lieu, bouton. */
body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 160px; }
@media (min-width: 1025px) and (max-width: 1599px) {
  body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 136px; }
}
@media (min-width: 681px) and (max-width: 1024px) {
  body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.b4y-home-page .b4y-search-panel .b4y-search-card button { grid-column: 1 / -1; height: 48px; }
}
@media (max-width: 680px) {
  body.b4y-home-page .b4y-search-panel .b4y-search-card { grid-template-columns: minmax(0, 1fr); }
  body.b4y-home-page .b4y-search-panel .b4y-search-card button { grid-column: auto; height: 48px; }
}

/* Page « Chercher un emploi » (2 déc. 2026) : introduction unique, offres en priorité, ressources, puis recruteurs. */
body.b4y-archive-b4y_job .b4y-jobs-intro { padding-block: 22px 6px; }
body.b4y-archive-b4y_job .b4y-jobs-intro .b4y-category-intro-text p:last-child { margin-bottom: 0; }
body.b4y-archive-b4y_job .b4y-jobs-head { padding-top: 30px; }
.b4y-jobs-resources { padding: 40px 0 56px; }
.b4y-jobs-resources__title { margin: 0 0 20px; color: #141827; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.b4y-jobs-resources__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.b4y-job-resource { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--b4y-line, #e8e8ef); border-radius: 12px; box-shadow: 0 8px 22px rgba(15, 23, 42, .05); }
.b4y-job-resource__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; background: #fbf0f5; color: var(--b4y-pink, #B1264F); }
.b4y-job-resource__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-job-resource h3 { margin: 0; color: #141827; font-size: 17px; line-height: 1.35; }
.b4y-job-resource p { margin: 0; color: #4b5565; font-size: 15px; line-height: 1.55; }
.b4y-job-resource__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 8px 18px; border: 1px solid var(--b4y-pink, #B1264F); border-radius: 8px; color: var(--b4y-pink, #B1264F); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.b4y-job-resource__link:hover { background: var(--b4y-pink, #B1264F); color: #fff; }
.b4y-job-resource__link:focus-visible { outline: 3px solid var(--b4y-pink, #B1264F); outline-offset: 3px; }
.b4y-jobs-recruit { padding: 22px 0 0; } /* entre l'introduction et la liste des offres */
@media (max-width: 980px) {
  .b4y-jobs-resources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b4y-job-resource:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .b4y-jobs-resources { padding: 28px 0 40px; }
  .b4y-jobs-resources__title { font-size: 22px; }
  .b4y-jobs-resources__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .b4y-job-resource { padding: 18px; }
  .b4y-job-resource__link { align-self: stretch; }
}
/* Fiches d'offres : intitulés souvent très longs. Taille adaptée et colonnes qui ne débordent jamais de l'écran. */
body.b4y-portal-page .b4y-job-hero .b4y-single-hero-inner > * { min-width: 0; }
body.b4y-portal-page .b4y-job-hero h1 { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.14; overflow-wrap: break-word; }
@media (max-width: 1024px) {
  body.b4y-portal-page .b4y-job-hero .b4y-single-hero-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Moteur des offres d'emploi (2 déc. 2026) : recherche par mot-clé sur toute la largeur, bouton à droite sur ordinateur. */
@media (min-width: 681px) {
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-field--search { flex: 1 1 320px; min-width: 0; }
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) { flex: 1 1 250px; }
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-submit { flex: 0 0 auto; min-width: 180px; max-width: none; }
}
body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-field--search input { text-overflow: ellipsis; }
@media (max-width: 420px) { /* téléphones : le texte d'aide tient en entier */
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-field--search { gap: 0; padding-inline: 8px; }
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-field--search > span[aria-hidden="true"] { display: none; }
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar .b4y-filter-field--search input[type="search"] { font-size: 12px !important; padding: 0 !important; }
}
/* Quand le lieu s'ajoute aux champs, les pictogrammes des menus s'effacent pour que « Pôle ou commune » reste lisible. */
@media (min-width: 681px) and (max-width: 1599px) {
  body.b4y-archive-b4y_job .b4y-jobs-head .b4y-filter-bar:has(select[name="ville"]) .b4y-filter-field:not(.b4y-filter-field--search):not(.b4y-filter-field--toggle) > span[aria-hidden="true"] { display: none; }
}

/* --- Fiches : liens du texte visibles et adresses longues (e-mail) qui ne débordent pas sur mobile (3 déc. 2026) --- */
.b4y-single-content a, .b4y-practical-list span a { overflow-wrap: anywhere; }
.b4y-directory-single .b4y-single-richtext a:not(.b4y-btn) { color: var(--primary, #B1264F); text-decoration: underline; text-underline-offset: 2px; }
.b4y-single-richtext a.b4y-btn { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: normal; }

/* --- Page Événements : l'encadré sombre ne recouvre plus les pictogrammes de l'image (3 déc. 2026) ---
   Limité à la bannière .b4y-event-banner (FR et EN). Le panneau s'arrête avant le chevalet de l'image (environ 47 % de la largeur) ;
   l'introduction passe sur deux lignes ou plus. Image, textes et hauteur de la bannière inchangés. */
.b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel {
  width: fit-content;
  max-width: calc(47vw - max(20px, (100vw - 1224px) / 2));
}
.b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
.b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel p { font-size: clamp(14px, 1.45vw, 17px); line-height: 1.45; }
@media (max-width: 560px) {
  .b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel {
    width: fit-content;
    max-width: calc(46vw - 14px);
    padding: 10px 12px;
  }
  .b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel h1 { font-size: clamp(18px, 6.6vw, 28px); overflow-wrap: normal; }
  .b4y-portal-hero.b4y-event-banner .b4y-hero-text-panel p { font-size: 12px; line-height: 1.4; }
}
