/* Actualites par date (/actualites/AAAA[/MM[/JJ]]) — voir
   listActualite_Par_Date.jsp. S'appuie sur css/actualites.css. */

/* ---------- en-tete ---------- */
.ad-tete {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px;
	margin-bottom: 18px;
}
.ad-sur-titre { font-size: 13px; color: var(--ac-muted); }
.ad-sur-titre a { color: var(--ac-muted); }
.ad-sur-titre a:hover { color: var(--ac-accent); }
.ad-tete h1 { font-size: 30px; font-weight: 800; letter-spacing: -.015em; margin: 4px 0 6px; }
.ad-tete h1::first-letter { text-transform: uppercase; }
.ad-stats { font-size: 14px; color: var(--ac-muted); }
.ad-stats b { color: var(--ac-ink); font-variant-numeric: tabular-nums; }

.ad-nav { display: flex; align-items: center; gap: 6px; }
.ad-fleche {
	height: 40px; min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border: 1px solid var(--ac-line); border-radius: 10px; background: #fff; color: var(--ac-ink); font-weight: 600; font-size: 14px;
}
.ad-fleche-texte::first-letter { text-transform: uppercase; }
a.ad-fleche:hover { border-color: var(--ac-accent); color: var(--ac-accent); }
.ad-fleche.is-off { color: #c3cad3; background: var(--ac-soft); }
.ad-date {
	height: 40px; padding: 0 10px; border: 1px solid var(--ac-line); border-radius: 10px; background: #fff;
	font-size: 14px; font-weight: 600; color: var(--ac-ink);
}
.ad-date:focus { outline: none; border-color: var(--ac-accent); }

/* ---------- barre d'outils de la vue jour ---------- */
.ad-outils { align-items: flex-start; flex-wrap: nowrap; }
@media (max-width: 600px) { .ad-outils { flex-wrap: wrap; } .ad-tete h1 { font-size: 24px; } .ad-kpi b { font-size: 22px; } }
.ad-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-puce {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 999px;
	border: 1px solid var(--ac-line); font-size: 12.5px; font-weight: 600; color: var(--ac-ink); background: #fff;
}
.ad-puce i { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.62 0.13 var(--h, 30)); }
.ad-puce span {
	min-width: 20px; padding: 0 6px; border-radius: 999px; text-align: center; font-size: 11px;
	background: var(--ac-soft); color: var(--ac-muted); font-variant-numeric: tabular-nums;
}
.ad-puce:hover { border-color: oklch(0.62 0.13 var(--h, 30)); color: var(--ac-ink); }

/* ---------- groupes par journal ---------- */
.ad-groupe {
	margin-top: 14px; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow); overflow: hidden; scroll-margin-top: 12px;
}
.ad-groupe-tete {
	display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px;
	border-bottom: 1px solid var(--ac-line); background: linear-gradient(#fbfcfd, #fff);
	font-size: 16px; font-weight: 700;
}
.ad-groupe-tete .ac-avatar { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
.ad-groupe-nom { flex: 1; min-width: 0; color: var(--ac-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-groupe-nom:hover { color: var(--ac-accent); }
.ad-groupe-nb { font-size: 12px; font-weight: 600; color: var(--ac-muted); }
.ad-articles { list-style: none; margin: 0; padding: 0; }
.ad-articles li { padding: 12px 16px; }
.ad-articles li + li { border-top: 1px solid var(--ac-line); }
.ad-articles .ac-titre { font-size: 15.5px; }
.ac-liste.is-compact .ad-articles li { padding: 8px 16px; }
.ac-liste.is-compact .ad-articles .ac-titre { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-liste.is-compact .ad-articles .ac-resume { display: none; }

/* ---------- calendrier (carte de chaleur) ---------- */
.ad-cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ad-cal-titre { font-weight: 700; color: var(--ac-ink); font-size: 15px; }
.ad-cal-titre::first-letter { text-transform: uppercase; }
.ad-cal-nav {
	width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px;
	color: var(--ac-muted); border: 1px solid var(--ac-line); font-size: 11px;
}
a.ad-cal-nav:hover { color: var(--ac-accent); border-color: var(--ac-accent); }
.ad-cal-nav.is-off { opacity: .35; }
.ad-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ad-cal-js { text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ac-muted); padding-bottom: 2px; }
.ad-cal-j {
	aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 12.5px; font-weight: 600;
	color: var(--ac-ink); font-variant-numeric: tabular-nums; transition: transform .12s, box-shadow .12s;
}
a.ad-cal-j:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(16, 24, 40, .18); color: var(--ac-ink); }
.ad-cal-j.n0 { color: #c3cad3; background: var(--ac-soft); }
.n1 { background: #fde5d3; }
.n2 { background: #fbc49d; }
.n3 { background: #f79257; }
.n4 { background: #e8590c; }
.ad-cal-j.n3, .ad-cal-j.n4 { color: #fff; }
.ad-cal-j.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ac-ink); }
.ad-cal-legende { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--ac-muted); }
.ad-cal-legende i { width: 11px; height: 11px; border-radius: 3px; }

/* ---------- statistiques des vues mois et annee ---------- */
.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767px) { .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-kpi {
	display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff;
	border: 1px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); min-width: 0;
}
.ad-kpi-lib { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); }
.ad-kpi b { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ad-kpi b a { color: var(--ac-ink); }
.ad-kpi b a:hover { color: var(--ac-accent); }
.ad-kpi-note { font-size: 12px; color: var(--ac-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-kpi-note::first-letter { text-transform: uppercase; }
.ad-evol { font-size: 12.5px; font-weight: 700; }
.ad-evol small { font-weight: 400; color: var(--ac-muted); font-size: 11.5px; }
.ad-evol.is-hausse { color: #2b8a3e; }
.ad-evol.is-baisse { color: #c92a2a; }

.ad-carte {
	margin-top: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); min-width: 0;
}
.ad-carte h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); margin: 0 0 12px; }
.ad-duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.ad-duo .ad-carte { margin-top: 14px; }
@media (max-width: 767px) { .ad-duo { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* carte de chaleur annuelle */
.ad-carte-defil { overflow-x: auto; padding-bottom: 4px; }
.ad-carte-grille { display: flex; gap: 3px; min-width: max-content; }
.ad-carte-sem, .ad-carte-js { display: grid; grid-template-rows: 16px repeat(7, 12px); gap: 3px; }
.ad-carte-js span { font-size: 9.5px; color: var(--ac-muted); line-height: 12px; padding-right: 4px; }
.ad-carte-mois { font-size: 10px; color: var(--ac-muted); white-space: nowrap; width: 12px; overflow: visible; }
.ad-carte-mois::first-letter { text-transform: uppercase; }
.ad-carte-sem i, .ad-carte-sem a { width: 12px; height: 12px; border-radius: 3px; display: block; }
.ad-carte-sem .n0 { background: var(--ac-soft); }
.ad-carte-sem .ad-carte-vide { background: transparent; }
.ad-carte-sem a:hover { outline: 2px solid var(--ac-ink); outline-offset: 1px; }

/* journaux les plus actifs */
.ad-top { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.ad-top li {
	counter-increment: top; display: grid; grid-template-columns: 18px minmax(0, 1.3fr) 1fr 72px; align-items: center;
	gap: 8px; padding: 5px 0; font-size: 13.5px;
}
.ad-top li::before { content: counter(top); font-size: 11px; font-weight: 700; color: var(--ac-muted); }
.ad-top a { font-weight: 700; color: oklch(0.45 0.13 var(--h, 30)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-top a:hover { text-decoration: underline; }
.ad-top-barre { height: 8px; border-radius: 4px; background: var(--ac-soft); overflow: hidden; }
.ad-top-barre i { display: block; height: 100%; border-radius: 4px; background: oklch(0.68 0.13 var(--h, 30)); }
.ad-top-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-top-n small { display: block; font-weight: 400; font-size: 11px; color: var(--ac-muted); line-height: 1; }

/* jour de la semaine */
.ad-semaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 170px; }
.ad-semaine-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ad-semaine-n { font-size: 10.5px; color: var(--ac-muted); font-variant-numeric: tabular-nums; }
.ad-semaine-barre { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; background: var(--ac-soft); border-radius: 6px; overflow: hidden; }
.ad-semaine-barre i { display: block; width: 100%; background: linear-gradient(#f79257, #e8590c); border-radius: 6px 6px 0 0; }
.ad-semaine-lib { font-size: 11.5px; font-weight: 700; color: var(--ac-muted); }

.ad-section { font-size: 18px; font-weight: 800; margin: 26px 0 0; }
