/**
 * Page / archive « Nos activités » — cartes image + texte (maquette dark / or).
 */

.tso-archive-activites {
  box-sizing: border-box;
  min-height: 60vh;
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 96px);
  background: var(--night, #0c0a07);
  color: var(--cream, #f5edd8);
  max-width: min(1240px, 100%);
  margin: 0 auto;
}

.tso-archive-activites__hero {
  margin-bottom: clamp(36px, 5vw, 52px);
  text-align: left;
}

.tso-archive-activites__eyebrow {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand, #e8c87a);
}

.tso-archive-activites__title {
  margin: 0 0 18px;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}

.tso-archive-activites__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(245, 237, 216, 0.82);
}

.tso-archive-activites__lead em {
  font-family: var(--font-serif, 'Cinzel', Georgia, serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sand, #e8c87a);
}

.tso-archive-activites__count {
  margin: 20px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.45);
}

.tso-archive-activites__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(245, 237, 216, 0.5);
  font-size: 1rem;
}

/* Grille : défilement horizontal < 1024px, 4 colonnes desktop */
.tso-archive-activites__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  padding-bottom: 8px;
}

.tso-act-card {
  flex: 0 0 min(300px, 88vw);
  max-width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(197, 160, 89, 0.38);
  background: #12100e;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.tso-act-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 200, 122, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.tso-act-card:focus-visible {
  outline: 2px solid var(--sand, #e8c87a);
  outline-offset: 3px;
}

.tso-act-card__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background: #0a0907;
}

.tso-act-card__media--placeholder {
  background: linear-gradient(155deg, var(--act-gf, #1a1510), var(--act-gt, #2e261a));
}

.tso-act-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tso-act-card__media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 10, 7, 0.72) 0%, rgba(12, 10, 7, 0.15) 42%, transparent 62%);
}

.tso-act-card__pills {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}

.tso-act-card__pills-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 48px);
}

.tso-act-card__media-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.tso-act-card__pill {
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid rgba(232, 200, 122, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand, #e8c87a);
  background: rgba(12, 10, 7, 0.45);
  backdrop-filter: blur(8px);
}

.tso-act-card__initial {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 200, 122, 0.55);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--night, #0c0a07);
  background: var(--sand, #c5a059);
  border-color: var(--sand, #c5a059);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.tso-act-card__badge-img {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand, #e8c87a);
  border: 1px solid rgba(232, 200, 122, 0.45);
  background: rgba(12, 10, 7, 0.55);
}

.tso-act-card__badge-img--solid {
  background: var(--sand, #c5a059);
  color: var(--night, #0c0a07);
  border-color: transparent;
}

.tso-act-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  min-height: 0;
}

.tso-act-card__tagline {
  margin: 0 0 8px;
  font-family: var(--font-serif, 'Cinzel', Georgia, serif);
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--sand, #e8c87a);
}

.tso-act-card__name {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.tso-act-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(200, 190, 170, 0.88);
}

.tso-act-card__rule {
  margin: 18px 0 14px;
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tso-act-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tso-act-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tso-act-card__price-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tso-act-card__price--request .tso-act-card__price-label {
  color: var(--sand, #e8c87a);
}

.tso-act-card__price-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.tso-act-card__price-num {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.tso-act-card__price-rest {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sand, #e8c87a);
}

.tso-act-card__price-request {
  font-family: var(--font-serif, 'Cinzel', Georgia, serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sand, #e8c87a);
}

.tso-act-card__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 200, 122, 0.45);
  color: var(--sand, #e8c87a);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tso-act-card:hover .tso-act-card__arrow {
  background: var(--sand, #c5a059);
  color: var(--night, #0c0a07);
  border-color: var(--sand, #c5a059);
}

@media (min-width: 1024px) {
  .tso-archive-activites__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .tso-act-card {
    flex: unset;
    max-width: none;
    min-width: 0;
    scroll-snap-align: unset;
  }
}
