/**
 * Homepage — Rivière d'œuvres contemplative
 * Plein écran, mosaïque cinétique, minimaliste
 */

/* ================================================
   RIVER — Full-screen flowing artwork mosaic
   ================================================ */

.river {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Tiles container — rotated mosaic */
.river__tiles {
	position: absolute;
	inset: -30vh -30vw;
	transform: rotate(-15deg);
	z-index: 1;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	opacity: 0;
}

.river__line {
	display: flex;
	opacity: 0.7;
	gap: 24px;
	animation: riverFlow 30s linear infinite;
}

.river__line:nth-child(2) {
	animation: riverFlowReverse 40s linear infinite;
}

.river__line:nth-child(3) {
	animation: riverFlow 50s linear infinite;
}

@keyframes riverFlow {
	from { transform: translateX(10%); }
	to   { transform: translateX(-30%); }
}

@keyframes riverFlowReverse {
	from { transform: translateX(-30%); }
	to   { transform: translateX(10%); }
}

.river__tile {
	flex: none;
	width: 20vh;
	height: 20vh;
	border-radius: 999px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 0 0 1px rgba(240, 236, 228, .06) inset;
}

.river__tile--large {
	width: 55vh;
	border-radius: 30vh;
}

/* ================================================
   CONTENT OVERLAY — Logo, subtitle, CTA
   ================================================ */

.river__content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transform: translateY(30px);
}

/* Hidden SEO title */
.river__seo-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Logo image */
.river__logo {
	width: clamp(280px, 40vw, 500px);
	height: auto;
	margin-bottom: clamp(1rem, 3vh, 2rem);
	filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.6));
}

.river__subtitle {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: clamp(1rem, 2vw, 1.4rem);
	opacity: 0.9;
	margin: 0 0 clamp(2rem, 5vh, 4rem);
	color: rgba(240, 236, 228, .55);
}

/* CTA Button */
.river__cta {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	padding: clamp(1rem, 2vh, 1.4rem) clamp(2rem, 4vw, 3rem);
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.4);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	pointer-events: auto;
}

.river__cta:hover {
	background: rgba(201, 169, 97, 0.9);
	color: #0a0a0a;
	border-color: rgba(201, 169, 97, 1);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(201, 169, 97, 0.4);
}

.river__cta::after {
	content: '→';
	font-size: 1.3em;
	transition: transform 0.3s ease;
}

.river__cta:hover::after {
	transform: translateX(6px);
}

/* ================================================
   ANIMATIONS — Entrance (page load)
   ================================================ */

@keyframes fadeIn {
	to { opacity: 1; }
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.is-loaded .header {
	animation: fadeIn 1s ease 0.3s forwards;
}

.is-loaded .river__tiles {
	animation: fadeInUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.is-loaded .river__content {
	animation: fadeInUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

/* ================================================
   MOBILE OPTIMIZATIONS
   ================================================ */

@media (max-width: 768px) {
	.river__tile {
		width: 15vh;
		height: 15vh;
	}

	.river__tile--large {
		width: 40vh;
		border-radius: 20vh;
	}

	.river__tiles {
		inset: -20vh -40vw;
	}

	.river__logo {
		width: clamp(200px, 60vw, 320px);
	}

	.river__cta {
		font-size: 0.9rem;
		padding: 1.1rem 2rem;
	}
}

/* ================================================
   LANDSCAPE ORIENTATION (Mobile)
   ================================================ */

@media (max-height: 500px) and (orientation: landscape) {
	.river__logo {
		width: clamp(180px, 30vw, 280px);
		margin-bottom: 0.8rem;
	}

	.river__subtitle {
		margin-bottom: 1.5rem;
	}

	.river__cta {
		padding: 0.8rem 1.6rem;
		font-size: 0.85rem;
	}
}

/* ================================================
   PREFERS REDUCED MOTION
   ================================================ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.river__line {
		animation: none !important;
		transform: none;
	}

	.river__tiles,
	.river__content {
		opacity: 1;
		transform: none;
	}
}

/* ================================================
   TOUCH DEVICES — Disable hover effects
   ================================================ */

@media (hover: none) and (pointer: coarse) {
	.river__cta:hover {
		transform: translateY(0);
		box-shadow: none;
	}

	.river__cta:active {
		transform: scale(0.98);
	}
}
