/* CERT — css/pages.css : pages Agenda et Course (à charger après style.css et livery-v6.css) */
.sec-light, .sec-dark { padding: 80px 48px; }
.sec-light {
  --bg: var(--white); --fg: var(--ink); --muted: rgba(31,29,30,.55); --line: rgba(31,29,30,.14);
  --card: #fff; --card-2: #ececec; background: var(--white); color: var(--ink);
}
.sec-dark {
  --bg: var(--ink); --fg: var(--white); --muted: rgba(241,241,241,.5); --line: rgba(241,241,241,.14);
  --card: #2a2829; --card-2: #252324; --silver: #c0c0c0; --bronze: #cd7f32; background: var(--ink); color: var(--white);
}
.page-hero { padding-top: 70px; }
.page-title {
  font-family: var(--font); font-weight: 900; text-transform: uppercase; line-height: .88; letter-spacing: -2px;
  font-size: clamp(48px, 8vw, 120px); margin-bottom: 36px; overflow-wrap: anywhere;
}
.page-title span { background: var(--accent); color: var(--accent-ink); padding: 0 .14em 0 .08em; clip-path: polygon(5% 0,100% 0,95% 100%,0 100%); }
.btn-cta.btn-ghost { background: transparent; color: var(--ink); }
.btn-cta.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.back-link { display: inline-block; margin-bottom: 22px; font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* barre agenda + filtres */
.agenda-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.cal-nav { display: flex; align-items: center; gap: 16px; }
.cal-nav .btn-cta { padding: 10px 18px; }
.cal-month { font-family: var(--font); font-weight: 900; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: 1px; text-transform: uppercase; min-width: 6.5em; text-align: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; padding: 8px 18px; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius-sm); transition: background .2s; }
.chip:hover { background: rgba(31,29,30,.08); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* calendrier */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--ink); gap: 1.5px; }
.cal-dow { background: var(--ink); color: var(--white); font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 4px; text-align: center; padding: 10px 0; }
.cal-day { background: #fff; min-height: 112px; padding: 8px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.cal-day.empty { background: #e4e4e4; }
.cal-num { font-family: var(--font); font-weight: 900; font-size: 18px; line-height: 1; }
.cal-day.today .cal-num { background: var(--ink); color: var(--white); align-self: flex-start; padding: 2px 8px; clip-path: polygon(10% 0,100% 0,90% 100%,0 100%); }
.cal-chip { display: block; font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: .5px; line-height: 1.2; padding: 5px 8px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .15s; }
.cal-chip:hover { transform: translateX(3px); }
.cal-chip.upcoming, .cal-chip.other { background: var(--accent); color: var(--accent-ink); }
.cal-chip.done { background: var(--ink); color: var(--white); }
.cal-day.has { background: #fafafa; }

/* liste agenda (sur noir) */
.agenda-list { display: flex; flex-direction: column; gap: 10px; }
.list-sub { margin: 30px 0 4px; font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 6px; text-transform: uppercase; color: var(--muted); }
.agenda-row { display: flex; align-items: center; gap: 22px; padding: 16px 22px; background: var(--card); border: 1.5px solid rgba(241,241,241,.18); border-radius: var(--radius); color: var(--white); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.agenda-row:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--accent); }
.ar-date { display: flex; flex-direction: column; align-items: center; min-width: 54px; font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.ar-date b { font-weight: 900; font-size: 36px; line-height: .9; color: var(--white); letter-spacing: -1px; }
.ar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-title { font-family: var(--font); font-weight: 900; font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase; line-height: 1; }
.ar-meta { font-size: 13px; color: var(--muted); }
.ar-tag { font-family: var(--font); font-weight: 900; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; padding: 5px 14px; background: var(--accent); color: var(--accent-ink); clip-path: polygon(8% 0,100% 0,92% 100%,0 100%); }
.agenda-row.done .ar-tag { background: transparent; color: var(--muted); border: 1px solid rgba(241,241,241,.25); clip-path: none; }
.ar-go { font-size: 22px; color: var(--accent-lit); }

/* page course */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1.5px solid var(--ink); background: var(--ink); gap: 1.5px; margin-bottom: 28px; }
.meta-grid:empty { display: none; }
.meta { background: #fff; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.meta-l { font-family: var(--font); font-weight: 700; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }
.meta-v { font-family: var(--font); font-weight: 900; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.info-list { border-top: 1.5px solid var(--ink); }
.info-row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.info-row dt { width: 220px; flex-shrink: 0; font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }
.info-row dd { font-weight: 500; overflow-wrap: anywhere; }
.info-row dd a { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 38%; text-decoration: none; }
.pn { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pn-link { display: flex; flex-direction: column; gap: 6px; max-width: 46%; font-family: var(--font); font-weight: 900; font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; line-height: 1; color: var(--white); text-decoration: none; }
.pn-link small { font-weight: 700; font-size: 11px; letter-spacing: 5px; color: var(--accent-lit); }
.pn-link.right { text-align: right; margin-left: auto; }
.pn-link:hover { color: var(--accent-lit); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .sec-light, .sec-dark { padding: 56px 20px; }
  .cal-day { min-height: 64px; padding: 5px; }
  .cal-chip { font-size: 0; padding: 0; height: 8px; margin-top: auto; }      /* sur mobile : simple repère coloré */
  .info-row { flex-direction: column; gap: 4px; }
  .info-row dt { width: auto; }
  .agenda-row { gap: 14px; padding: 14px; }
  .ar-go { display: none; }
}
