/* ==========================================================================
   Intervenants page (template-intervenants.php).
   Loaded only for that page template (see functions.php), after main.css.
   Speakers come from the "intervenant" CPT; hero/stats/CTA from ACF.
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */
.int-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 40vh, 440px);
  display: flex;
  align-items: flex-end;
  /* dark gradient over the conference photo */
  background:
    linear-gradient(
      76deg,
      rgba(17, 17, 17, 0.95) 0%,
      rgba(17, 17, 17, 0.78) 46%,
      rgba(17, 17, 17, 0.28) 100%
    ),
    #111 url('../assets/partners.jpg') center 30% / cover no-repeat;
}

.int-hero .int-hero-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: clamp(44px, 5.5vw, 92px) clamp(20px, 4vw, 30px) clamp(30px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.int-hero .int-hero-eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c3ff74;
}

.int-hero .int-hero-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -2.6px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #fff;
}

.int-hero .int-hero-rule {
  height: 8px;
  background: #c3ff74;
  max-width: 180px;
}

.int-hero .int-hero-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #dcdcdc;
  max-width: 560px;
}

/* ---- Highlight: stats + guests of honour -------------------------------- */
.int-highlight {
  background: #111;
  padding: clamp(28px, 3.4vw, 52px) clamp(20px, 4vw, 30px) clamp(32px, 4vw, 56px);
}

.int-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  margin-bottom: clamp(32px, 4vw, 64px);
}

.int-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 8px solid #c3ff74;
  padding-top: clamp(14px, 1.8vw, 22px);
}

.int-stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -2.4px;
  color: #fff;
}

.int-stat-label {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* Guests of honour: cards as wide as a 4-column grid cell, centred when fewer. */
.int-feats {
  --int-gap: clamp(16px, 2vw, 26px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--int-gap);
}

.int-feats .int-card {
  flex: 0 0 calc((100% - 3 * var(--int-gap)) / 4);
}

/* ---- Portrait media ----------------------------------------------------- */
.int-por {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #111;
  overflow: hidden;
}

.int-por img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.45s ease;
}

.int-card:hover .int-por img {
  filter: none;
}

.int-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.int-badge {
  background: var(--ac);
  color: #111;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 14px;
}

.int-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac);
  color: #111;
  margin-bottom: 33px;
  transition: background 0.25s ease, color 0.25s ease;
}

.int-btn svg,
.int-send svg {
  flex: none;
}

.int-card:hover .int-btn {
  background: #fff;
}

.int-li {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: var(--ac);
  border: 1px solid var(--ac);
  transition: background 0.25s ease, color 0.25s ease;
}

.int-card:hover .int-li {
  background: var(--ac);
  color: #111;
}

/* ---- Speaker lists ------------------------------------------------------ */
.int-list {
  background: #161616;
  padding: clamp(36px, 4.5vw, 72px) clamp(20px, 4vw, 30px) clamp(40px, 5vw, 72px);
}

.int-list--past {
  padding-top: clamp(32px, 4vw, 56px);
}

.int-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid #575757;
  padding-top: 18px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}

.int-list-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: #fff;
}

.int-list-note {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #575757;
}

/* ---- Domain filter ------------------------------------------------------ */
.int-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.int-filter {
  --fc: #c3ff74;
  background: transparent;
  border: 1px solid #575757;
  color: #c9c9c9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.int-filter:hover {
  border-color: var(--fc);
  color: var(--fc);
}

.int-filter.is-on {
  background: var(--fc);
  border-color: var(--fc);
  color: #111;
}

/* Mobile filter: a single-select dropdown (shown ≤760px, chips hidden) */
.int-select {
  display: none;
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.int-select-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.int-select-input {
  width: 100%;
  min-height: 48px;
  background: #161616;
  border: 1px solid #575757;
  border-left: 8px solid #c3ff74;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 14px;
}

/* ---- Speaker grid + cards ----------------------------------------------- */
/* "Anciens intervenants" pagination (paginate_links markup), styled like the filter chips */
.int-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 40px);
}

.int-pager .page-numbers {
  min-width: 44px;
  padding: 11px 14px;
  border: 1px solid #575757;
  color: #c9c9c9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Client-side pager (current edition) uses buttons: same look as the links */
.int-pager button.page-numbers {
  background: transparent;
  cursor: pointer;
  line-height: inherit;
}

.int-pager a.page-numbers:hover,
.int-pager button.page-numbers:not(.current):hover {
  border-color: #c3ff74;
  color: #c3ff74;
}

.int-pager .page-numbers.current {
  background: #c3ff74;
  border-color: #c3ff74;
  color: #111;
}

.int-pager .page-numbers.dots {
  border-color: transparent;
}

.int-pager .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.int-card {
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid #575757;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.7, 0.2, 1),
    border-color 0.35s ease;
}

.int-card:hover {
  transform: translateY(-6px);
  border-color: var(--ac);
}

.int-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 26px);
  flex: 1;
}

.int-name {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.06;
  letter-spacing: -0.6px;
  color: #fff;
}

.int-role {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: #8a8a8a;
  flex: 1;
}

.int-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #333;
  padding-top: 14px;
}

.int-country {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.int-item[hidden] {
  display: none !important;
}

/* ---- CTA ---------------------------------------------------------------- */
.int-cta-section {
  padding: 0 clamp(20px, 4vw, 30px) clamp(48px, 6vw, 90px);
  background: #111;
}

.int-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: #c3ff74;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
}

.int-cta-text {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  color: #111;
  max-width: 760px;
}

.int-send {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #c3ff74;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.int-send:hover {
  background: #0082fe;
  color: #fff;
}

/* ---- Scroll reveal ------------------------------------------------------ */
.int-reveal.js-armed {
  opacity: 0;
  transform: translateY(28px);
}

.int-reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 760px) {
  .int-filters {
    display: none;
  }

  .int-select {
    display: block;
  }
}

@media (max-width: 900px) {
  .int-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .int-feats .int-card {
    flex-basis: calc((100% - var(--int-gap)) / 2);
  }
}

@media (max-width: 620px) {
  .int-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .int-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .int-feats .int-card {
    flex-basis: 100%;
  }

  .int-send {
    width: 100%;
    justify-content: center;
  }
}
