/* Dons PayPal - styles */

.donation-navlink .icon { color: #d6336c; }

.donation-title { margin-bottom: 10px; }
.donation-title .icon { color: #d6336c; }

.donation-sandbox {
	background: #fff4d6;
	border: 1px solid #f0c36d;
	border-radius: 6px;
	color: #7a5300;
	margin-bottom: 10px;
	padding: 8px 12px;
	font-weight: bold;
}

.donation-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-start;
}

.donation-main { flex: 2 1 420px; min-width: 0; }
.donation-side { flex: 1 1 240px; min-width: 0; }
.donation-main .panel, .donation-side .panel { margin-bottom: 10px; }

.donation-intro .content { font-size: 1.15em; line-height: 1.5; }
.donation-guest { color: #2b8a3e; font-weight: bold; margin: 10px 0 0; }

.donation-step {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 1.15em;
	margin: 6px 0 12px;
	padding-bottom: 6px;
}

/* Montants rapides */
.donation-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.donation-preset { cursor: pointer; }

.donation-preset input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.donation-preset span {
	display: inline-block;
	min-width: 70px;
	padding: 10px 16px;
	text-align: center;
	font-size: 1.3em;
	font-weight: bold;
	border: 2px solid #c7d3df;
	border-radius: 8px;
	background: #fff;
	color: #105289;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.donation-preset:hover span { border-color: #105289; }

.donation-preset input:checked + span {
	background: #105289;
	border-color: #105289;
	color: #fff;
}

.donation-preset input:focus-visible + span { outline: 2px solid #d6336c; outline-offset: 2px; }

.donation-custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.donation-amount-wrap { display: inline-flex; align-items: center; gap: 6px; }

.donation-amount-wrap .inputbox {
	width: 120px;
	font-size: 1.3em;
	font-weight: bold;
	padding: 6px 8px;
}

.donation-currency { font-size: 1.3em; font-weight: bold; }

.donation-error { color: #bc2a4d; font-weight: bold; margin: 0 0 8px; }
.donation-error[hidden] { display: none; }

.donation-anon { margin: 8px 0 14px; }
.donation-anon label { font-weight: bold; margin-right: 6px; }
.donation-muted { color: #6b7785; font-size: 0.95em; }

/* Boutons de paiement */
.donation-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.donation-pay {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 14px 16px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
}

.donation-pay:hover { filter: brightness(1.05); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.donation-pay:active { transform: translateY(1px); }

.donation-pay-title { font-size: 1.35em; font-weight: bold; }
.donation-pay-explain { font-size: 1em; opacity: 0.85; }

.donation-pay-paypal { background: #ffc439; color: #111; }
.donation-pay-paypal .icon { color: #003087; }
.donation-pay-card { background: #2c2e2f; color: #fff; }

.donation-secure { color: #6b7785; margin: 12px 0 0; text-align: center; }

/* Objectif */
.donation-goal { margin-top: 6px; }

.donation-goal-bar {
	height: 14px;
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.donation-goal-bar span {
	display: block;
	height: 100%;
	border-radius: 7px;
	background: linear-gradient(90deg, #2b8a3e, #51cf66);
	min-width: 4px;
}

.donation-goal-text { margin: 6px 0 0; }
.donation-goal-reached { color: #2b8a3e; font-weight: bold; margin: 4px 0 0; }

/* Donateurs */
.donation-donors ul { list-style: none; margin: 0; padding: 0; }
.donation-donors li { padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.donation-donors li:last-child { border-bottom: 0; }
.donation-donors .icon { color: #d6336c; }

/* Bandeau de l'index */
.donation-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1px solid #f3c2d2;
	border-left: 5px solid #d6336c;
	border-radius: 7px;
	background: #fff5f8;
}

.donation-banner-text { flex: 1 1 300px; }
.donation-banner-text strong { display: block; font-size: 1.15em; margin-bottom: 2px; }
.donation-banner-text strong .icon { color: #d6336c; }
.donation-banner .donation-goal { max-width: 420px; }

.button.donation-banner-button {
	font-size: 1.15em;
	padding: 6px 14px;
	color: #fff;
	background: #d6336c;
	border-color: #b02a5b;
	box-shadow: none;
}

.button.donation-banner-button:hover,
.button.donation-banner-button:focus {
	color: #fff;
	background: #b02a5b;
	border-color: #b02a5b;
}

.button.donation-banner-button .icon { color: #fff; }

/* Pages de remerciement / annulation */
.donation-message { text-align: center; padding: 20px 10px; }
.donation-message h2 { border: 0; margin-top: 0; }
.donation-message p { font-size: 1.15em; max-width: 640px; margin: 0 auto 12px; }
.donation-message-icon { font-size: 3em; color: #6b7785; }
.donation-message-success .donation-message-icon { color: #d6336c; }
.donation-message-links .button { margin: 4px; }

@media (max-width: 700px) {
	.donation-preset span { min-width: 60px; padding: 8px 12px; font-size: 1.15em; }
	.donation-pay { flex-basis: 100%; }
}
