/* Accueil, informations prioritaires et tampons d'activité — v29 */
.homepage-highlights {
  padding: 86px 0;
  color: var(--ink, #173b57);
  background: #fff7e8;
  border-bottom: 1px solid rgba(23, 59, 87, .12);
}

.homepage-highlights-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.homepage-highlights-heading .kicker {
  margin: 0;
  color: var(--coral, #f15a47);
}

.homepage-highlights-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-league-spartan), Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}

.homepage-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.homepage-highlights-grid.is-single {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.homepage-highlight-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(185px, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 59, 87, .16);
  box-shadow: 10px 10px 0 var(--yellow, #f5ce46);
}

.homepage-highlight-card:nth-child(2) {
  box-shadow: 10px 10px 0 var(--blue, #3478d4);
}

.homepage-highlight-card.no-image {
  grid-template-columns: 1fr;
}

.homepage-highlight-visual {
  min-height: 340px;
  display: block;
  padding: 10px;
  background: #fff;
  border-right: 1px solid rgba(23, 59, 87, .12);
}

.homepage-highlight-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.homepage-highlight-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
}

.homepage-highlight-content > span {
  margin-bottom: 15px;
  color: var(--coral, #f15a47);
  font-family: var(--font-roboto-mono), monospace;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.homepage-highlight-content h3 {
  margin: 0;
  font-family: var(--font-league-spartan), Arial, sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}

.homepage-highlight-content > p {
  margin: 19px 0 0;
  color: #536d7e;
  font-size: .9rem;
  line-height: 1.65;
}

.homepage-highlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.homepage-highlight-button {
  display: inline-flex;
  justify-content: center;
  padding: 12px 15px;
  color: #fff;
  background: var(--ink, #173b57);
  font-size: .75rem;
  font-weight: 800;
}

.homepage-highlight-zoom {
  border-bottom: 1px solid;
  color: var(--ink, #173b57);
  font-size: .69rem;
  font-weight: 750;
}

.activity-card {
  position: relative;
}

.activity-stamps {
  z-index: 3;
  position: absolute;
  top: 12px;
  right: 10px;
  max-width: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.activity-stamp {
  display: inline-block;
  padding: 6px 9px 5px;
  color: #fff;
  background: var(--coral, #f15a47);
  border: 2px solid currentColor;
  box-shadow: 0 0 0 2px var(--coral, #f15a47), 0 4px 12px rgba(23, 59, 87, .2);
  font-family: var(--font-roboto-mono), Arial, sans-serif;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .075em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.activity-stamp:nth-child(even) {
  transform: rotate(2deg);
}

.activity-stamp-free {
  background: #168b67;
  box-shadow: 0 0 0 2px #168b67, 0 4px 12px rgba(23, 59, 87, .2);
}

.activity-stamp-new_instructor {
  background: #3478d4;
  box-shadow: 0 0 0 2px #3478d4, 0 4px 12px rgba(23, 59, 87, .2);
}

.activity-stamp-new_slot {
  color: #173b57;
  background: #f5ce46;
  box-shadow: 0 0 0 2px #f5ce46, 0 4px 12px rgba(23, 59, 87, .2);
}

.activity-home-link {
  display: none;
}

.show-all-activities {
  width: max-content;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .homepage-highlights {
    padding: 70px 0;
  }

  .homepage-highlights-heading {
    display: block;
  }

  .homepage-highlights-heading .kicker {
    margin-bottom: 14px;
  }

  .homepage-highlight-card {
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 820px) {
  .homepage-highlights {
    padding: 58px 0 64px;
    overflow: hidden;
  }

  .homepage-highlights-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .homepage-highlights-grid {
    display: flex;
    gap: 15px;
    margin-right: calc(50% - 50vw);
    padding: 0 18px 16px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .homepage-highlight-card {
    flex: 0 0 min(88vw, 540px);
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    min-height: 292px;
    scroll-snap-align: start;
    box-shadow: 7px 7px 0 var(--yellow, #f5ce46);
  }

  .homepage-highlight-card:nth-child(2) {
    box-shadow: 7px 7px 0 var(--blue, #3478d4);
  }

  .homepage-highlight-visual {
    min-height: 292px;
    padding: 6px;
  }

  .homepage-highlight-content {
    padding: 22px 17px;
  }

  .homepage-highlight-content > span {
    margin-bottom: 11px;
    font-size: .59rem;
  }

  .homepage-highlight-content h3 {
    font-size: clamp(1.25rem, 5.6vw, 1.8rem);
  }

  .homepage-highlight-content > p {
    margin-top: 13px;
    font-size: .76rem;
    line-height: 1.5;
  }

  .homepage-highlight-actions {
    align-items: flex-start;
    margin-top: 16px;
  }

  .homepage-highlight-button {
    padding: 10px 11px;
    font-size: .67rem;
  }

  .homepage-highlight-zoom {
    font-size: .62rem;
  }

  .homepage-activity-finder {
    overflow: visible;
  }

  .homepage-activity-finder .activity-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    margin-right: calc(50% - 50vw);
    padding: 5px 17px 18px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .homepage-activity-finder .activity-card:not([hidden]) {
    flex: 0 0 min(calc(100vw - 64px), 330px);
    min-height: 350px;
    padding: 18px;
    display: flex;
    scroll-snap-align: start;
  }

  .homepage-activity-finder .activity-card-illustrated:not([hidden]) {
    min-height: 350px;
  }

  .homepage-activity-finder .activity-visual {
    height: 152px;
    margin: -18px -18px 17px;
  }

  .homepage-activity-finder .activity-card h3 {
    margin-top: 17px;
    font-size: 1.35rem;
  }

  .homepage-activity-finder .activity-card > p,
  .homepage-activity-finder .activity-card > small,
  .homepage-activity-finder .activity-details,
  .homepage-activity-finder .activity-card-actions {
    display: none;
  }

  .homepage-activity-finder .audience-tags {
    margin-bottom: 17px;
  }

  .homepage-activity-finder .activity-home-link {
    display: block;
    margin-top: auto;
    padding: 11px 10px;
    color: #fff;
    background: var(--ink, #173b57);
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
  }

  .homepage-activity-finder .activity-stamps {
    top: 9px;
    right: 8px;
  }

  .homepage-activity-finder .activity-stamp {
    padding: 5px 7px 4px;
    font-size: .51rem;
  }
}

@media (max-width: 420px) {
  .homepage-highlight-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .homepage-highlight-content {
    padding: 19px 14px;
  }

  .homepage-highlight-content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .homepage-highlight-card {
    animation: mjc-highlight-enter .5s ease-out both;
  }

  .homepage-highlight-card:nth-child(2) {
    animation-delay: .08s;
  }
}

@keyframes mjc-highlight-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
