/*
 * Bellême Boutique - composants front.
 * Version propre full width : bloc accueil + annuaire.
 * Ne cible pas les sections Elementor hors .bb-home-explorer.
 */

/* =========================================================
   Variables
========================================================= */

:root {
  --bb-black: #1F1F1F;
  --bb-yellow: #ffb20f;
  --bb-yellow-dark: #eaa000;
  --bb-cream: #fff8ec;
  --bb-paper: #f4e5cc;
  --bb-green: #244b39;
  --bb-green-soft: #e9f0ea;
  --bb-rust: #b75b34;
  --bb-blue: #2f5f75;
  --bb-plum: #63415f;
  --bb-brown: #8a6a2f;
  --bb-text: #1F1F1F;
  --bb-muted: rgba(31, 31, 31, .68);
  --bb-border: rgba(31, 31, 31, .12);
  --bb-shadow: 0 20px 55px rgba(31, 31, 31, .10);
}

/* =========================================================
   Recherche générique
========================================================= */

.bb-search-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.bb-search-form__input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-black);
  font-size: 15px;
  outline: none;
}

.bb-search-form__input:focus {
  border-color: var(--bb-black);
  box-shadow: 0 0 0 3px rgba(31, 31, 31, .07);
}

.bb-search-form__submit {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bb-black);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

/* =========================================================
   Filtres annuaire hérités
========================================================= */

.filtres-sous-categories,
.filtres-type-entreprises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 28px;
}

.filtre-label,
.filtre-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(31, 31, 31, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-black);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filtre-label:hover,
.filtre-btn:hover,
.filtre-label.is-active,
.filtre-btn.active,
.filtre-btn.is-active {
  background: var(--bb-black);
  color: #fff;
}

/* =========================================================
   Accueil - bloc full width Bellême Boutique
========================================================= */

.bb-home-explorer {
  position: relative;
  isolation: isolate;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(42px, 6vw, 82px) clamp(18px, 4vw, 46px);
  overflow: hidden;
  background: #f7f4ee;
  border-top: 1px solid rgba(31, 31, 31, .08);
  border-bottom: 1px solid rgba(31, 31, 31, .08);
}

.bb-home-explorer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(31, 31, 31, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
  pointer-events: none;
}

.bb-home-explorer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(31, 31, 31, .035);
  z-index: -1;
  pointer-events: none;
}

.bb-home-explorer__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* =========================================================
   Hero interne
========================================================= */

.bb-home-explorer__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, .64fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.bb-home-explorer__titlewrap {
  max-width: 760px;
}

.bb-home-explorer__kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(31, 31, 31, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--bb-black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bb-home-explorer h1 {
  max-width: 720px;
  margin: 0;
  color: var(--bb-black);
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: .94;
  letter-spacing: -.06em;
}

.bb-home-explorer__titlewrap p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--bb-muted);
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.65;
}

/* =========================================================
   Chips
========================================================= */

.bb-home-explorer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.bb-home-explorer__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--bb-black);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(31, 31, 31, .08);
  box-shadow: none;
}

/* =========================================================
   Panneau recherche
========================================================= */

.bb-home-explorer__panel {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(31, 31, 31, .12);
  border-radius: 28px;
  background: var(--bb-black);
  color: #fff;
  box-shadow: 0 28px 70px rgba(31, 31, 31, .24);
}

.bb-home-explorer__panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 34px;
  width: 76px;
  height: 16px;
  border-radius: 999px;
  background: var(--bb-yellow);
}

.bb-home-explorer__panel-label {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .80);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bb-home-explorer__search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.bb-home-explorer__search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: #fff;
  color: var(--bb-black);
  font-size: 15.5px;
  outline: none;
}

.bb-home-explorer__search input[type="search"]::placeholder {
  color: rgba(31, 31, 31, .48);
}

.bb-home-explorer__search input[type="search"]:focus {
  border-color: var(--bb-yellow);
  box-shadow: 0 0 0 3px rgba(255, 178, 15, .26);
}

.bb-home-explorer__search button {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--bb-yellow);
  color: var(--bb-black) !important;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.bb-home-explorer__search button:hover {
  background: #ffc33c!important;
}

.bb-home-explorer__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.bb-home-explorer__panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: #fff !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.bb-home-explorer__panel-actions a:hover {
  background: rgba(255, 255, 255, .20);
  color: #fff !important;
}

/* =========================================================
   Cartes
========================================================= */

.bb-home-explorer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bb-home-explorer__card {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(31, 31, 31, .10);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  color: var(--bb-black) !important;
  text-decoration: none !important;
  box-shadow: var(--bb-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bb-home-explorer__card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 52px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: var(--bb-yellow);
}

.bb-home-explorer__card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 31, 31, .22);
  box-shadow: 0 26px 60px rgba(31, 31, 31, .13);
}

.bb-home-explorer__label {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 31, 31, .07);
  color: var(--bb-black) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bb-home-explorer__card strong {
  display: block;
  color: var(--bb-black) !important;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.bb-home-explorer__card span:last-of-type {
  display: block;
  margin-top: 12px;
  color: rgba(31, 31, 31, .66) !important;
  font-size: 15px;
  line-height: 1.55;
}

.bb-home-explorer__card i {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--bb-black) !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.bb-home-explorer__card i::after {
  content: " →";
}

.bb-home-explorer__card.is-boutiques::before {
  background: var(--bb-rust);
}

.bb-home-explorer__card.is-manger::before {
  background: var(--bb-green);
}

.bb-home-explorer__card.is-cadeaux::before {
  background: var(--bb-plum);
}

.bb-home-explorer__card.is-maison::before {
  background: var(--bb-blue);
}

.bb-home-explorer__card.is-bienetre::before {
  background: var(--bb-brown);
}

.bb-home-explorer__card.is-tourisme::before {
  background: var(--bb-black);
}

/* =========================================================
   Annuaire - univers publics
========================================================= */

.bb-annuaire-univers {
  max-width: 1120px;
  margin: 0 auto 30px;
  padding: 24px;
  border: 1px solid rgba(31, 31, 31, .12);
  border-radius: 26px;
  background: var(--bb-cream);
}

.bb-annuaire-univers__head {
  margin-bottom: 18px;
  text-align: center;
}

.bb-annuaire-univers__head span {
  display: block;
  color: var(--bb-black);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: -.025em;
}

.bb-annuaire-univers__head p {
  max-width: 580px;
  margin: 7px auto 0;
  color: var(--bb-muted);
  font-size: 15px;
  line-height: 1.55;
}

.bb-annuaire-univers__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bb-annuaire-univers__btn {
  min-height: 42px;
  border: 1px solid rgba(31, 31, 31, .16);
  border-radius: 999px;
  padding: 9px 15px;
  background: #fff;
  color: var(--bb-black);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.bb-annuaire-univers__btn:hover,
.bb-annuaire-univers__btn.is-active {
  background: var(--bb-black);
  color: #fff;
}

/* =========================================================
   Ajax Search Lite : masquer panneaux techniques
========================================================= */

.searchsettings,
.asl_s.searchsettings,
#__original__ajaxsearchlitesettings1 {
  display: none !important;
  visibility: hidden !important;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
  .bb-home-explorer__hero {
    grid-template-columns: 1fr;
  }

  .bb-home-explorer__panel {
    max-width: 620px;
  }

  .bb-home-explorer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bb-search-form {
    flex-direction: column;
  }

  .bb-search-form__submit {
    width: 100%;
  }

  .bb-home-explorer {
    padding: 34px 14px;
  }

  .bb-home-explorer h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .bb-home-explorer__titlewrap p {
    font-size: 16px;
  }

  .bb-home-explorer__panel {
    padding: 20px;
    border-radius: 22px;
  }

  .bb-home-explorer__search {
    grid-template-columns: 1fr;
  }

  .bb-home-explorer__search button {
    width: 100%;
      margin-top:10px!important
  }

  .bb-home-explorer__grid {
    grid-template-columns: 1fr;
  }

  .bb-home-explorer__card {
    min-height: auto;
  }

  .bb-annuaire-univers {
    padding: 20px 14px;
  }

  .bb-annuaire-univers__buttons {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .bb-annuaire-univers__btn {
    flex: 0 0 auto;
  }
}