/* Liste des actualites (/actualites) — voir listActualite.jsp. */
.ac {
	--ac-ink: #1f2933;
	--ac-muted: #6b7785;
	--ac-line: #e3e8ee;
	--ac-soft: #f5f7fa;
	--ac-accent: #e8590c;
	--ac-radius: 12px;
	--ac-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .05);
	color: var(--ac-ink);
	padding: 18px 0 8px;
}
.ac a:hover { text-decoration: none; }
.ac-sep { color: #b8c0ca; margin: 0 4px; }

/* ---------- en-tete ---------- */
.ac-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.ac-tete h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.ac-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-filtre {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border-radius: 999px;
	background: #fff4ec; color: #a8400a; font-size: 13px; font-weight: 600; border: 1px solid #fbd6bf;
}
.ac-filtre span {
	display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
	background: rgba(168, 64, 10, .12); font-size: 13px; line-height: 1;
}
.ac-filtre:hover { background: #ffe8d8; color: #a8400a; }

/* ---------- grille ---------- */
.ac-grille { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .ac-grille { grid-template-columns: minmax(0, 1fr); } }
.ac-principal, .ad-principal, .ar-principal, .ac-cote { min-width: 0; }

/* ---------- barre d'outils ---------- */
.ac-outils {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
	padding: 10px 12px; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow);
}
.ac-compte { font-size: 13px; color: var(--ac-muted); font-variant-numeric: tabular-nums; }
.ac-compte b { color: var(--ac-ink); }
.ac-reglages { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-seg {
	display: inline-flex; align-items: center; background: var(--ac-soft); border: 1px solid var(--ac-line);
	border-radius: 9px; padding: 2px;
}
.ac-seg-lib { font-size: 12px; color: var(--ac-muted); padding: 0 8px 0 6px; }
.ac-seg a, .ac-seg button {
	min-width: 32px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent;
	display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ac-muted);
	font-variant-numeric: tabular-nums;
}
.ac-seg a:hover, .ac-seg button:hover { color: var(--ac-ink); }
.ac-seg .is-on { background: #fff; color: var(--ac-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }

/* ---------- pagination ---------- */
.ac-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 14px 0 6px; }
.ac-pg {
	min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center;
	border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ac-ink);
	border: 1px solid var(--ac-line); background: #fff; font-variant-numeric: tabular-nums;
	transition: background .12s, border-color .12s;
}
a.ac-pg:hover { border-color: var(--ac-accent); color: var(--ac-accent); }
.ac-pg.is-on { background: var(--ac-accent); border-color: var(--ac-accent); color: #fff; }
.ac-pg.is-off { color: #c3cad3; background: var(--ac-soft); }
.ac-pg-ellipse { border-color: transparent; background: transparent; color: var(--ac-muted); min-width: 20px; padding: 0; }
.ac-pg-nav { font-size: 12px; }

.ac-pied {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--ac-line);
}
.ac-pied .ac-pages { margin: 8px 0; }
.ac-aller { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ac-muted); }
.ac-aller label { font-weight: 400; margin: 0; }
.ac-aller input {
	width: 84px; height: 34px; padding: 0 8px; border: 1px solid var(--ac-line); border-radius: 8px;
	font-variant-numeric: tabular-nums;
}
.ac-aller input:focus { outline: none; border-color: var(--ac-accent); }
.ac-aller button {
	height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ac-ink); color: #fff; font-weight: 600;
}

/* ---------- liste ---------- */
.ac-jour {
	position: sticky; top: 50px; z-index: 2; margin: 18px 0 2px; padding: 8px 0 6px;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	background: linear-gradient(#fff 75%, rgba(255, 255, 255, 0));
}
.ac-jour a { color: var(--ac-muted); }
.ac-jour a:hover { color: var(--ac-accent); }
.ac-jour::first-letter { text-transform: uppercase; }

.ac-article {
	display: flex; gap: 14px; padding: 14px 16px; margin-top: 8px; background: #fff;
	border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ac-article:hover { border-color: #cfd6de; box-shadow: var(--ac-shadow); }
.ac-avatar {
	flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
	font-weight: 800; font-size: 16px; color: #fff;
	background: oklch(0.62 0.13 var(--h, 30));
}
.ac-avatar:hover { color: #fff; filter: brightness(1.08); }
.ac-corps { min-width: 0; flex: 1; }
.ac-titre {
	display: block; font-size: 16.5px; line-height: 1.35; font-weight: 700; color: var(--ac-ink);
}
.ac-titre:hover { color: var(--ac-accent); }
.ac-titre:visited { color: #5b4a7a; }
.ac-resume {
	margin: 5px 0 0; color: #4a5562; font-size: 14px; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-meta { margin-top: 7px; font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; }
.ac-journal { font-weight: 700; color: oklch(0.5 0.13 var(--h, 30)); }
.ac-journal:hover { text-decoration: underline !important; }
.ac-source { color: var(--ac-muted); }
.ac-source:hover { color: var(--ac-accent); }

/* vue compacte : une ligne par article */
.ac-liste.is-compact .ac-article { padding: 8px 12px; margin-top: 4px; gap: 10px; align-items: center; }
.ac-liste.is-compact .ac-avatar { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.ac-liste.is-compact .ac-corps { display: flex; align-items: baseline; gap: 12px; }
.ac-liste.is-compact .ac-titre {
	flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-liste.is-compact .ac-resume { display: none; }
.ac-liste.is-compact .ac-meta { margin: 0; flex: none; max-width: 40%; white-space: nowrap; overflow: hidden; }
.ac-liste.is-compact .ac-source { display: none; }
.ac-liste.is-compact .ac-meta .ac-sep { display: none; }
@media (max-width: 600px) {
	.ac-liste.is-compact .ac-corps { display: block; }
	.ac-liste.is-compact .ac-titre { white-space: normal; }
}

.ac-vide {
	text-align: center; padding: 48px 20px; margin-top: 14px; background: #fff;
	border: 1px dashed #cfd6de; border-radius: var(--ac-radius); color: var(--ac-muted);
}
.ac-vide .fa { font-size: 32px; color: #c3cad3; }
.ac-vide h4 { color: var(--ac-ink); font-weight: 700; }

/* ---------- colonne de droite ---------- */
.ac-cote { display: flex; flex-direction: column; gap: 16px; }
.ac-bloc {
	background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 14px;
	box-shadow: var(--ac-shadow);
}
.ac-bloc h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); }
.ac-bloc h3 small { display: block; text-transform: none; letter-spacing: 0; margin-top: 2px; font-size: 12px; font-weight: 600; }
.ac-annees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ac-annees a {
	display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 9px;
	border: 1px solid var(--ac-line); color: var(--ac-ink); font-variant-numeric: tabular-nums;
}
.ac-annees a b { font-size: 14px; }
.ac-annees a span { font-size: 11px; color: var(--ac-muted); }
.ac-annees a:hover { border-color: var(--ac-accent); }
.ac-annees a.is-on { background: var(--ac-accent); border-color: var(--ac-accent); color: #fff; }
.ac-annees a.is-on span { color: rgba(255, 255, 255, .85); }
.ac-annees a.is-vide { opacity: .45; }

.ac-mois a {
	display: grid; grid-template-columns: 76px 1fr 52px; align-items: center; gap: 8px;
	padding: 5px 6px; border-radius: 7px; color: var(--ac-ink); font-size: 13px;
}
.ac-mois a:hover { background: var(--ac-soft); }
.ac-mois a.is-on { background: #fff4ec; font-weight: 700; }
.ac-mois-nom::first-letter { text-transform: uppercase; }
.ac-barre { height: 6px; border-radius: 3px; background: var(--ac-soft); overflow: hidden; }
.ac-barre i { display: block; height: 100%; border-radius: 3px; background: #f5a26e; }
.ac-mois a.is-on .ac-barre i { background: var(--ac-accent); }
.ac-mois-n { text-align: right; font-size: 12px; color: var(--ac-muted); font-variant-numeric: tabular-nums; }

/* ---------- recherche (recherche.jsp) ---------- */
.ar-recherche {
	position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 6px 6px 44px;
	background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; box-shadow: var(--ac-shadow);
	transition: border-color .15s, box-shadow .15s;
}
.ar-recherche:focus-within { border-color: var(--ac-accent); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.ar-recherche .fa { position: absolute; left: 17px; color: var(--ac-muted); font-size: 16px; }
.ar-recherche input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; font-size: 17px; background: transparent; }
.ar-recherche button {
	height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ac-accent); color: #fff; font-weight: 700;
}
.ar-recherche button:hover { background: #c94d0a; }
.ar-aide { font-size: 12.5px; color: var(--ac-muted); margin: 0 0 22px 4px; }
.ar-aide code { background: var(--ac-soft); color: var(--ac-ink); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.ac-extrait mark { background: #ffe8a3; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (max-width: 600px) { .ar-recherche button { padding: 0 12px; } .ar-recherche input { font-size: 15px; } }

/* ---------- journaux (listJournaux.jsp, editJournal.jsp) ---------- */
.aj-tete { justify-content: space-between; align-items: flex-end; }
.aj-sous-titre { margin: 4px 0 0; color: var(--ac-muted); }
.aj-sous-titre b { color: var(--ac-ink); }
.aj-outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aj-filtre { position: relative; }
.aj-filtre .fa { position: absolute; left: 11px; top: 11px; color: var(--ac-muted); }
.aj-filtre input {
	width: 240px; max-width: 100%; height: 36px; padding: 0 10px 0 32px; border: 1px solid var(--ac-line);
	border-radius: 9px; background: #fff; outline: none;
}
.aj-filtre input:focus { border-color: var(--ac-accent); }
.aj-section { font-size: 18px; font-weight: 800; margin: 22px 0 12px; }
.aj-section small { font-size: 13px; font-weight: 400; color: var(--ac-muted); margin-left: 6px; }

.aj-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.aj-carte {
	display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; color: var(--ac-ink);
	border: 1px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow);
	transition: transform .15s, border-color .15s, box-shadow .15s;
}
.aj-carte:hover { transform: translateY(-2px); border-color: oklch(0.7 0.12 var(--h, 30)); box-shadow: 0 8px 24px rgba(16, 24, 40, .1); color: var(--ac-ink); }
.aj-carte[hidden] { display: none; }
.aj-carte-tete { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aj-carte-nom { min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-carte-nom small { display: block; font-weight: 400; font-size: 12px; color: var(--ac-muted); }
.aj-spark { display: flex; align-items: flex-end; gap: 2px; height: 38px; padding: 0 1px; border-bottom: 1px solid var(--ac-line); }
.aj-spark i { flex: 1; background: oklch(0.7 0.12 var(--h, 30)); border-radius: 2px 2px 0 0; min-height: 0; }
.aj-carte-pied { font-size: 12.5px; color: var(--ac-muted); }
.aj-carte-pied b { color: var(--ac-ink); font-size: 15px; font-variant-numeric: tabular-nums; }

.aj-autres { margin-top: 22px; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }
.aj-autres summary {
	display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer;
	font-weight: 800; font-size: 16px; list-style: none;
}
.aj-autres summary::-webkit-details-marker { display: none; }
.aj-autres summary small { font-weight: 400; font-size: 13px; color: var(--ac-muted); margin-left: 6px; }
.aj-autres[open] summary .fa { transform: rotate(180deg); }
.aj-liste {
	list-style: none; margin: 0; padding: 4px 16px 14px; columns: 3 220px; column-gap: 24px;
	max-height: 520px; overflow-y: auto; border-top: 1px solid var(--ac-line);
}
.aj-liste li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13px; break-inside: avoid; }
.aj-liste li[hidden] { display: none; }
.aj-liste a { color: var(--ac-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-liste a:hover { color: var(--ac-accent); }
.aj-liste span { color: var(--ac-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.aj-vide { margin-top: 14px; }

.aj-fiche { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.aj-fiche .ac-avatar { width: 64px; height: 64px; font-size: 28px; border-radius: 16px; }
.aj-fiche-texte { min-width: 0; }
.aj-fiche h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.015em; }
.aj-fiche p { color: #4a5562; margin: 0 0 10px; max-width: 70ch; }
.aj-fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aj-date { font-size: 22px !important; }
.aj-date::first-letter { text-transform: uppercase; }
.aj-fiche-grille { margin-top: 0; }
.aj-fiche-grille .ad-carte { margin-top: 14px; }
.aj-fiche-grille .ac-bloc { margin-top: 14px; }
.aj-histo { display: grid; grid-template-columns: repeat(17, 1fr); gap: 4px; height: 220px; }
.aj-histo-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--ac-ink); }
.aj-histo-n { font-size: 10px; color: var(--ac-muted); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); height: 34px; }
.aj-histo-barre { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--ac-soft); border-radius: 5px; overflow: hidden; }
.aj-histo-barre i { display: block; width: 100%; background: oklch(0.66 0.13 var(--h, 30)); border-radius: 5px 5px 0 0; transition: filter .15s; }
a.aj-histo-col:hover .aj-histo-barre i { filter: brightness(.88); }
.aj-histo-lib { font-size: 11px; font-weight: 700; color: var(--ac-muted); }
.aj-histo-col.is-vide .aj-histo-lib { opacity: .45; }
@media (max-width: 600px) { .aj-histo { gap: 2px; } .aj-histo-n { display: none; } .aj-fiche h1 { font-size: 24px; } }
