/**
 * "Le Programme" page (template: archery-programme-template.php).
 *
 * Loaded only on pages using that template (see inc/enqueue.php). Holds the
 * page's own layout: the hero panel, the free-text intro, the five levers, the
 * two phases, the figures band, the three skills, the pull quote and the
 * closing "Rejoindre Archery" band. The shared design system (buttons, banner,
 * top bar, footer, mobile menu) lives in styles.css / tablet.css / mobile.css
 * and is reused as-is.
 *
 * Transcribed from the prototype (demo/programme.html). Two deliberate
 * differences:
 *
 * - Its standalone-header hacks are dropped (`.ui-banner`/`.ui-footer`
 *   overrides, the sticky Menu clone, the `.ui-bt-actions` hiding rule). The
 *   theme's inner banner (template-parts/inner-banner.php) already renders that
 *   row and carries no sticky clone on inner pages by design.
 * - The page root is `.prg`, not the prototype's `.pg`: that class is already
 *   taken, unscoped, by the "Page modèle" stylesheet (css/generique.css), which
 *   the designer used as the base for this page. Every rule below is scoped
 *   under `.prg`, like `.eq` (L'équipe), `.ca` (Conseil) and `.men` (Mentors).
 */

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

.prg a:hover {
  color: #e9511c;
}

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

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

/* ============================================================
   Entrance animations

   `.va-up` plays on load (the hero is above the fold); `.rv` and `.rg > *`
   play on scroll through a view() timeline, so they stay pure CSS and this
   page needs no script of its own. Browsers without animation-timeline get
   the content unanimated rather than hidden.
   ============================================================ */
@keyframes prg-vup {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

.prg .va-up.d1 {
  animation-delay: 0.08s;
}

.prg .va-up.d2 {
  animation-delay: 0.16s;
}

.prg .va-up.d3 {
  animation-delay: 0.26s;
}

@supports (animation-timeline: view()) {
  .prg .rv {
    animation: prg-vup 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }

  .prg .rg > * {
    animation: prg-vup 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}

/* ============================================================
   Page root
   ============================================================ */
.prg {
  padding: 15px 15px 64px;
}

/* Tablet + mobile: the inner banner is hidden and the fixed .ui-menu-mobile bar
   takes over (position: fixed), so push the content down to clear it. */
@media (max-width: 1280px) {
  .prg {
    margin-top: 100px;
  }
}

/* ============================================================
   HERO — cyan panel, two-line title, lede
   ============================================================ */
.prg .lh {
  position: relative;
  padding: 20px 2px 20px;
}

.prg .lh-panel {
  background: #d0eff2;
  border-radius: 24px;
  padding: 38px 40px 34px;
}

.prg .lh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

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

.prg .lh-title {
  font-size: clamp(44px, 7.4vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 20px 0 0;
}

.prg .lh-title .l1 {
  display: block;
}

.prg .lh-title .l2 {
  display: block;
  text-align: right;
}

.prg .lh-title i {
  color: #e9511c;
}

.prg .lh-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-top: 44px;
}

.prg .lh-lede {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.66);
  max-width: 520px;
  margin: 0;
}

.prg .lh-lede b {
  color: #000;
}

/* ============================================================
   Figures — the stat row, shared by the hero grid and the band below
   ============================================================ */
.prg .lh-stats {
  display: flex;
  gap: 0;
}

.prg .stat {
  padding: 0 30px;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.prg .stat:first-child {
  padding-left: 0;
  border-left: none;
}

.prg .stat:last-child {
  padding-right: 0;
}

.prg .stat .num {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.prg .stat .num span {
  font-size: 0.4em;
  letter-spacing: 0;
}

.prg .stat.o .num {
  color: #e9511c;
}

.prg .stat .lbl {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  max-width: 130px;
  line-height: 1.4;
}

/* ============================================================
   INTRO — free text, full width
   ============================================================ */
.prg .wys {
  max-width: 760px;
  padding: 56px 2px 30px;
}

.prg .wys.full {
  max-width: none;
}

.prg .wys.full h2 {
  font-size: clamp(34px, 4.6vw, 62px);
}

.prg .wys.full p {
  max-width: none;
}

.prg .smeta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

.prg .smeta::before {
  content: '';
  width: 26px;
  height: 1px;
  background: #e9511c;
}

.prg .wys h2 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.prg .wys h2 i {
  color: #e9511c;
  font-style: italic;
}

.prg .wys p {
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 20px;
}

.prg .wys p strong {
  color: #000;
  font-weight: 700;
}

.prg .wys blockquote {
  margin: 30px 0 0;
  padding: 26px 30px;
  background: #f8feff;
  border-left: 3px solid #e9511c;
  border-radius: 0 15px 15px 0;
}

.prg .wys blockquote p {
  font-family: Castoro, Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

/* Rich text — what the full WYSIWYG toolbar of the intro text can produce
   (headings, lists, links). Same rules as the .wys block of generique.css. */
.prg .wys h3 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 30px 0 14px;
}

.prg .wys h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin: 26px 0 12px;
}

.prg .wys ul,
.prg .wys ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: rgba(0, 0, 0, 0.7);
}

.prg .wys li {
  font-size: 16.5px;
  line-height: 1.85;
}

.prg .wys p a,
.prg .wys li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   LEVIERS — five tiles, cyan ramp on the top rule
   ============================================================ */
.prg .terr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 0 2px;
}

.prg .tq {
  position: relative;
  overflow: hidden;
  background: #f8feff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s,
    background-color 0.35s;
}

/* The ramp is positional, not editorial: tiles deepen from cyan to orange in
   source order, so no per-row colour is exposed in the back office. */
.prg .tq::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #d0eff2;
  transition: background-color 0.35s;
}

.prg .tq:nth-child(2)::before {
  background: #b4e4e8;
}

.prg .tq:nth-child(3)::before {
  background: #92d8de;
}

.prg .tq:nth-child(4)::before {
  background: #70cbd3;
}

.prg .tq:nth-child(5)::before {
  background: #e9511c;
}

.prg .tq:hover {
  transform: translateY(-6px);
  border-color: #70cbd3;
  background: #fff;
}

.prg .tq-b {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prg .tq-name {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(21px, 2.1vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.prg .tq-d {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 0 18px;
  flex: 1;
}

.prg .tq-t {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #d0eff2;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(0, 0, 0, 0.7);
}

.prg .tq-t::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e9511c;
}

/* ============================================================
   PHASES — centred intro, two ruled columns
   ============================================================ */
.prg .eta {
  padding: 56px 2px 0;
}

.prg .eta-head {
  max-width: 660px;
  margin: 0 auto 30px;
  text-align: center;
}

.prg .eta-head h2 {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.prg .eta-head h2 i {
  color: #e9511c;
  font-style: italic;
}

.prg .eta-head p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

.prg .eta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background: #f8feff;
}

.prg .eta-col {
  padding: 34px 32px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.prg .eta-col:last-child {
  border-right: none;
}

.prg .eta-cc {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #e9511c;
  margin-bottom: 14px;
}

.prg .eta-ct {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 14px;
}

.prg .eta-cd {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.66);
  margin: 0;
}

/* ============================================================
   CHIFFRES — the stat row again, boxed
   ============================================================ */
.prg .nums-sec {
  padding: 56px 2px 0;
}

/* The section label sits outside .nums-band, so it carries the same 2px gutter
   the band gives the figures. The prototype set it inline; it belongs here. */
.prg .nums-sec .smeta {
  padding: 0 2px;
}

.prg .nums-band {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 24px;
  background: #f8feff;
  padding: 32px 34px;
}

.prg .nums-band .stat {
  flex: 1;
  padding: 0 30px;
  min-width: 0;
}

.prg .nums-band .lbl {
  max-width: none;
  letter-spacing: 0.4px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ============================================================
   COMPÉTENCES — three cards, cyan ramp on the card itself
   ============================================================ */
.prg .pq {
  padding: 56px 2px 0;
}

.prg .pq-head {
  margin-bottom: 26px;
}

.prg .pq-head h2 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}

.prg .pq-head h2 i {
  color: #e9511c;
  font-style: italic;
}

.prg .pq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.prg .pqc {
  background: #f8feff;
  border: 1px solid #70cbd3;
  border-radius: 24px;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s;
}

.prg .pqc:hover {
  transform: translateY(-4px);
  background: #fff;
}

.prg .pqc.mid {
  background: #70cbd3;
  border-color: #70cbd3;
}

.prg .pqc.last {
  background: #d0eff2;
  border-color: #d0eff2;
}

.prg .pqc-l {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #e9511c;
}

.prg .pqc.mid .pqc-l,
.prg .pqc.last .pqc-l {
  color: #000;
}

.prg .pqc h3 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
}

.prg .pqc p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.66);
  margin: 0;
  flex: 1;
}

/* ============================================================
   CITATION — orange band
   ============================================================ */
.prg .edito {
  background: #e9511c;
  color: #f8feff;
  border-radius: 24px;
  padding: 44px 42px;
  margin: 56px 2px 0;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.prg .edito-q {
  font-family: Castoro, Georgia, serif;
  font-size: 96px;
  line-height: 0.6;
  color: rgba(255, 255, 255, 0.45);
  flex: none;
}

.prg .edito-body {
  flex: 1;
  min-width: 260px;
}

.prg .edito blockquote {
  font-family: Castoro, Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.28;
  margin: 0 0 14px;
}

.prg .edito cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #d0eff2;
}

/* ============================================================
   CLÔTURE — centred intro, two cyan cards
   ============================================================ */
.prg .stage {
  margin: 56px 2px 0;
  padding-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.prg .stage-l {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
}

.prg .stage-lbl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(0, 0, 0, 0.55);
}

.prg .stage-lbl::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9511c;
}

.prg .stage-l h2 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 16px;
}

.prg .stage-l h2 i {
  color: #e9511c;
  font-style: italic;
}

.prg .stage-l p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 auto;
  max-width: 52ch;
}

.prg .stage-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.prg .way {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 38px 36px 34px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #d0eff2;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.prg .way.alt {
  background: #70cbd3;
}

.prg .way:hover {
  transform: translateY(-6px);
}

.prg .way-n {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #000;
}

.prg .way-h {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.prg .way-d {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.68);
  margin: 0;
  flex: 1;
  max-width: 34ch;
}

.prg .way-a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #f8feff;
  border-radius: 20px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s;
}

/* `.prg a:hover` would turn the label orange on the orange hover background. */
.prg .way-a:hover {
  color: #f8feff;
}

.prg .way:hover .way-a {
  background: #e9511c;
}

.prg .way:hover .way-a .arr {
  transform: translateX(5px);
}

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

  .prg .stage-ways {
    grid-template-columns: 1fr;
  }

  .prg .way {
    min-height: 0;
    padding: 30px 26px 26px;
  }
}

@media (max-width: 900px) {
  .prg .lh-panel {
    padding: 28px 22px 24px;
  }

  .prg .lh-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .prg .lh-stats {
    flex-wrap: wrap;
    gap: 24px 0;
  }

  .prg .stat {
    padding: 0 24px;
  }

  .prg .stat:nth-child(1) {
    padding-left: 0;
    border-left: none;
  }

  .prg .terr-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prg .eta-grid {
    grid-template-columns: 1fr;
  }

  .prg .eta-col {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .prg .eta-col:last-child {
    border-bottom: none;
  }

  .prg .pq-grid {
    grid-template-columns: 1fr;
  }

  .prg .stage {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 24px;
  }

  .prg .nums-band {
    padding: 26px 24px;
  }

  .prg .nums-band .stat {
    flex: 0 0 44%;
    padding: 0 22px;
  }

  .prg .nums-band .stat:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 600px) {
  .prg {
    padding: 15px 15px 48px;
  }

  .prg .stat {
    border-left: none;
    padding: 0;
    flex: 0 0 100%;
  }

  .prg .lh-stats {
    gap: 22px;
  }

  /* The band stops being a row and becomes a 2×2 grid of standalone cards. */
  .prg .nums-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: transparent;
    border: none;
  }

  .prg .nums-band .stat {
    flex: auto;
    border-left: none;
    background: #f8feff;
    border: 1px solid #70cbd3;
    border-radius: 20px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .prg .nums-band .stat:nth-child(2),
  .prg .nums-band .stat:nth-child(3) {
    background: #d0eff2;
    border-color: #d0eff2;
  }

  .prg .nums-band .num {
    font-size: 40px;
    line-height: 0.92;
    color: #e9511c;
  }

  .prg .nums-band .lbl {
    max-width: none;
    margin-top: 0;
    color: rgba(0, 0, 0, 0.62);
    letter-spacing: 0.4px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .prg .lh-title .l2 {
    text-align: left;
  }

  .prg .wys {
    padding: 40px 2px 24px;
  }

  /* Tiles become a snapping carousel rather than a 2-column grid. */
  .prg .terr-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 2px;
    scrollbar-width: none;
  }

  .prg .terr-grid::-webkit-scrollbar {
    display: none;
  }

  .prg .tq {
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 22px 20px 20px;
  }

  .prg .edito {
    padding: 32px 24px;
    gap: 16px;
  }

  .prg .edito-q {
    font-size: 64px;
  }

  .prg .pqc {
    padding: 24px 22px;
  }
}
