/* H&C — page Agenda (/agenda/).
   Se charge après fiche.css (sections `.fb`, hero `.fh`, projecteur `.rig`, CTA `.diag`, pied de page).
   Choix de l'utilisateur sur la planche du 2026-10-14 : en-tête « la frise de l'année » (piste 3) et
   liste « les lignes du programme » (piste 5).

   1. Hero · `.agf`  : titre, légende, frise octobre 2026 → septembre 2027. Une carte-photo par workshop,
      accrochée à son mois ; le projecteur sur rail glisse au-dessus de la carte survolée (agenda.js).
      Les deux sessions en ligne de la cohorte CCO sont des points sur la ligne.
   2. Liste · `.agl` : filtres, dates groupées par mois (`.agm`), une ligne par date (`.ev`), passés repliés (`.agp`).
   3. CTA calendrier · `.agc` (le gabarit `.diag`).
   ≤ 1000 px : la frise devient une liste verticale ; les lignes se replient sur deux colonnes. */

:root {
  --ag-gold-ink: #8a6500;
  --ag-k-workshop: var(--gold);
  --ag-k-tatea: #fff;
  --ag-k-ceoday: #8fa3c7;
  --ag-k-classe: #5b78b4;
}
.k-workshop { --k: var(--ag-k-workshop); }
.k-tatea { --k: var(--ag-k-tatea); }
.k-ceoday { --k: var(--ag-k-ceoday); }
.k-classe { --k: var(--ag-k-classe); }

/* =========================================================
   1. Hero — la frise de l'année
   ========================================================= */
.agf { --rig-x: 34%; --rig-y: 12px; --rig-w: 74px; --rig-tilt: 0deg; padding-top: clamp(104px, 9vw, 132px); padding-bottom: clamp(52px, 7vw, 96px); }
.agf .cone { --spread: 13deg; --throw: 780px; }
.agf .fh__crumb { margin: 0 0 clamp(18px, 2.4vw, 30px); }
.agf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.agf__title { display: grid; justify-items: start; gap: 16px; max-width: 760px; }
.agf__title .stitle { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.agf__lg { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; color: rgb(255 255 255 / 0.78); }
.agf__lg li { display: flex; align-items: center; gap: 10px; }
.agf__lg li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--k); }

.afr { position: relative; margin-top: clamp(24px, 3vw, 40px); }
.afr__pins { position: relative; height: 290px; margin: 0; padding: 0; list-style: none; }
.fz { position: absolute; left: var(--p); bottom: 0; width: 0; height: 100%; }
.fz__card {
  position: absolute;
  left: 0;
  bottom: 66px;
  display: block;
  width: clamp(176px, 17.4vw, 232px);
  overflow: hidden;
  border-radius: 22px;
  background: #16213d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 20px 40px -22px rgb(0 0 0 / 0.75);
  transform: translateX(var(--cx, -50%));
  transition: box-shadow 0.35s ease, transform 0.45s var(--ease-out);
}
.fz.is-on .fz__card { box-shadow: 0 0 0 3px var(--gold), 0 24px 44px -22px rgb(0 0 0 / 0.8); transform: translateX(var(--cx, -50%)) translateY(-6px); }
.fz__card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fz__ph { display: block; height: 118px; overflow: hidden; }
.fz__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fz__tx { display: grid; gap: 3px; padding: 12px 16px 15px; }
.fz__tx em { font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.fz__tx b { font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.fz__tx span { font-size: 0.875rem; line-height: 1.3; color: rgb(255 255 255 / 0.72); }
.fz__stem { position: absolute; left: 0; bottom: 8px; width: 2px; height: 60px; margin-left: -1px; background: rgb(255 255 255 / 0.4); }
.fz__dot {
  position: absolute;
  left: 0;
  bottom: -12.5px;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--k, var(--gold));
  border: 4px solid var(--night);
}
.fz--mini .fz__dot { bottom: -9px; width: 16px; height: 16px; margin-left: -8px; }
.fz__lab {
  position: absolute;
  left: 0;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.78);
  transform: translateX(-50%);
}
.afr__line { display: block; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.28); }
.afr__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; }
.afr__months li {
  padding: 10px 0 0 8px;
  border-left: 1px solid rgb(255 255 255 / 0.16);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}
.afr__months small { display: block; margin-top: 2px; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--gold); opacity: 0.85; }

@media (max-width: 1000px) {
  .agf { --rig-x: 78%; --rig-w: 62px; }
  .agf .cone { --spread: 20deg; --throw: 640px; }
  .agf__lg { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .afr__axis { display: none; }
  .afr__pins { position: relative; display: grid; gap: 14px; height: auto; padding-left: 30px; }
  .afr__pins::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgb(255 255 255 / 0.28); }
  .fz { position: relative; left: auto; bottom: auto; width: auto; height: auto; }
  .fz--mini { order: -1; }
  .fz__card {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    width: auto;
    transform: none;
    border-radius: 18px;
  }
  .fz.is-on .fz__card { transform: none; }
  .fz__ph { height: 100%; min-height: 96px; }
  .fz__tx { align-content: center; padding: 12px 16px; }
  .fz__stem { display: none; }
  .fz__dot,
  .fz--mini .fz__dot { left: -30px; top: 50%; bottom: auto; width: 16px; height: 16px; margin: -8px 0 0; }
  .fz__lab { position: static; justify-self: start; transform: none; }
  .fz--mini { display: flex; align-items: center; min-height: 24px; }
}
@media (max-width: 560px) {
  .fz__card { grid-template-columns: 92px minmax(0, 1fr); }
  .fz__tx b { font-size: 1.25rem; }
}

/* =========================================================
   2. La liste des dates
   ========================================================= */
.agl { padding-top: clamp(56px, 7vw, 100px); }
.agl [hidden] { display: none !important; }
.agl__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 36px; }
.agl__title { display: grid; justify-items: start; gap: 14px; }
.agl__count { margin: 0; font-size: 1rem; color: #4b5569; }
.agl__count b { margin-right: 6px; font-size: 2.25rem; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }

.agl__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
  padding: 12px;
  border-radius: 30px;
  background: var(--wall);
}
.agl__f {
  position: relative;
  display: grid;
  flex: 1 1 168px;
  gap: 2px;
  min-width: 0;
  padding: 9px 40px 9px 20px;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.25s;
}
.agl__f:hover { box-shadow: 0 8px 20px -12px rgb(11 22 38 / 0.5); }
.agl__f:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.agl__f > span { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #5b6478; }
.agl__f select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-overflow: ellipsis;
  cursor: pointer;
}
.agl__f select:focus-visible { outline: 0; }
.agl__f::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  translate: 0 -70%;
  rotate: 45deg;
  pointer-events: none;
}
.agl__f.is-set { box-shadow: inset 0 0 0 2px var(--gold); }
.agl__reset {
  align-self: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.agl__reset:hover { background: #24304f; }

.agl__list { margin-top: clamp(28px, 4vw, 48px); }
.agm + .agm { margin-top: clamp(30px, 4vw, 48px); }
.agm__t {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ag-gold-ink);
}
.agm__t::after { content: ""; flex: 1; height: 1px; background: rgb(22 33 61 / 0.16); }
.agm__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.agl .ev {
  position: relative;
  display: grid;
  grid-template-columns: 150px 200px minmax(0, 1fr) 230px;
  align-items: center;
  gap: 18px clamp(18px, 2.4vw, 32px);
  padding: 18px 26px;
  border-radius: 26px;
  background: var(--wall);
  scroll-margin-top: 110px;
  transition: opacity 0.7s ease, translate 0.9s var(--ease-out), box-shadow 0.3s ease, background-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 80ms + 60ms), calc(var(--i, 0) * 80ms + 60ms), 0s, 0s;
}
.ev:hover,
.ev:focus-within,
.ev:target { background: #fff; box-shadow: 0 0 0 3px var(--gold), 0 22px 40px -24px rgb(11 22 38 / 0.55); }
.ev__date b { display: block; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ev__date span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; line-height: 1.25; color: rgb(22 33 61 / 0.65); }
.ev__ph { height: 108px; overflow: hidden; border-radius: 18px; background: var(--night); }
.ev__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev__tx { display: grid; gap: 7px; min-width: 0; }
.ev__kind { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ag-gold-ink); }
.ev__t { margin: 0; font-size: clamp(1.1875rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.ev__theme { margin: 0; font-size: 0.9375rem; line-height: 1.4; color: rgb(22 33 61 / 0.68); }
.ev__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.ev__chips li { padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 0.8125rem; font-weight: 500; color: #3b4660; }
.ev:hover .ev__chips li,
.ev:focus-within .ev__chips li,
.ev:target .ev__chips li { background: var(--wall); }
.ev__go { display: grid; justify-items: end; gap: 9px; text-align: right; }
.ev__status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; background: rgb(22 33 61 / 0.1); color: var(--ink); }
.ev__status--early { background: var(--gold); color: var(--ink); }
.ev__status--open { background: var(--ink); color: #fff; }
.ev__status--run { background: var(--ink); color: #fff; }
.ev__status--run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ev__price { margin: 0; font-size: 0.9375rem; line-height: 1.3; color: rgb(22 33 61 / 0.7); }
.ev__price b { font-size: 1.125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ev__price span { display: block; font-size: 0.8125rem; color: rgb(22 33 61 / 0.55); }
.ev__go .btn { white-space: nowrap; }

.agl__empty { margin-top: clamp(28px, 4vw, 48px); padding: clamp(30px, 5vw, 56px); border-radius: 28px; background: var(--wall); text-align: center; }
.agl__empty-t { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; }
.agl__empty p { margin: 0; color: #4b5569; }
.agl__empty-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 22px; }
.agl__link { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

/* événements passés : repliés */
.agp { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid rgb(22 33 61 / 0.14); }
.agp summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.agp summary::-webkit-details-marker { display: none; }
.agp summary b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgb(22 33 61 / 0.08); font-size: 0.8125rem; font-weight: 600; }
.agp summary i { width: 10px; height: 10px; margin-left: auto; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 45deg; translate: 0 -2px; transition: rotate 0.3s var(--ease-out); }
.agp[open] summary i { rotate: 225deg; translate: 0 2px; }
.agp summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.agp__list { display: grid; margin: 0 0 6px; padding: 0; list-style: none; }
.agp__r {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 8px 24px;
  padding: 14px 0;
  border-top: 1px solid rgb(22 33 61 / 0.1);
  font-size: 0.9375rem;
  color: rgb(22 33 61 / 0.7);
}
.agp__d { font-weight: 500; color: var(--ink); }
.agp__t { color: var(--ink); }
.agp__s { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(22 33 61 / 0.5); }

@media (max-width: 1000px) {
  .agl .ev { grid-template-columns: minmax(0, 1fr) clamp(150px, 26vw, 220px); padding: 18px 20px 18px 24px; }
  .ev__tx,
  .ev__go { grid-column: 1 / -1; }
  .ev__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; text-align: left; }
  .ev__price span { display: inline; margin-left: 6px; }
  .agp__r { grid-template-columns: 1fr auto; }
  .agp__d,
  .agp__t { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .agl .ev { grid-template-columns: minmax(0, 1fr) 128px; gap: 14px 16px; }
  .ev__ph { height: 84px; }
  .ev__go .btn { width: 100%; justify-content: center; }
  .agl__f { flex-basis: 100%; }
}

/* =========================================================
   3. CTA calendrier
   ========================================================= */
.agc__card { display: grid; justify-items: start; gap: 18px; }
.agc__card .diag__for { margin: 0; }
.agc__dates { display: grid; gap: 0; width: 100%; margin: 0; padding: 0; list-style: none; }
.agc__dates li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 13px 0; border-top: 1px solid rgb(22 33 61 / 0.12); }
.agc__dates li:last-child { border-bottom: 1px solid rgb(22 33 61 / 0.12); }
.agc__dates b { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }
.agc__dates span { font-size: 1rem; color: #4b5569; }
.agc__card .diag__note { margin: 0; }

@media (max-width: 1000px) {
  .agc.diag { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fz__card,
  .agl .ev { transition: none; }
}
