/* ---------- Base ---------- */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #363636;
	/* Fond repris de lanoix.be : dégradé + overlay tuilé, fixés */
	background-color: #ffffff;
	background-image:
		url("../images/overlay.png"),
		linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35));
	background-repeat: repeat, no-repeat;
	background-size: 100px 100px, cover;
	background-position: top left, center center;
	background-attachment: fixed, fixed;
}

a {
	color: inherit;
}

.container {
	flex: 1 0 auto;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

/* ---------- En-tête ---------- */
.page-header {
	margin-bottom: 2rem;
}

.page-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.page-title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.avatar-link {
	display: inline-flex;
	flex-shrink: 0;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.avatar-link:hover {
	transform: scale(1.05);
}

.avatar {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	flex-shrink: 0;
}

.page-subtitle {
	margin: 0.4rem 0 0;
	font-size: 1.15rem;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ---------- Style commun : bloc blanc arrondi, ombre légère ---------- */
.card,
.pagination a {
	background-color: rgba(255, 255, 255, 0.92);
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ---------- Citations en quinconce ---------- */
.quotes {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.quote-row {
	display: flex;
}

.quote-row.is-left {
	justify-content: flex-start;
}

.quote-row.is-right {
	justify-content: flex-end;
}

.quote-row.is-right .quote-text {
	text-align: right;
}

.quote-row .card {
	position: relative;
	width: auto;
	max-width: 85%;
	padding: 1rem 1.25rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-row .card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.quote-row .quote-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Mot entre crochets en début de citation, façon tag */
.quote-row .quote-text .tag {
	display: inline-block;
	margin-right: 0.5rem;
	padding: 0.05rem 0.5rem;
	border-radius: 4px;
	background-color: #e0e0e0;
	color: #4a4a4a;
	font-size: 0.75rem;
	font-weight: 600;
	vertical-align: baseline;
}

/* Numéro affiché uniquement au survol, sans occuper d'espace vertical */
.quote-row .quote-number {
	position: absolute;
	top: 0.45rem;
	right: 0.7rem;
	font-size: 0.75rem;
	color: #ff7496;
	letter-spacing: 0.05em;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.quote-row .card:hover .quote-number {
	opacity: 1;
}

/* ---------- Pagination (même style que les cards) ---------- */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 2.5rem;
}

.pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.4rem 0.7rem;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pagination a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.pagination a.is-current {
	background-color: #ff7496;
	color: #ffffff;
}

.pagination a.is-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.loading {
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
	.quote-row .card {
		width: 100%;
	}
}
