/**
 * "Voix d'Archery" page (template: archery-voice-template.php).
 *
 * Loaded only on pages using that template (see inc/enqueue.php). Holds the
 * inner-banner layout tweaks plus the article-listing styles. The shared
 * design system (buttons, banner, top bar, footer, mobile menu) lives in
 * styles.css / tablet.css / mobile.css and is reused as-is.
 */

/* ============================================================
   Shared bits this page leans on
   ============================================================ */
.voix,
.voix a {
  color: #000;
}

.serif {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  margin: 0;
}

.arr {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e9511c;
  background: #e9511c;
  color: #f8feff;
  border-radius: 13px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 34px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8feff;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ============================================================
   Voix — hero
   ============================================================ */
.voix {
  padding: 15px 15px 60px;
  margin: 0;
}

.va-up {
  animation: vup 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.va-up.d1 { animation-delay: 0.08s; }
.va-up.d2 { animation-delay: 0.16s; }
.va-up.d3 { animation-delay: 0.28s; }

@keyframes vup {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

.va-hero {
  position: relative;
  padding: 20px 0 46px;
}

.va-btitle {
  font-size: clamp(64px, 9.5vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-top: 26px;
}

.va-btitle span { display: block; }
.va-l2 { text-align: right; }
.va-l2 i { color: #e9511c; }

.va-row2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
}

.va-introp {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
  width: 53%;
  max-width: 660px;
  margin: 0 0 12px;
}

/* b and strong both: the back office writes <strong>, older saved copy <b>. */
.va-introp b,
.va-introp strong { color: #000; }

.va-filterbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin-top: 26px;
  padding-top: 22px;
}

.va-fbtn {
  border: 1px solid #70cbd3;
  border-radius: 15px;
  padding: 6px 14px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.va-fbtn:hover { background: #d0eff2; color: #000; }
.va-fbtn.on { background: #70cbd3; font-weight: 600; }

/* ============================================================
   Voix — featured article ("À la une")
   ============================================================ */
.va-feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 15px;
  overflow: hidden;
  background: #d0eff2;
  margin-bottom: 52px;
  transition: transform 0.35s, box-shadow 0.35s;
}

.va-feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  color: #000;
}

.va-feat-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.va-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.va-msep { color: rgba(0, 0, 0, 0.3); }

/* Card meta sits just below the image. */
.va-mimg + .va-meta { margin-top: 12px; }

.va-title {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin-top: 18px;
}

.va-title i { color: #e9511c; }

.va-lede {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
  max-width: 560px;
  margin-top: 18px;
}

.va-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1.5px solid #000;
  padding-bottom: 2px;
  margin-top: 24px;
  align-self: flex-start;
}

.va-feat:hover .va-read .arr { transform: translateX(8px); }

.va-ft-img {
  min-height: 420px;
  background: repeating-linear-gradient(135deg, #b4e4e8, #b4e4e8 10px, #d0eff2 10px, #d0eff2 20px);
  position: relative;
  overflow: hidden;
}

/* Featured + card images cover their box; the ci-* stripes underneath stand
   in as a placeholder until an image is set. The pill (.va-pill-img) keeps its
   own z-index, so it stays above the image. */
.va-ft-img img,
.va-mimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Voix — article grid
   ============================================================ */
.va-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}

.va-item {
  display: flex;
  flex-direction: column;
  animation: vup 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.va-item:hover { color: #000; }

.va-mimg {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  /* Uniform, responsive image size: one aspect-ratio for every card, so images
     scale with the column width and always match each other. (The old
     .sz-tall / .sz-std / .sz-short classes used to vary this.) */
  aspect-ratio: 606 / 455;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.va-item:hover .va-mimg { transform: translateY(-5px); }

/* Size classes retained so the PHP helper (archery_voix_card_size) stays valid,
   but they no longer vary the ratio — all cards share .va-mimg's 606/455. */

/* Placeholder tints, one per Voix category. The neutral one below covers the
   rest — a card with no featured image whose category has no colour of its own
   (or none at all) gets the house stripes rather than an empty hole. The image
   covers the whole box (.va-mimg img), so this only ever shows without one. */
.va-mimg { background: repeating-linear-gradient(135deg, #f8feff, #f8feff 8px, #eef7f9 8px, #eef7f9 16px); }

.ci-laureat { background: repeating-linear-gradient(135deg, #70cbd3, #70cbd3 8px, #92d8de 8px, #92d8de 16px); }
.ci-campus { background: repeating-linear-gradient(135deg, #b4e4e8, #b4e4e8 8px, #d0eff2 8px, #d0eff2 16px); }
.ci-mentorat { background: repeating-linear-gradient(135deg, #d0eff2, #d0eff2 8px, #f8feff 8px, #f8feff 16px); }
.ci-presse { background: repeating-linear-gradient(135deg, #f5c6b2, #f5c6b2 8px, #fbe3d8 8px, #fbe3d8 16px); }

.va-pill {
  border-radius: 15px;
  padding: 4px 11px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f8feff;
  border: 1px solid #000;
  color: #000;
}

.va-pill-img {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
}

.pill-presse { background: #e9511c; border-color: #e9511c; color: #f8feff; }
.pill-laureat { background: #70cbd3; border-color: #70cbd3; }
.pill-campus { background: #f8feff; border-color: #000; }
.pill-mentorat { background: #000; border-color: #000; color: #f8feff; }

.va-ititle {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 12px 0 0;
  transition: color 0.25s;
}

.va-item:hover .va-ititle { color: #e9511c; }

.va-iexcerpt {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
  margin: 10px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.va-cfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #d0eff2;
}

.va-author {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(0, 0, 0, 0.5);
}

.va-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.va-item:hover .va-arrow { background: #e9511c; border-color: #e9511c; color: #f8feff; }
.va-item:hover .va-arrow .arr { transform: translateX(2px); }

/* ============================================================
   Voix — « charger plus »
   ============================================================ */
/* The template prints this hidden and js/voix.js reveals it only while the list
   holds more than the four rows on screen — so a short listing, and a page with
   JavaScript off, never show it. No display rule of its own on purpose: an
   equally specific one would beat [hidden] and the button would leak through.
   text-align centres the inline-flex button without needing one. */
.va-more {
  margin-top: 56px;
  text-align: center;
}

/* The filter bar's pill at action size — same turquoise outline and radius,
   filled on hover with the orange the cards use for theirs (.va-arrow). */
.va-morebtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #70cbd3;
  border-radius: 15px;
  padding: 13px 28px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.va-morebtn:hover { background: #e9511c; border-color: #e9511c; color: #f8feff; }

/* .arr already carries the transition; this only gives it somewhere to go —
   downwards, towards what the click is about to reveal. */
.va-morebtn:hover .arr { transform: translateY(3px); }

/* ============================================================
   Responsive
   ============================================================ */
/* Tablet (<=1280px) — 2-col grid; also clears the fixed .ui-menu-mobile bar. */
@media (max-width: 1280px) {
  .voix { padding-top: 100px; }
  .va-feat { grid-template-columns: 1fr; }
  .va-ft-img { min-height: 240px; }
  .va-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (<=580px) — single column, hero reflow. */
@media (max-width: 580px) {
  .va-grid { grid-template-columns: 1fr; }
  .va-hero { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .va-row2 { display: contents; }
  .va-hero .eyebrow { order: 0; margin-bottom: 6px; align-self: flex-start; }
  .va-hero .va-btitle { order: 1; margin-top: 0; }
  .va-hero .va-introp { order: 2; width: 100%; margin: 0; }
  .va-hero .va-filterbar { order: 3; margin-top: 20px; }
  .va-l2 { text-align: left; }
  .va-btitle { font-size: clamp(44px, 13vw, 66px); }
  .va-feat-body { padding: 30px 24px; }
  .va-ft-img { min-height: 200px; }
  .va-more { margin-top: 40px; }
}

/* ==========================================================================
   Big screens (>=1700px) — mirrors css/big-screen.css for this page.

   Every fixed px length above is re-expressed in vw so the 1440px-reference
   design scales up proportionally instead of leaving the content marooned in
   whitespace. Conversion: 1px = 0.0694486429vw (100 / 1440). Percentages, fr
   units and ratio line-heights are left untouched.

   The clamp() display headings drop their px ceiling here: the cap started
   binding at ~1700px, which would freeze them while the rest of the page
   grew. @keyframes offsets stay in px — a media query cannot override an
   individual keyframe step.
   ========================================================================== */

@media (min-width: 1700px) {
  .eyebrow {
    gap: 0.55559vw;
    border: 0.06945vw solid #e9511c;
    border-radius: 0.90283vw;
    padding: 0.48614vw 1.11118vw;
    font-size: 0.97228vw;
    letter-spacing: 0.09723vw;
    margin-bottom: 2.36125vw;
  }

  .eyebrow::before {
    width: 0.48614vw;
    height: 0.48614vw;
  }

  .voix {
    padding: 1.04173vw 1.04173vw 4.16692vw;
  }

  .va-hero {
    padding: 1.38897vw 0 3.19464vw;
  }

  .va-btitle {
    font-size: 9.5vw;
    margin-top: 1.80566vw;
  }

  .va-row2 {
    gap: 3.47243vw;
  }

  .va-introp {
    font-size: 1.11118vw;
    max-width: 45.8361vw;
    margin: 0 0 0.83338vw;
  }

  .va-filterbar {
    gap: 0.55559vw;
    border-top: 0.06945vw solid rgba(0, 0, 0, 0.15);
    margin-top: 1.80566vw;
    padding-top: 1.52787vw;
  }

  .va-fbtn {
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.04173vw;
    padding: 0.41669vw 0.97228vw;
    font-size: 0.97228vw;
  }

  .va-feat {
    border-radius: 1.04173vw;
    margin-bottom: 3.61133vw;
  }

  .va-feat:hover {
    transform: translateY(-0.27779vw);
    box-shadow: 0 1.25008vw 2.77795vw rgba(0, 0, 0, 0.12);
  }

  .va-feat-body {
    padding: 3.05574vw;
    gap: 2.08346vw;
  }

  .va-meta {
    gap: 0.69449vw;
    font-size: 0.97228vw;
    letter-spacing: 0.06945vw;
  }

  .va-mimg + .va-meta {
    margin-top: 0.83338vw;
  }

  .va-title {
    font-size: 3.6vw;
    letter-spacing: -0.03472vw;
    margin-top: 1.25008vw;
  }

  .va-lede {
    font-size: 1.11118vw;
    max-width: 38.89124vw;
    margin-top: 1.25008vw;
  }

  .va-read {
    gap: 0.55559vw;
    font-size: 1.11118vw;
    border-bottom: 0.10417vw solid #000;
    padding-bottom: 0.1389vw;
    margin-top: 1.66677vw;
  }

  .va-feat:hover .va-read .arr {
    transform: translateX(0.55559vw);
  }

  .va-ft-img {
    min-height: 29.16843vw;
    background: repeating-linear-gradient(135deg, #b4e4e8, #b4e4e8 0.69449vw, #d0eff2 0.69449vw, #d0eff2 1.38897vw);
  }

  .va-grid {
    gap: 3.05574vw 2.50015vw;
  }

  .va-mimg {
    border-radius: 1.04173vw;
  }

  .va-item:hover .va-mimg {
    transform: translateY(-0.34724vw);
  }

  .ci-laureat {
    background: repeating-linear-gradient(135deg, #70cbd3, #70cbd3 0.55559vw, #92d8de 0.55559vw, #92d8de 1.11118vw);
  }

  .ci-campus {
    background: repeating-linear-gradient(135deg, #b4e4e8, #b4e4e8 0.55559vw, #d0eff2 0.55559vw, #d0eff2 1.11118vw);
  }

  .ci-mentorat {
    background: repeating-linear-gradient(135deg, #d0eff2, #d0eff2 0.55559vw, #f8feff 0.55559vw, #f8feff 1.11118vw);
  }

  .ci-presse {
    background: repeating-linear-gradient(135deg, #f5c6b2, #f5c6b2 0.55559vw, #fbe3d8 0.55559vw, #fbe3d8 1.11118vw);
  }

  .va-pill {
    border-radius: 1.04173vw;
    padding: 0.27779vw 0.76394vw;
    font-size: 0.97228vw;
    letter-spacing: 0.06945vw;
    border: 0.06945vw solid #000;
  }

  .va-pill-img {
    top: 0.83338vw;
    left: 0.83338vw;
  }

  .va-ititle {
    font-size: 1.25008vw;
    letter-spacing: -0.01389vw;
    margin: 0.83338vw 0 0;
  }

  .va-iexcerpt {
    font-size: 1.11118vw;
    margin: 0.69449vw 0 0.97228vw;
  }

  .va-cfoot {
    padding-top: 0.83338vw;
    border-top: 0.06945vw solid #d0eff2;
  }

  .va-author {
    font-size: 0.97228vw;
    letter-spacing: 0.02778vw;
  }

  .va-arrow {
    width: 2.22236vw;
    height: 2.22236vw;
    border: 0.06945vw solid #000;
    font-size: 0.97228vw;
  }

  .va-item:hover .va-arrow .arr {
    transform: translateX(0.1389vw);
  }

  .va-more {
    margin-top: 3.88912vw;
  }

  .va-morebtn {
    gap: 0.69449vw;
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.04173vw;
    padding: 0.90283vw 1.94456vw;
    font-size: 0.97228vw;
  }

  .va-morebtn:hover .arr {
    transform: translateY(0.20835vw);
  }
}
