/* Journées officielles v4 : fiche (maquette 5c) et calendrier annuel. */

.wpo { padding: 20px 0 48px; }
.wpo-narrow { max-width: 960px; }
.wpo-crumbs { margin-bottom: 18px; }
.wpo-kick { font: 500 11px/1.3 var(--wp-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-acc-2); margin: 0; }
.wpo-h3 { font-size: 18px; font-weight: 800; margin: 0; }
.wpo-h4 { font-size: 16px; font-weight: 800; margin: 0; }
.wpo-p { font-size: 14px; line-height: 1.55; color: var(--wp-ink-2); margin: 0; }
.wpo-card { background: var(--wp-paper); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ---------- Fiche ---------- */
.wpo--fiche .wpo-narrow { display: flex; flex-direction: column; gap: 18px; }
.wpo--fiche .wpo-crumbs { margin-bottom: 0; }
.wpo-head { display: flex; gap: 20px; align-items: flex-start; }
.wpo-date { background: var(--wpo-c, #2F5C8A); color: #FBF9F4; border-radius: 14px; padding: 12px 16px; min-width: 92px; text-align: center; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.wpo-date b { font-size: 30px; font-weight: 900; line-height: 1; white-space: nowrap; }
.wpo-date span { font: 400 11px/1.3 var(--wp-mono); text-transform: uppercase; }
.wpo-head__copy { flex: 1; min-width: 0; }
.wpo-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.wpo-tags span { background: var(--wp-paper); padding: 3px 7px; border-radius: 4px; font: 400 11px/1.3 var(--wp-mono); text-transform: uppercase; }
.wpo-tags .is-live { background: var(--wp-acc); }
.wpo-h1 { font-size: 42px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 0; text-wrap: balance; }
.wpo-lead { font-size: 17px; line-height: 1.5; color: var(--wp-ink-2); font-style: italic; margin: 6px 0 0; }
.wpo-when { font-size: 13px; color: var(--wp-muted); margin: 8px 0 0; }

.wpo-ess { gap: 8px; }
.wpo-ess ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpo-ess li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.wpo-ess li b { font-weight: 900; color: var(--wp-acc-2); flex-shrink: 0; min-width: 10px; }

.wpo-ici { background: var(--wp-dark); color: var(--wp-on-dark); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.wpo-ici .wpo-kick { color: var(--wp-acc); }
.wpo-ici p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--wp-on-dark-2); }
.wpo-ici__t { font-size: 20px; font-weight: 900; line-height: 1.15; color: var(--wp-paper); }
.wpo-ici__more { font-size: 13px; font-weight: 700; color: var(--wp-acc); }
.wpo-ici__btn { align-self: flex-start; background: var(--wp-acc); color: var(--wp-ink); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 800; }
body.wp .wpo-ici__btn:hover { background: var(--wp-paper); color: var(--wp-ink); }
.wpo-linked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpo-linked li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #3A3832; padding-bottom: 8px; font-size: 14px; }
.wpo-linked a { font-weight: 700; color: var(--wp-on-dark); }
body.wp .wpo-linked a:hover { color: var(--wp-acc); }
.wpo-linked span { color: #BDB6A6; white-space: nowrap; }

.wpo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wpo-more summary, .wpo-faq summary { cursor: pointer; list-style: none; }
.wpo-more summary::-webkit-details-marker, .wpo-faq summary::-webkit-details-marker { display: none; }
.wpo-more summary { font-size: 13px; font-weight: 700; }
.wpo-more summary::after { content: ' ▾'; }
.wpo-more[open] summary::after { content: ' ▴'; }
.wpo-more > * + * { margin-top: 10px; }
.wpo-more .wpo-h4 { margin-top: 16px; font-size: 15px; }
.wpo-timeline { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wpo-timeline div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13px; border-bottom: 1px solid var(--wp-line); padding-bottom: 6px; }
.wpo-timeline dt { font-weight: 800; }
.wpo-timeline dd { margin: 0; color: var(--wp-ink-2); }
.wpo-faq { display: flex; flex-direction: column; }
.wpo-faq details { border-bottom: 1px solid var(--wp-line); padding: 8px 0; }
.wpo-faq details:last-child { border-bottom: 0; }
.wpo-faq summary { font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.wpo-faq summary::after { content: '+'; font-weight: 800; }
.wpo-faq details[open] summary::after { content: '–'; }
.wpo-faq p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--wp-ink-2); }

.wpo-near { padding: 18px; gap: 8px; }
.wpo-near__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.wpo-near__row::-webkit-scrollbar { display: none; }
.wpo-near__row a { flex-shrink: 0; border: 1px solid var(--wp-line); border-radius: 10px; padding: 10px 12px; min-width: 150px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; color: var(--wp-ink); }
body.wp .wpo-near__row a:hover { border-color: var(--wp-ink); color: var(--wp-ink); }
.wpo-near__row span { font: 400 10px/1.3 var(--wp-mono); text-transform: uppercase; color: var(--wp-acc-2); }
.wpo-near__row b { font-size: 14px; font-weight: 700; line-height: 1.25; }

.wpo-sources { font-size: 12px; color: var(--wp-muted); margin: 0; }
.wpo-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; font-size: 14px; border-top: 1px solid var(--wp-line-2); padding-top: 12px; }
.wpo-pager a { color: var(--wp-ink); }
body.wp .wpo-pager a:hover { color: var(--wp-acc-2); }
.wpo-pager__all { font-size: 13px; color: var(--wp-muted) !important; }
.wpo-pager__next { text-align: right; }

/* ---------- Calendrier ---------- */
.wpo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--wp-line-2); }
.wpo-title { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 8px 0 0; }
.wpo-intro { font-size: 16px; line-height: 1.5; color: var(--wp-ink-2); max-width: 640px; margin: 10px 0 0; }
.wpo-top__btns { display: flex; gap: 8px; flex-shrink: 0; }
.wpo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 20px; align-items: start; }
.wpo-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wpo-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }

.wpo-tools { display: flex; gap: 8px; }
.wpo-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--wp-paper); border: 1px solid var(--wp-line-2); border-radius: 999px; padding: 0 16px; }
.wpo-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: 400 15px/1.2 var(--wp-sans); color: var(--wp-ink); outline: none; }
.wpo-search .lw-icon { font-size: 18px; color: var(--wp-muted); }
.wpo-select select { height: 100%; background: var(--wp-paper); border: 1px solid var(--wp-line-2); border-radius: 999px; padding: 0 16px; font: 600 14px/1 var(--wp-sans); color: var(--wp-ink); }
.wpo-status .wp-chip { gap: 6px; }
.wpo-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font: 500 10px/1 var(--wp-mono); }
.wpo-badge--F { background: #F3E3D8; color: #8F3D1F; }
.wpo-badge--L { background: #E3E8DC; color: #3E4A3B; }
.wpo-badge--O { background: #E4EBF3; color: #2F4A66; }
.wpo-badge--A { background: #EFEBE0; color: #5A5648; }
.wpo-badge--C { background: #F3EFE4; color: #6B6858; }

.wpo-months { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--wp-bg); padding: 8px 0; }
.wpo-months::-webkit-scrollbar { display: none; }
.wpo-months a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; font: 500 12px/1 var(--wp-mono); text-transform: uppercase; color: var(--wp-muted); white-space: nowrap; }
body.wp .wpo-months a:hover { background: var(--wp-paper); color: var(--wp-ink); }
.wpo-months a.is-on { background: var(--wp-ink); color: var(--wp-paper) !important; }

.wpo-month { scroll-margin-top: 60px; display: flex; flex-direction: column; gap: 8px; }
.wpo-month.is-empty { display: none; }
.wpo-month__t { font-size: 24px; font-weight: 900; margin: 10px 0 0; }
.wpo-list { display: flex; flex-direction: column; gap: 6px; }
.wpo-row { scroll-margin-top: 70px; display: flex; gap: 14px; align-items: flex-start; background: var(--wp-paper); border-radius: 12px; padding: 12px 14px; position: relative; }
.wpo-row[hidden] { display: none; }
.wpo-row.is-past { opacity: .6; }
.wpo-row.is-active { box-shadow: inset 0 0 0 2px var(--wp-acc); }
.wpo-row:target { box-shadow: inset 0 0 0 2px var(--wp-ink); }
.wpo-row__d { width: 58px; flex-shrink: 0; background: var(--wpo-c, var(--wp-ink)); color: #FBF9F4; border-radius: 10px; padding: 7px 4px; text-align: center; display: flex; flex-direction: column; }
.wpo-row__d b { font-size: 18px; font-weight: 900; line-height: 1.05; white-space: nowrap; }
.wpo-row__d span { font: 400 10px/1.3 var(--wp-mono); }
.wpo-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wpo-row__t { font-size: 16px; font-weight: 800; line-height: 1.25; margin: 0; }
.wpo-row__t a { color: var(--wp-ink); }
.wpo-row__t a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
body.wp .wpo-row__t a:hover { color: var(--wp-acc-2); }
.wpo-row__note { font-size: 13px; color: var(--wp-muted); margin: 0; }
.wpo-row__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--wp-muted); }
.wpo-row__meta span + span::before { content: '·'; margin-right: 6px; }
.wpo-row__meta .is-live { color: var(--wp-acc-2); font-weight: 700; }
.wpo-hdf { color: #2F5C8A; font-weight: 600; }
.wpo-howto { margin-top: 14px; }

.wpo-soon { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpo-soon li { border-bottom: 1px solid var(--wp-line); padding-bottom: 8px; }
.wpo-soon li:last-child { border-bottom: 0; padding-bottom: 0; }
.wpo-soon a { display: flex; flex-direction: column; color: var(--wp-ink); }
body.wp .wpo-soon a:hover { color: var(--wp-acc-2); }
.wpo-soon span { font: 400 10px/1.3 var(--wp-mono); text-transform: uppercase; color: var(--wp-acc-2); }
.wpo-soon b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.wpo-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wpo-aside .wp-btn { align-self: flex-start; }
.wpo-aside .wp-btn.is-on { background: var(--wp-ink); color: var(--wp-paper); }
.wpo-cta { background: var(--wp-sand); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.wpo-cta b { font-size: 15px; font-weight: 700; line-height: 1.35; }
.wpo-cta a { align-self: flex-start; background: var(--wp-ink); color: var(--wp-paper); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 800; }
body.wp .wpo-cta a:hover { background: #000; color: var(--wp-paper); }

@media (max-width: 1000px) {
  .wpo-grid { grid-template-columns: minmax(0, 1fr); }
  .wpo-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}

@media (max-width: 760px) {
  .wpo { padding-top: 14px; }
  .wpo-head { gap: 14px; }
  .wpo-date { min-width: 74px; padding: 10px 10px; }
  .wpo-date b { font-size: 22px; }
  .wpo-h1 { font-size: 28px; letter-spacing: -.02em; }
  .wpo-lead { font-size: 15px; }
  .wpo-card, .wpo-ici { padding: 16px; }
  .wpo-duo { grid-template-columns: 1fr; }
  .wpo-linked li { flex-direction: column; gap: 2px; }
  .wpo-timeline div { grid-template-columns: 1fr; gap: 2px; }
  .wpo-pager { grid-template-columns: 1fr 1fr; }
  .wpo-pager__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }

  .wpo-top { flex-direction: column; align-items: flex-start; }
  .wpo-title { font-size: 30px; }
  .wpo-intro { font-size: 14px; }
  .wpo-top__btns { width: 100%; }
  .wpo-top__btns .wp-btn { flex: 1; justify-content: center; }
  .wpo-tools { flex-direction: column; }
  .wpo-select select { width: 100%; padding: 12px 16px; }
  .wpo-months a { flex: 0 0 auto; }
  .wpo-row { padding: 10px 12px; gap: 12px; }
  .wpo-row__d { width: 50px; }
  .wpo-row__d b { font-size: 15px; }
  .wpo-row__t { font-size: 15px; }
}
