/**
 * Homepage Styles
 * Hero, sections spécifiques page d'accueil
 *
 * @package TacticHall
 */

/* ==========================================================================
   Hero Section - Homepage
   ========================================================================== */

.hero-section {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-bottom: var(--border-primary);
	padding: var(--spacing-4xl) 0;
}

.hero-container {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--container-padding-x);
	z-index: 2;
}

.hero-content {
	max-width: 700px;
	color: var(--color-white);
	position: relative;
	z-index: 3;
}

.hero-title {
	font-family: var(--wp--preset--font-family--stencil);
	font-size: 3.5rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 var(--spacing-md) 0;
	line-height: 1.1;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin: 0 0 var(--spacing-xl) 0;
	opacity: 0.95;
	line-height: 1.6;
}

.hero-buttons {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

.hero-image {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hero-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
			rgba(0, 0, 0, 0.9) 10%,
			rgba(0, 0, 0, 0.5) 90%);
	z-index: 2;
}

/* Responsive Hero */
@media (max-width: 1024px) {
	.hero-section {
		padding: var(--spacing-3xl) 0;  /* 5rem */
		min-height: 500px;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-subtitle {
		font-size: 1.125rem;
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding: var(--spacing-2xl) 0;  /* 4rem */
		min-height: 450px;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
		margin: 0 0 var(--spacing-lg) 0;
	}

	.hero-buttons {
		flex-direction: column;
	}
}

/* ==========================================================================
   CTA Section - Homepage
   Note: Styles CTA déplacés vers global.css pour réutilisation
   ========================================================================== */

/* ==========================================================================
   Carousel Produits - Homepage
   ========================================================================== */

/* Section header with navigation buttons at top-right */
.section-header-with-nav {
	position: relative;
	text-align: center;
	margin-bottom: var(--spacing-xl);
	padding-bottom: var(--spacing-sm);
}

.section-header-content {
	max-width: 800px;
	margin: 0 auto;
}

.carousel-nav {
	position: absolute;
	bottom: 0;
	right: 0;
	display: flex;
	gap: var(--spacing-xs);
	align-items: center;
}

/* Wrapper carousel */
.products-carousel-wrapper {
	position: relative;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

/* Carousel container */
.products-carousel {
	display: flex;
	align-items: stretch;
	gap: var(--grid-gap);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE et Edge */
	padding: var(--spacing-sm) 0;
}

/* Masquer scrollbar */
.products-carousel::-webkit-scrollbar {
	display: none;
}

/* Cards produits dans le carousel - 4 produits visibles */
.products-carousel .product-card {
	flex: 0 0 calc(25% - 1.5rem);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	height: auto;
	align-self: stretch;
}

/* Message si aucun produit */
.no-products-message {
	text-align: center;
	padding: var(--spacing-2xl) var(--spacing-lg);
	color: var(--color-steel);
	font-size: 1rem;
	width: 100%;
}

/* Boutons navigation carousel - utilise .btn-icon de global.css */
.carousel-btn {
	position: relative;
	border-radius: 0;
	flex-shrink: 0;
}

/* Responsive Carousel */
@media (max-width: 1024px) {

	/* Tablet: 2 produits visibles */
	.products-carousel .product-card {
		flex: 0 0 calc(50% - 1rem);
	}
}

@media (max-width: 639px) {

	/* Mobile: 1 produit visible */
	.products-carousel .product-card {
		flex: 0 0 calc(100% - 2rem);
	}

	.section-header-with-nav {
		padding-bottom: var(--spacing-2xl);
	}

	.carousel-nav {
		position: static;
		width: 100%;
		justify-content: center;
		margin-top: var(--spacing-md);
	}
}

/* ==========================================================================
   Reassurance Section
   Note: Utilise .section-bordered-smoke, .grid-auto-fit et .icon-box de global.css
   ========================================================================== */

.reassurance-grid {
	max-width: 1200px;
	margin: 0 auto;
}

/* Mobile: augmenter le gap quand les cards sont empilées verticalement */
@media (max-width: 639px) {
	.reassurance-grid {
		gap: var(--spacing-lg);
	}
}

/* ==========================================================================
   Purchase Process Section - Étapes (Comment ça marche)
   ========================================================================== */

.purchase-process-section {
	background: var(--color-black);
	position: relative;
	overflow: hidden;
	padding: var(--spacing-3xl) 0;
}

/* Bouton inversé sur fond sombre */
.purchase-process-section .btn-black {
	background: var(--color-white);
	color: var(--color-black);
	border: var(--border-primary);
	border-color: var(--color-white);
}

.purchase-process-section .btn-black:hover {
	background: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}

/* Image de fond avec overlay */
.purchase-process-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('../../images/TacTicHall.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.38;
	z-index: 0;
}

/* Overlay sombre supplémentaire */
.purchase-process-section::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
	z-index: 1;
}

/* S'assurer que le contenu est au-dessus */
.purchase-process-section .container {
	position: relative;
	z-index: 2;
}

/* Texte blanc pour la section avec fond sombre */
.purchase-process-section .section-title {
	color: var(--color-white);
}

.purchase-process-section .section-subtitle {
	color: var(--color-gray-lighter);
}

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
	position: relative;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.process-step {
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Numéro de l'étape - Inversé sur fond sombre */
.process-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: var(--color-white);
	color: var(--color-black);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--stencil);
	font-size: 2rem;
	font-weight: 400;
	margin: 0 0 var(--spacing-sm) 0;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Ligne de connexion entre les étapes - Desktop (claire sur fond sombre) */
.process-step:not(:last-child) .process-step__number::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 100%;
	width: calc((100vw - 1200px) / 2 + 2.5rem);
	max-width: 150px;
	height: 2px;
	background: rgba(255, 255, 255, 0.2);
	z-index: 1;
	transform: translateY(-50%);
}

/* Alternative : trait au centre de la grille */
@media (min-width: 769px) {
	.process-step:not(:last-child)::before {
		content: '';
		position: absolute;
		top: 36px;
		left: calc(50% + 36px);
		width: calc(100% - 36px + 2.5rem / 2);
		height: 2px;
		background: rgba(255, 255, 255, 0.2);
		z-index: 1;
	}

	.process-step:not(:last-child) .process-step__number::after {
		display: none;
	}
}

.process-step__title {
	font-family: var(--wp--preset--font-family--stencil);
	font-size: 1rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 var(--spacing-xs) 0;
	color: var(--color-white);
	line-height: 1.3;
}

.process-step__description {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-gray-lighter);
	margin: 0;
	max-width: 250px;
}

/* Responsive Purchase Process */

/* Tablet (2 colonnes) */
@media (max-width: 1024px) and (min-width: 769px) {
	.process-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-2xl) var(--spacing-lg);
	}

	/* Traits uniquement entre colonnes (1->2, 3->4) */
	.process-step:nth-child(odd):not(:nth-last-child(-n+2))::before {
		content: '';
		position: absolute;
		top: 36px;
		left: calc(50% + 36px);
		width: calc(100% - 36px + var(--spacing-lg) / 2);
		height: 2px;
		background: rgba(255, 255, 255, 0.2);
		z-index: 1;
	}

	/* Pas de trait sur les éléments pairs ou sur la dernière ligne */
	.process-step:nth-child(even)::before,
	.process-step:nth-last-child(-n+2)::before {
		display: none;
	}
}

/* Mobile (1 colonne) */
@media (max-width: 768px) {
	.process-steps {
		grid-template-columns: 1fr;
		gap: var(--spacing-xl);
		max-width: 400px;
	}

	.process-step__number {
		width: 64px;
		height: 64px;
		font-size: 1.75rem;
		margin-bottom: var(--spacing-sm);
	}

	/* Traits verticaux entre les étapes */
	.process-step:not(:last-child)::before {
		content: '';
		position: absolute;
		top: calc(64px + var(--spacing-sm));
		left: 50%;
		width: 2px;
		height: calc(100% - 64px - var(--spacing-sm) + var(--spacing-xl));
		background: rgba(255, 255, 255, 0.2);
		z-index: 1;
		transform: translateX(-50%);
	}

	.process-step__title {
		font-size: 0.9375rem;
	}

	.process-step__description {
		font-size: 0.875rem;
	}

	.purchase-process-section {
		padding: var(--spacing-2xl) 0;
	}
}