/* ==================================================================
   Donathon – bloc compteur (sidebar)
   ================================================================== */
.donathon-bloc { text-align: center; padding-bottom: 12px; }
.donathon-titre { font-size: 22px; text-transform: uppercase; color: #fff; margin-bottom: 8px; }

.donathon-visuel {
	background: #111 center / cover no-repeat;
	padding: 16px 0;
	margin-bottom: 12px;
}
.donathon-cercle { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.donathon-cercle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.donathon-piste { fill: rgba(0, 0, 0, .6); stroke: rgba(255, 255, 255, .15); stroke-width: 7; }
.donathon-jauge { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.donathon-texte {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: #fff; line-height: 1;
}
.donathon-montant { font-size: 34px; }
.donathon-objectif { font-size: 13px; opacity: .75; margin-top: 6px; }

/* Merci */
.donathon-merci {
	margin: -4px 8px 12px;
	color: #fff;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.donathon-merci-nom { color: #ffb400; font-weight: 600; transition: opacity .4s; }

/* Boutons côte à côte */
.donathon-boutons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 8px;
}
.donathon-bloc .donathon-btn,
.donathon-listes .donathon-btn {
	display: inline-block;
	flex: 0 1 auto;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 4px 12px !important;
	border-radius: 3px;
	font-size: 14px !important;
	line-height: 1.6 !important;
	letter-spacing: .5px;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #fff !important;
	transition: filter .15s, transform .15s;
}
.donathon-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.donathon-btn-don  { background: #ffb400; }
.donathon-btn-plus { background: #5a5a5a; }

/* ==================================================================
   Donathon – liste des donateurs (page)
   ================================================================== */
.donathon-listes {
	--dn-fond: rgba(255, 255, 255, .03);
	--dn-ligne: rgba(255, 255, 255, .08);
	--dn-entete: rgba(255, 255, 255, .06);
	--dn-texte-doux: rgba(255, 255, 255, .55);
	--dn-accent: #ffb400;
	max-width: 760px;
}
.donathon-listes.donathon-avec-classement { max-width: 1100px; }
.donathon-listes .donathon-bouton-liste { justify-content: flex-start; padding: 0; margin: 0 0 24px; }
.donathon-total-general { font-size: 1.1em; margin: 0 0 20px; }
.donathon-total-general strong { color: var(--dn-accent); }

/* Carte par année */
.donathon-liste {
	background: var(--dn-fond);
	border: 1px solid var(--dn-ligne);
	border-radius: 6px;
	margin: 0 0 16px;
	overflow: hidden;
}
.donathon-entete {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	background: var(--dn-entete);
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.donathon-entete::-webkit-details-marker { display: none; }
.donathon-annee { font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.donathon-chiffres { display: flex; gap: 6px; margin-left: auto; }
.donathon-badge {
	font-size: 13px;
	padding: 2px 10px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .08);
	white-space: nowrap;
}
.donathon-badge-total { background: var(--dn-accent); color: #111; font-weight: 600; }
.donathon-fleche {
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s;
	opacity: .6;
}
.donathon-liste[open] .donathon-fleche { transform: rotate(45deg); }

/* Barre de progression (campagne en cours) */
.donathon-progression { padding: 10px 16px 0; }
.donathon-barre { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.donathon-barre span { display: block; height: 100%; border-radius: 3px; }
.donathon-progression small { display: block; margin-top: 4px; color: var(--dn-texte-doux); font-size: 12px; }

/* Tableau */
.donathon-table-wrap { padding: 8px 16px 14px; overflow-x: auto; }
.donathon-table {
	width: 100%;
	border-collapse: collapse;
	border: 0 !important;
	margin: 0 !important;
	font-size: 15px;
}
.donathon-table th,
.donathon-table td {
	border: 0 !important;
	border-bottom: 1px solid var(--dn-ligne) !important;
	padding: 8px 6px !important;
	text-align: left;
	vertical-align: middle;
}
.donathon-table thead th {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--dn-texte-doux);
}
.donathon-table tbody tr { transition: background .15s; }
.donathon-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.donathon-table .donathon-date { width: 110px; color: var(--dn-texte-doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.donathon-table .donathon-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.donathon-table tbody .donathon-num { font-weight: 600; }
.donathon-pseudo {
	display: inline-block;
	margin-left: 6px;
	padding: 0 7px;
	font-size: 12px;
	border-radius: 3px;
	background: rgba(255, 180, 0, .15);
	color: var(--dn-accent);
}
.donathon-table tfoot td {
	border-bottom: 0 !important;
	padding-top: 12px !important;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
}
.donathon-table tfoot .donathon-num { color: var(--dn-accent); font-size: 16px; }
.donathon-vide { padding: 12px 16px; margin: 0; color: var(--dn-texte-doux); }

/* Mise en page tableaux + classement */
.donathon-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 24px;
	align-items: start;
}
.donathon-col-tableaux { min-width: 0; }

/* Classement des donateurs */
.donathon-classement {
	position: sticky;
	top: 80px;
	background: var(--dn-fond);
	border: 1px solid var(--dn-ligne);
	border-radius: 6px;
	padding: 14px 16px 8px;
}
.donathon-classement-titre { margin: 0 !important; padding: 0 !important; font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.donathon-classement-sous { margin: 2px 0 10px !important; padding: 0 !important; font-size: 12px; color: var(--dn-texte-doux); }
.donathon-classement ol { list-style: none; margin: 0 !important; padding: 0 !important; }
.donathon-classement li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0 !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--dn-ligne);
}
.donathon-classement li:last-child { border-bottom: 0; }
.donathon-rang {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px;
	font-weight: 700;
	background: rgba(255, 255, 255, .08);
	color: var(--dn-texte-doux);
}
.donathon-rang-1 .donathon-rang { background: linear-gradient(135deg, #ffe066, #d4a017); color: #3a2a00; }
.donathon-rang-2 .donathon-rang { background: linear-gradient(135deg, #f0f0f0, #a8a8a8); color: #2a2a2a; }
.donathon-rang-3 .donathon-rang { background: linear-gradient(135deg, #f0b27a, #a0522d); color: #2b1300; }
.donathon-qui { flex: 1; min-width: 0; line-height: 1.25; }
.donathon-qui-nom { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donathon-rang-1 .donathon-qui-nom { color: var(--dn-accent); }
.donathon-qui small { display: block; font-size: 11px; color: var(--dn-texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donathon-qui-total { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.donathon-grille { grid-template-columns: 1fr; }
	.donathon-classement { position: static; order: -1; }
}

@media (max-width: 600px) {
	.donathon-chiffres { margin-left: 0; }
	.donathon-table { font-size: 14px; }
	.donathon-table .donathon-date { width: auto; }
}
