/*
 * Bellême Boutique - Home story sections.
 * Version sobre charte : noir, jaune, ivoire, photos.
 * Ne touche pas au header, slider, footer, ni au bloc .bb-home-explorer.
 */

.bb-story {
  --bb-black: #1F1F1F;
  --bb-yellow: #ffb20f;
  --bb-yellow-soft: #fff1c7;
  --bb-cream: #f7f4ee;
  --bb-paper: #fffaf2;
  --bb-border: rgba(31, 31, 31, .11);
  --bb-muted: rgba(31, 31, 31, .66);
  --bb-shadow: 0 16px 42px rgba(31, 31, 31, .08);

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(54px, 7vw, 88px) 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bb-cream) 100%);
}

.bb-story__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bb-story__kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bb-yellow-soft);
  color: var(--bb-black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Intro */

.bb-story__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.bb-story__intro h2 {
  max-width: 760px;
  margin: 0;
  color: var(--bb-black);
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.055em;
}

.bb-story__intro p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--bb-muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.65;
}

.bb-story__note {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: var(--bb-black);
  color: #fff;
  box-shadow: 0 18px 48px rgba(31, 31, 31, .16);
}

.bb-story__note::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 66px;
  height: 14px;
  border-radius: 999px;
  background: var(--bb-yellow);
}

.bb-story__note strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.bb-story__note span {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.55;
}

/* Accès rapides sobres */

.bb-story__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(54px, 7vw, 78px);
}

.bb-story__quick-card {
  position: relative;
  min-height: 205px;
  padding: 26px;
  border: 1px solid var(--bb-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  color: var(--bb-black);
  text-decoration: none;
  box-shadow: var(--bb-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bb-story__quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 31, 31, .20);
  box-shadow: 0 24px 58px rgba(31, 31, 31, .12);
}

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

.bb-story__quick-card span {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 31, 31, .07);
  color: var(--bb-black);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.bb-story__quick-card strong {
  display: block;
  color: var(--bb-black);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.bb-story__quick-card em {
  display: block;
  max-width: 92%;
  margin-top: 14px;
  color: var(--bb-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

/* Légères variations uniquement en filet, pas en fond */

.bb-story__quick-card.is-addresses::before {
  background: #ffb20f;
}

.bb-story__quick-card.is-agenda::before {
  background: #1F1F1F;
}

.bb-story__quick-card.is-association::before {
  background: #8f6a2d;
}

/* Événements */

.bb-story__events {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--bb-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--bb-shadow);
}

.bb-story__events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(26px, 4vw, 36px);
}

.bb-story__events-head h2 {
  margin: 0;
  color: var(--bb-black);
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1;
  letter-spacing: -.052em;
}

.bb-story__events-head a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bb-black);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.bb-story__events-head a:hover {
  background: var(--bb-yellow);
  color: var(--bb-black);
}

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

.bb-story-event {
  border: 1px solid var(--bb-border);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(31, 31, 31, .065);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bb-story-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(31, 31, 31, .12);
}

.bb-story-event__image {
  display: block;
  height: 215px;
  overflow: hidden;
  background: var(--bb-black);
  text-decoration: none;
}

.bb-story-event__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .26s ease;
}

.bb-story-event:hover .bb-story-event__image img {
  transform: scale(1.04);
}

.bb-story-event__image span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.bb-story-event__body {
  padding: 24px;
}

.bb-story-event__body h3 {
  margin: 0;
}

.bb-story-event__body h3 a {
  color: var(--bb-black);
  font-size: clamp(21px, 1.75vw, 26px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-decoration: none;
}

.bb-story-event__body p {
  margin: 12px 0 18px;
  color: rgba(31, 31, 31, .66);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.48;
}

.bb-story-event__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bb-black);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.bb-story-event__link:hover {
  background: var(--bb-yellow);
  color: var(--bb-black);
}

.bb-story__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bb-muted);
}

/* Responsive */

@media (max-width: 1024px) {
  .bb-story__intro,
  .bb-story__quick,
  .bb-story__events-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bb-story__quick-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .bb-story {
    padding: 44px 14px;
  }

  .bb-story__intro,
  .bb-story__quick,
  .bb-story__events-grid {
    grid-template-columns: 1fr;
  }

  .bb-story__events {
    padding: 22px;
    border-radius: 26px;
  }

  .bb-story__events-head {
    display: block;
  }

  .bb-story__events-head a {
    margin-top: 18px;
  }

  .bb-story-event__image {
    height: 210px;
  }
}

