/**
 * Hero Carousel Styles
 * Style inspiré de Gallimard.fr
 * 
 * @package Aurum
 */

/* Container principal */
.hero-carousel-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
}

/* Slide individuel */
.hero-slide {
	position: relative;
	height: 70vh !important;
	min-height: 500px;
	max-height: 700px;
	display: flex !important;
	align-items: center;
	overflow: hidden;
}

/* Effet coin corné (page de livre) - SVG version sur les 4 coins */
.hero-slide::after,
.hero-slide::before,
.hero-slide-inner::after,
.hero-slide-inner::before {
	content: '';
	position: absolute;
	width: 100px;
	height: 100px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='pageGradient' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23000;stop-opacity:0.05' /%3E%3Cstop offset='50%25' style='stop-color:%23000;stop-opacity:0.15' /%3E%3Cstop offset='100%25' style='stop-color:%23000;stop-opacity:0.25' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 100 100 L 100 0 Q 90 10, 80 20 Q 70 30, 60 40 Q 50 50, 40 60 Q 30 70, 20 80 Q 10 90, 0 100 Z' fill='url(%23pageGradient)' /%3E%3Cpath d='M 100 100 L 100 0 Q 90 10, 80 20 Q 70 30, 60 40 Q 50 50, 40 60 Q 30 70, 20 80 Q 10 90, 0 100' fill='none' stroke='rgba(0,0,0,0.1)' stroke-width='0.5' /%3E%3C/svg%3E");
	background-size: cover;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 10;
	opacity: 0.8;
}

/* Coin bas-droite */
.hero-slide::after {
	bottom: 0;
	right: 0;
}

/* Coin bas-gauche */
.hero-slide::before {
	bottom: 0;
	left: 0;
	transform: rotate(90deg);
}

/* Coin haut-droite */
.hero-slide-inner::after {
	top: 0;
	right: 0;
	transform: rotate(-90deg);
}

/* Coin haut-gauche */
.hero-slide-inner::before {
	top: 0;
	left: 0;
	transform: rotate(180deg);
}

.hero-slide-inner {
	display: flex;
	align-items: center;
	max-width: 1200px;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 60px 20px;
	gap: 60px;
}

/* Colonne gauche - Images */
.hero-slide-images {
	flex: 0 0 45%;
	max-width: 45%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.hero-images-carousel {
	position: relative;
}

.hero-image {
	position: relative;
	text-align: center;
}

.hero-image img {
	max-width: 400px;
	max-height: 600px;
	width: auto;
	height: auto;
	display: inline-block;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease;
	border: 8px solid white;
	border-radius: 1px;
	object-fit: contain;
}

.hero-image:hover img {
	transform: scale(1.02);
}

.hero-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: #f5f5f5;
	color: #999;
	font-size: 16px;
}

/* Image unique (sans superposition) */
.hero-slide-images.single-image .hero-image img {
	max-width: clamp(320px, 38vw, 520px);
	max-height: 650px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Layout avec image secondaire */
.hero-slide-images.has-secondary-image {
	position: relative;
	min-height: 500px;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.hero-slide-images.has-secondary-image .hero-image-secondary {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	opacity: 0.85;
}

.hero-slide-images.has-secondary-image .hero-image-secondary img {
	max-width: 340px;
	max-height: 480px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.hero-slide-images.has-secondary-image .hero-image-primary {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.hero-slide-images.has-secondary-image .hero-image-primary img {
	max-width: 260px;
	max-height: 450px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

/* Colonne droite - Contenu */
.hero-slide-content {
	flex: 0 0 50%;
	max-width: 50%;
	padding-left: 40px;
	display: flex;
	align-items: center;
	height: 100%;
}

.hero-content-inner {
	max-width: 500px;
}

.hero-title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	color: #333;
}

.hero-description {
	font-size: 18px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 30px;
}

.hero-description p {
	margin-bottom: 15px;
}

.hero-button {
	margin-top: 30px;
}

.hero-button .btn {
	display: inline-block;
	padding: 15px 40px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	border-radius: 0;
	text-decoration: none;
}

.hero-button .btn-primary {
	background-color: #333;
	color: #fff;
	border: 2px solid #333;
}

.hero-button .btn-primary:hover {
	background-color: transparent;
	color: #333;
}

/* Navigation Slick */
.hero-carousel .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-carousel .slick-arrow:hover {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-carousel .slick-arrow::before {
	font-family: 'FontAwesome';
	font-size: 24px;
	color: #333;
	line-height: 50px;
}

.hero-carousel .slick-prev {
	left: 20px;
}

.hero-carousel .slick-prev::before {
	content: '\f104';
}

.hero-carousel .slick-next {
	right: 20px;
}

.hero-carousel .slick-next::before {
	content: '\f105';
}

/* Dots de navigation */
.hero-carousel .slick-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex !important;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.hero-carousel .slick-dots li {
	margin: 0;
	line-height: 0;
}

.hero-carousel .slick-dots li button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #333;
	border-radius: 50%;
	background: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hero-carousel .slick-dots li button::before {
	content: '';
	display: none;
}

.hero-carousel .slick-dots li.slick-active button {
	background: #333;
}

.hero-carousel .slick-dots li button:hover {
	background: #666;
	border-color: #666;
}

/* Responsive - Tablette */
@media (max-width: 991px) {
	.hero-slide {
		height: 550px;
		min-height: 550px;
	}
	
	.hero-slide-inner {
		gap: 40px;
		padding: 40px 20px;
	}
	
	.hero-slide-images {
		flex: 0 0 40%;
		max-width: 40%;
	}
	
	.hero-slide-content {
		flex: 0 0 55%;
		max-width: 55%;
		padding-left: 20px;
	}
	
	.hero-title {
		font-size: 32px;
	}
	
	.hero-description {
		font-size: 16px;
	}
	
	/* Image unique en tablette */
	.hero-slide-images.single-image .hero-image img {
		max-width: clamp(280px, 48vw, 420px);
		max-height: 550px;
	}
	
	/* Coins cornés plus petits en tablette */
	.hero-slide::after,
	.hero-slide::before,
	.hero-slide-inner::after,
	.hero-slide-inner::before {
		width: 70px;
		height: 70px;
	}
}

/* Responsive - Mobile */
@media (max-width: 767px) {
	.hero-slide {
		height: auto !important;
		min-height: auto;
		max-height: none;
		padding: 20px 0;
	}
	
	.hero-slide-inner {
		flex-direction: column;
		gap: 20px;
		padding: 20px 15px;
	}
	
	/* Réorganisation mobile : titre -> images -> description/bouton */
	.hero-slide-content {
		flex: 0 0 100%;
		max-width: 100%;
		padding-left: 0;
		order: 1;
	}
	
	.hero-slide-images {
		flex: 0 0 100%;
		max-width: 100%;
		padding-left: 0;
		order: 2;
	}
	
	/* Afficher uniquement le titre en haut */
	.hero-slide-content .hero-description,
	.hero-slide-content .hero-button {
		order: 3;
	}
	
	/* Restructurer le contenu en flexbox pour réorganiser */
	.hero-content-inner {
		display: flex;
		flex-direction: column;
	}
	
	.hero-content-inner .hero-title {
		order: 1;
	}
	
	.hero-content-inner .hero-description {
		order: 3;
	}
	
	.hero-content-inner .hero-button {
		order: 4;
	}
	
	/* Images en mobile - plus compactes */
	.hero-slide-images.single-image .hero-image img {
		max-width: min(280px, 80vw);
		max-height: 400px;
	}
	
	/* Images secondaires en mobile */
	.hero-slide-images.has-secondary-image {
		min-height: 300px;
		margin: 15px 0;
	}
	
	.hero-slide-images.has-secondary-image .hero-image-secondary img {
		max-width: 180px;
		max-height: 300px;
	}
	
	.hero-slide-images.has-secondary-image .hero-image-primary img {
		max-width: 150px;
		max-height: 260px;
	}
	
	.hero-content-inner {
		text-align: center;
		max-width: 100%;
	}
	
	.hero-title {
		font-size: 24px;
		margin-bottom: 0;
		margin-top: 0;
	}
	
	.hero-description {
		font-size: 14px;
		margin-bottom: 15px;
		margin-top: 15px;
	}
	
	.hero-button .btn {
		padding: 12px 30px;
		font-size: 14px;
	}
	
	/* Coins cornés encore plus petits en mobile */
	.hero-slide::after,
	.hero-slide::before,
	.hero-slide-inner::after,
	.hero-slide-inner::before {
		width: 50px;
		height: 50px;
	}
	
	.hero-carousel .slick-arrow {
		width: 40px;
		height: 40px;
	}
	
	.hero-carousel .slick-arrow i {
		font-size: 20px;
	}
	
	.hero-carousel .slick-prev {
		left: 10px;
	}
	
	.hero-carousel .slick-next {
		right: 10px;
	}
	
	.hero-carousel .slick-dots {
		bottom: 15px;
	}
}

/* Animation d'entrée */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-slide.slick-active .hero-title,
.hero-slide.slick-active .hero-description,
.hero-slide.slick-active .hero-button {
	animation: fadeInUp 0.6s ease forwards;
}

.hero-slide.slick-active .hero-title {
	animation-delay: 0.2s;
}

.hero-slide.slick-active .hero-description {
	animation-delay: 0.4s;
}

.hero-slide.slick-active .hero-button {
	animation-delay: 0.6s;
}
