/**
 * "Notre approche" page (template: archery-approche-template.php).
 *
 * Loaded only on pages using that template, on top of css/generique.css (see
 * inc/enqueue.php). The prototype (demo/notre-approche (2).html) is built from
 * the same blocks as the "Page modèle" — .lh hero, .wys text, .lev cards, .who
 * cards, .odd band, .manif quote — and generique.css already carries all of
 * them, big-screen scaling included. This file only holds what the page does
 * differently, scoped under `.apr`:
 *
 * - five step cards instead of four (.who), with a fifth ramp colour and an
 *   extra 1200px breakpoint;
 * - the lever labels (.odd-num) are uppercase;
 * - the .odd-cta button gets the same sizing as the .lh-btns ones, and sits
 *   at its content width instead of the full column;
 * - the buttons closing the last .wys block get the prototype's top margin
 *   (an inline style in the demo).
 *
 * The prototype's standalone-header hacks (.ui-banner / .ui-footer overrides,
 * sticky Menu clone) are dropped, as on every inner page: the theme's inner
 * banner (template-parts/inner-banner.php) renders that row.
 */

/* ============================================================
   Five steps
   ============================================================ */
.apr .who {
  grid-template-columns: repeat(5, 1fr);
}

.apr .who-c:nth-child(5) {
  background: #4fbac4;
  border-color: #4fbac4;
}

/* ============================================================
   Moyens d'action
   ============================================================ */
.apr .odd-num {
  text-transform: uppercase;
}

/* .ui-btn-dark is display:flex, so in a plain block it stretches to the full
   column. A flex container shrinks it to its content, like in .lh-btns. */
.apr .odd-cta {
  display: flex;
}

.apr .odd-cta a {
  height: auto;
  padding: 6.8px 11.8px;
  line-height: normal;
  white-space: nowrap;
}

/* ============================================================
   Aller plus loin
   ============================================================ */
.apr .wys .lh-btns {
  margin-top: 26px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .apr .who {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Re-stated because the scoped five-column rule above outranks generique.css's
   own 1050px step. At 600px generique.css turns .who into a flex carousel,
   which ignores grid-template-columns, so nothing is needed below. */
@media (max-width: 1050px) {
  .apr .who {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Big screens: px → vw at the 1440px design width, like generique.css. */
@media (min-width: 1700px) {
  .apr .odd-cta a {
    padding: 0.47225vw 0.81949vw;
  }

  .apr .wys .lh-btns {
    margin-top: 1.80566vw;
  }
}
