/**
 * CSS pour les cartes hero des caractéristiques produits
 */

/* Variables */
:root {
	font-family: 'Inter', sans-serif;
	--surface-1: white;
	--surface-2: hsl(240, 11%, 96%);
	--text-1: hsl(240, 3%, 12%);
	--text-2: hsl(240, 2%, 44%);
	--radius-custom: 14px;
	--font-size-head-custom: 1.125rem;
	--size-2: 0.5rem;
	--size-6: 1.5rem;
	--font-weight-7: 700;
	--font-size-4: 1.5rem;
	--font-size-6: 2.5rem;
}

/* Layout */
.hero-section {
	display: grid;
	place-items: center;
	padding: 2rem 0;
}

.container {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Card Styling */
.card.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: #eaeaea;
	border-radius: var(--radius-custom);
	overflow: hidden;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
	color: var(--text-1);
}

.card.hero:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Visual section */
.card.hero .visual {
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f7f7f7;
}

.card.hero .visual img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 320px;
	object-fit: contain;
}

/* Content section */
.card.hero .content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.card.hero h1 {
	font-size: var(--font-size-4);
	font-weight: var(--font-weight-7);
	text-wrap: balance;
	margin: 0;
	color: var(--text-1);
}

.card.hero p {
	line-height: 1.6;
	color: var(--text-2);
	margin: 0;
}

/* Hover Effects */
.card.hero .visual img {
	transition: transform 0.4s ease;
}

.card.hero:hover .visual img {
	transform: scale(1.03);
}

/* Responsive Design */
@media (max-width: 768px) {
	.card.hero {
			grid-template-columns: 1fr;
			grid-template-rows: auto 1fr;
	}
	
	.card.hero .visual {
			min-height: 200px;
	}
	
	.card.hero .visual img {
			max-height: 250px;
	}
}

@media (min-width: 1024px) {
	.card.hero h1 {
			font-size: var(--font-size-6);
	}
}