.forecast-page { --correct: #22754e; --incorrect: #b43e42; --waiting: #aab4bf; }
.forecast-nav { display:flex; justify-content:space-between; margin-bottom:32px; font-size:.85rem; }
.forecast-nav a, .forecast-table a, .forecast-page footer a { color:var(--new); text-decoration:none; }
.forecast-nav a:hover, .forecast-table a:hover { text-decoration:underline; }
.forecast-nav [aria-current] { color:var(--muted); }
.forecast-header { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-bottom:28px; border-bottom:1px solid var(--line); }
.forecast-header h1 { margin-top:8px; font-size:2.2rem; }
.forecast-intro { margin:12px 0; color:var(--muted); }
.forecast-total { min-width:135px; text-align:right; }
.forecast-total strong { display:block; color:var(--new); font-size:2.6rem; letter-spacing:-.04em; }
.forecast-total span { color:var(--muted); font-size:.78rem; }
.forecast-performance { padding:28px 0 24px; border-bottom:1px solid var(--line); }
.forecast-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; }
.forecast-caption { margin:0; color:var(--muted); font-size:.78rem; line-height:1.55; }
.forecast-chart { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.forecast-rate-card { padding:22px; border:1px solid #dce2e7; border-radius:10px; background:#fafbfc; }
.forecast-rate-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.forecast-rate-card h3 { font-size:1rem; font-weight:600; }
.forecast-rate-number { font-size:2rem; font-weight:700; letter-spacing:-.03em; color:var(--new); }
.forecast-rate-number small { font-size:1rem; }
.forecast-rate-track { display:flex; height:14px; background:#e3e8ed; border-radius:5px; overflow:hidden; margin:20px 0 12px; }
.forecast-rate-track .correct { background:var(--correct); }
.forecast-rate-track .incorrect { background:var(--incorrect); }
.forecast-rate-detail { margin:0 0 5px; font-size:.82rem; }
.forecast-rate-detail strong { font-weight:700; }
.forecast-rate-card .forecast-caption { font-size:.73rem; }
.forecast-legend { display:flex; flex-wrap:wrap; gap:20px; margin:18px 0 10px; color:var(--muted); font-size:.75rem; }
.forecast-legend span { display:flex; align-items:center; gap:7px; }
.legend-dot { display:inline-block; width:9px; height:9px; border-radius:3px; }
.legend-dot.correct { background:var(--correct); }.legend-dot.incorrect { background:var(--incorrect); }.legend-dot.pending { background:var(--waiting); }
.forecast-method { margin-top:18px; font-size:.8rem; color:var(--muted); }
.forecast-method summary { cursor:pointer; color:var(--new); font-weight:600; width:fit-content; }
.forecast-method p { max-width:900px; margin:10px 0 0; }
.forecast-table-section { padding-top:28px; }
.forecast-filters { display:flex; align-items:end; gap:12px; margin:0 0 10px; }
.forecast-filters label { display:grid; gap:6px; font-size:.72rem; font-weight:600; color:var(--muted); }
.forecast-search { flex:1; }
.forecast-filters input, .forecast-filters select, .forecast-filters button { height:40px; padding:8px 11px; border:1px solid #ccd3da; border-radius:6px; background:#fff; color:var(--ink); font:inherit; font-size:.8rem; }
.forecast-filters input { width:100%; min-width:0; }
.forecast-filters button { cursor:pointer; color:var(--new); }
.forecast-page :focus-visible { outline:3px solid #90b5d1; outline-offset:3px; }
.filter-note { margin-bottom:18px; }
.forecast-table-wrap { overflow:auto; border:1px solid var(--line); border-radius:8px; max-height:74vh; }
.forecast-table { width:100%; min-width:730px; border-collapse:collapse; table-layout:fixed; }
.forecast-table th { position:sticky; top:0; z-index:1; background:#f2f5f7; padding:14px 18px; text-align:left; color:#4d5a64; font-size:.74rem; font-weight:600; }
.forecast-table th:first-child { width:40%; }.forecast-table th:not(:first-child) { width:20%; }
.forecast-table td { padding:16px 18px; border-top:1px solid #e3e7ea; vertical-align:top; font-size:.84rem; }
.forecast-table tr.is-correct { background:#f0f8f3; }.forecast-table tr.is-incorrect { background:#fdf0f0; }
.forecast-table tr.is-correct td:first-child { box-shadow:inset 3px 0 var(--correct); }.forecast-table tr.is-incorrect td:first-child { box-shadow:inset 3px 0 var(--incorrect); }
.forecast-table tr.is-excluded, .forecast-table tr.is-undecided { background:#fafbfc; }
.forecast-person { font-size:.91rem; font-weight:600; }
.forecast-location { margin:4px 0 0; color:var(--muted); font-size:.75rem; }
.forecast-badge { display:inline-block; padding:4px 8px; border-radius:5px; font-size:.75rem; font-weight:600; max-width:100%; white-space:normal; background:#eef1f4; color:#56636f; }
.forecast-badge.correct { color:#1b6642; background:#dbeee2; }.forecast-badge.incorrect { color:#9d2f36; background:#f8dfe0; }
.forecast-badge.unmatched { color:#805516; background:#fff0cd; }
.forecast-result-note { display:block; margin-top:6px; color:var(--muted); font-size:.72rem; }
.forecast-reason { margin-top:8px; color:#5a6872; font-size:.73rem; }
.forecast-reason summary { width:fit-content; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.forecast-reason p { margin:8px 0 0; line-height:1.55; }
.forecast-source { display:block; margin-top:7px; font-size:.68rem; color:var(--muted); }
.forecast-notice { padding:12px 16px; margin:18px 0 0; border-radius:6px; color:#805516; background:#fff5de; font-size:.82rem; }
.forecast-empty { text-align:center; padding:35px!important; color:var(--muted); }
.forecast-cell-label { display:none; }
/* Les règles globales passent les tableaux en fiches à 800 px. Aligner ce
   tableau sur le même seuil et supprimer sa largeur minimale de bureau. */
@media (max-width:800px) {
  .forecast-table-wrap { overflow:visible; max-height:none; border:0; border-radius:0; }
  .forecast-table { display:block; width:100%; min-width:0; }
  .forecast-table tbody { display:grid; width:100%; gap:12px; }
  .forecast-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; min-width:0; border:1px solid #d2d9dd; border-radius:8px; box-shadow:none; }
  .forecast-table td { width:auto; min-width:0; padding:12px; border:0; border-top:1px solid #e3e7ea; overflow-wrap:anywhere; }
  .forecast-table td:first-child { grid-column:1/-1; border-top:0; }
  .forecast-table td:nth-child(3) { border-left:1px solid #e3e7ea; }
  .forecast-table td:last-child { grid-column:1/-1; }
  .forecast-table tr.is-correct { border-left:3px solid var(--correct); }
  .forecast-table tr.is-incorrect { border-left:3px solid var(--incorrect); }
  .forecast-table tr.is-correct td:first-child, .forecast-table tr.is-incorrect td:first-child { box-shadow:none; }
  .forecast-cell-label { display:block; margin-bottom:5px; color:var(--muted); font-size:.68rem; font-weight:600; }
  .forecast-reason summary { max-width:100%; }
}
@media (max-width:760px) {
  .forecast-page .page-shell { width:calc(100% - 28px); padding-top:22px; }
  .forecast-nav { margin-bottom:24px; }.forecast-header { align-items:flex-start; gap:12px; }
  .forecast-header h1 { font-size:1.65rem; }.forecast-intro { font-size:.85rem; }
  .forecast-total { min-width:70px; }.forecast-total strong { font-size:2rem; }.forecast-total span { display:block; max-width:80px; font-size:.68rem; }
  .forecast-chart { grid-template-columns:1fr; gap:12px; }.forecast-rate-card { padding:18px; }
  .forecast-section-heading { flex-wrap:wrap; gap:6px; }.forecast-legend { gap:10px 14px; }
  .forecast-filters { display:grid; grid-template-columns:1fr 1fr; }.forecast-search { grid-column:1/-1; }
  .forecast-filters label { min-width:0; }.forecast-filters select { width:100%; }.forecast-filters button { grid-column:1/-1; }
  .forecast-table td, .forecast-table th { padding:12px; }
}
