/* TOTOKÉ — V2-9 : page « Actualités et rapports » et liste des rapports ([totoke_rapports]).
   Chargé seulement sur /actualites/ et sur les pages qui contiennent le code (inc/v2/rapports.php).
   Téléphone d'abord ; couleurs : variables de totoke.css. */

/* ---------- Page « Actualités et rapports » ---------- */
.tk-actualites-chiffres,
.tk-actualites-articles,
.tk-actualites-rapports { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.tk-actualites-sous-titre {
	margin: 0; font-family: var(--tk-police-titre); font-size: 24px; line-height: 1.2; color: var(--tk-encre);
}
.tk-actualites-materiel-titre { margin: 0 0 12px; font-family: var(--tk-police-titre); font-size: 19px; color: var(--tk-encre); }

/* Matériel : tableau replié quand il est long. */
details.tk-actualites-materiel { border: 1px solid var(--tk-trait); border-radius: 14px; background: var(--tk-blanc); }
details.tk-actualites-materiel > summary {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
	cursor: pointer; font-weight: 700; color: var(--tk-encre); list-style: none; border-radius: 14px;
}
details.tk-actualites-materiel > summary::-webkit-details-marker { display: none; }
details.tk-actualites-materiel > summary::before {
	content: ""; flex: none; width: 9px; height: 9px; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-45deg); transition: transform .2s ease;
}
details.tk-actualites-materiel[open] > summary::before { transform: rotate(45deg); }
details.tk-actualites-materiel > summary:hover { color: var(--tk-rouge-fonce); }
details.tk-actualites-materiel > .tk-tableau-cadre { margin: 0 12px 12px; }

.tk-actualites-page .navigation.pagination { margin-top: 8px; }

/* ---------- Liste des rapports ---------- */
.tk-rapports-bloc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tk-rapports-titre { margin: 0; font-family: var(--tk-police-titre); color: var(--tk-encre); line-height: 1.2; }
.tk-rapports { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tk-contenu .tk-rapports { padding-left: 0; }
.tk-rapport {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start;
	margin: 0; padding: 16px; background: var(--tk-sable); border-radius: 16px;
}
.tk-rapport-picto {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; background: var(--tk-blanc); color: var(--tk-rouge-fonce);
}
.tk-rapport-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-rapport-texte > * { margin: 0; }
.tk-contenu .tk-rapport-texte > * + * { margin-top: 0; }
.tk-rapport-titre,
.tk-contenu .tk-rapport-titre { margin: 0; font-family: var(--tk-police-titre); font-size: 19px; line-height: 1.25; color: var(--tk-encre); overflow-wrap: anywhere; }
.tk-rapport-annee { font-size: 14px; font-weight: 700; color: var(--tk-rouge-fonce); }
.tk-rapport-description { color: var(--tk-texte); font-size: 16px; overflow-wrap: anywhere; }

/* Bouton : toute la largeur sur téléphone. */
.tk-rapport-lien,
.tk-contenu a.tk-rapport-lien {
	grid-column: 1 / -1; justify-self: stretch; flex-wrap: wrap; gap: 0 6px;
	background: var(--tk-rouge-fonce); color: var(--tk-blanc); text-decoration: none; text-align: center;
}
.tk-rapport-lien:hover,
.tk-contenu a.tk-rapport-lien:hover { background: var(--tk-encre); color: var(--tk-blanc); }
.tk-rapport-format { font-weight: 400; white-space: nowrap; }

@media (min-width: 761px) {
	.tk-actualites-sous-titre { font-size: 30px; }
	.tk-rapport { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 18px 22px; }
	.tk-rapport-lien,
	.tk-contenu a.tk-rapport-lien { grid-column: auto; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
	details.tk-actualites-materiel > summary::before { transition: none; }
}
