/* Reserved for WordPress-specific overrides. */
.logo .custom-logo-link,
.logo .custom-logo-link img,
.logo img.custom-logo {
  display: block;
  width: 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;
}
@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;
  }
}
@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;
  }
}

/* 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 {
  background: linear-gradient(90deg, rgba(11, 13, 24, .92) 0%, rgba(11, 13, 24, .70) 48%, rgba(11, 13, 24, .28) 100%);
}
.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;
}
.b4y-social-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  margin-top: 18px !important;
}
.b4y-social-list a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.b4y-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1210px;
  margin: 28px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
@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;
  }
  .b4y-footer-bottom {
    flex-direction: column;
  }
}


/* 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, #cf0a67, #97005f);
  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;
}
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;
  }
}
