/* Page Veille uniquement. Reprend les variables de couleur et de police du portfolio. */
.veille-auto section { margin-block: 4rem; scroll-margin-top: 110px; }
.veille-auto h2 { margin-bottom: 1.4rem; }
.veille-auto h3 { margin-block: .7rem; }
.veille-auto :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.veille-auto .page-heading { padding-bottom: 18px; }
.veille-auto .page-heading h1 { overflow-wrap: anywhere; }
#watch-status { margin-top: 18px; }
#watch-status .eyebrow { margin-bottom: 6px; }
.watch-note, .watch-origin, .watch-health { font-size: .85rem; color: var(--muted); }
.watch-note { margin-top: 1rem; max-width: 75ch; }
.watch-health { margin: 0; }

/* Sommaire */
.watch-toc { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; border-block: 1px solid var(--line); }
.watch-toc a { font: 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.watch-toc a:hover, .watch-toc a:focus-visible { color: var(--accent); border-color: var(--accent); }

/* À la une */
.veille-auto section.watch-top { margin-block: 2.2rem 4rem; min-height: 280px; }
#watch-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; font: 12px/1.5 var(--mono); color: var(--muted); }
.watch-lead { display: flex; flex-direction: column; padding: 36px; }
.watch-lead h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.watch-lead-summary { font-size: 1.08rem; max-width: 62ch; }
.watch-device { color: var(--muted); }
.watch-device strong, .watch-retain strong { color: var(--text); }
.watch-takeaway { border-inline-start: 3px solid var(--accent); background: var(--surface-2); border-radius: var(--radius); padding: 16px 20px; margin-block: 8px 20px; }
.watch-takeaway h3 { font: 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--label); margin: 0 0 6px; }
.watch-takeaway p { margin: 0; }
.watch-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: auto 0 0; padding-top: 12px; }
.veille-auto .watch-foot .button { margin: 0; }
.watch-latest { display: flex; flex-direction: column; }
.watch-latest h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.watch-latest ol { list-style: none; padding: 0; margin: 0 0 16px; }
.watch-latest li, .watch-month li { display: grid; gap: 3px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.watch-latest li:last-child { border-bottom: 0; }
.watch-latest time, .watch-month time, .veille-auto td time { font: 12px/1.5 var(--mono); color: var(--label); white-space: nowrap; }
.watch-latest li a, .watch-month li a { font-weight: 700; color: var(--text); text-decoration: none; }
.watch-latest li a:hover, .watch-month li a:hover { color: var(--accent); text-decoration: underline; }
.watch-latest-source { font-size: .82rem; color: var(--muted); }
.watch-latest > a { margin-top: auto; font-weight: 700; }

/* Actualités */
.watch-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; }
.watch-toolbar .filters { margin: 0; }
.watch-search { display: grid; gap: 6px; flex: 1 1 240px; max-width: 360px; font-size: .85rem; color: var(--muted); }
.watch-search input { width: 100%; min-height: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; color: var(--text); font: inherit; }
.watch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 1.2rem; }
.watch-article { display: flex; flex-direction: column; gap: .55rem; padding: 24px; }
.watch-article h3 { font-size: 1.18rem; margin: 0; }
.watch-article p { margin: 0; }
.watch-retain { font-size: .93rem; color: var(--muted); border-inline-start: 2px solid var(--accent); padding-inline-start: 12px; }
.veille-auto #watch-more { margin-top: 1.5rem; }

/* Tableaux */
.veille-auto .veille-table table { width: 100%; border-collapse: collapse; }
.veille-auto th, .veille-auto td { text-align: start; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.veille-auto tbody tr:last-child td { border-bottom: 0; }
.veille-auto td .badge { display: inline-block; white-space: nowrap; }
.watch-cell-note { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
#watch-incidents td:nth-child(4) { min-width: 280px; }

/* CRA */
.watch-cra { display: grid; grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr); gap: 12px 36px; align-items: center; }
.watch-countdown { display: grid; gap: 4px; grid-row: span 2; }
.watch-countdown strong { font: 600 clamp(3rem, 7vw, 4.6rem)/1 var(--heading); color: var(--accent); font-variant-numeric: tabular-nums; }
.watch-countdown span { color: var(--muted); font-size: .92rem; max-width: 22ch; }
.watch-progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.watch-progress span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.watch-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.watch-steps li { display: grid; gap: 6px; align-content: start; justify-items: start; padding-top: 12px; border-top: 2px solid var(--line); }
.watch-steps li.is-done { border-top-color: var(--accent); }
.watch-steps time { font: 12px/1.5 var(--mono); color: var(--label); }

/* Chiffres */
.watch-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.watch-tile { display: grid; gap: 6px; padding: 22px; }
.watch-tile strong { font: 600 2.4rem/1 var(--heading); color: var(--accent); font-variant-numeric: tabular-nums; }
.watch-tile span { font-size: .88rem; color: var(--muted); }
.watch-charts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: start; }
.watch-chart { padding: 24px; }
.watch-chart h3 { font-size: 1.05rem; margin: 0 0 1.2rem; }
.watch-chart ul { padding: 0; margin: 0; list-style: none; display: grid; gap: .9rem; }
.watch-chart ul li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1.6fr) 2.5ch; gap: .8rem; align-items: center; font-size: .85rem; }
.watch-chart ul li > span:first-child { overflow-wrap: anywhere; }
.watch-chart strong { font-variant-numeric: tabular-nums; text-align: end; }
.watch-track { display: block; height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.watch-bar { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.watch-columns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; }
.watch-columns li { display: grid; gap: 6px; justify-items: center; font-size: .72rem; }
.watch-columns strong { text-align: center; font-size: .78rem; }
.watch-col-holder { display: flex; align-items: flex-end; width: 100%; height: 130px; border-bottom: 1px solid var(--line); }
.watch-col { display: block; width: 100%; max-width: 30px; margin-inline: auto; background: var(--accent); border-radius: 4px 4px 0 0; }
.watch-col-label { font-family: var(--mono); color: var(--muted); white-space: nowrap; direction: ltr; }

/* Historique */
.watch-month { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.watch-month summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font: 600 1.05rem var(--heading); text-transform: capitalize; }
.watch-month[open] summary { border-bottom: 1px solid var(--line); }
.watch-month ul { list-style: none; margin: 0; padding: 0 20px; }
.watch-month li { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 18px; }
.watch-month li .watch-latest-source { grid-column: 2; }
.watch-month li:last-child { border-bottom: 0; }
#watch-sources h3 { margin-bottom: 1rem; }

@media (max-width: 1000px) {
    #watch-top { grid-template-columns: 1fr; }
    .watch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .watch-charts { grid-template-columns: 1fr 1fr; }
    .watch-charts > :first-child { grid-column: 1 / -1; }
    .watch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .veille-auto section { margin-block: 3rem; }
    .watch-toc { flex-wrap: nowrap; overflow-x: auto; }
    .watch-toc a { white-space: nowrap; }
    .watch-lead { padding: 24px; }
    .watch-cards, .watch-charts, .watch-cra { grid-template-columns: 1fr; }
    .watch-steps { grid-template-columns: 1fr; }
    .watch-toolbar { align-items: stretch; }
    .watch-search { max-width: none; }
    .watch-month li { grid-template-columns: 1fr; }
    .watch-month li .watch-latest-source { grid-column: 1; }
    .watch-col-label { font-size: .62rem; }
    .veille-auto .veille-table table { min-width: 680px; }
}
