/* ==================== STYLES DE PAGES SPÉCIFIQUES ==================== */

.container_index {
	width: 100%;
	max-width: 1200px;
	height: auto;
	margin: 0 auto;
	padding: 16px 16px;
	box-sizing: border-box;
}

.image-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.image-container {
	width: 100%;
	padding-top: 56.25%; /* Ratio 16:9 (9/16 = 0.5625) */
	position: relative;
	overflow: hidden;
	border-radius: var(--img-radius);
	box-shadow: 2px 4px 8px var(--color-shadow);
}

.responsive-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.image-container:hover .responsive-image {
	transform: scale(1.03);
	filter: brightness(1.08) saturate(1.15);
}

.image-caption {
	text-align: center;
	margin-top: 10px;
	font-size: 3.2em;
}

.dates-memorial {
	text-align: right;
}

/* ==================== PALETTE DE COULEURS (palette.php) ==================== */

.paletteContainer {
	display: flex;
	padding: 10px 40px 20px;
	background-color: var(--color-bg-light);
	flex-wrap: wrap;
	gap: var(--spacing-small);
	justify-content: center;
}

.colorBox {
	width: 128px;
	height: 128px;
	display: flex;
	align-items: center;
	justify-content: center;	
	border-radius: var(--img-radius);
	box-shadow: 2px 4px 8px var(--color-shadow);
}

.colorHex {
	font-size: 1em;
	opacity: 0.7;
}

/* Classe utilitaire : masque visuellement mais accessible aux lecteurs d'ecran */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
