/* RESET de base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	font-family: 'Arial', sans-serif;
	background-color: #121214;
	color: #f0f0f0;
}

/* STRUCTURE PRINCIPALE */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* HEADER FIXE */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #18181b;
	padding: 20px 0;
	z-index: 1000;
	border-bottom: 1px solid #2d2d2d;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-header .container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.site-header nav {
	display: flex;
	gap: 24px;
	align-items: center;
}

.site-header nav a {
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: color 0.3s ease;
}

.site-header nav a:hover {
	color: #e63946;
}

/* MAIN */
.site-main {
	flex: 1;
	padding: 120px 20px 60px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-main h1,
.site-main h2 {
	text-align: center;
	margin-bottom: 30px;
	color: #ffffff;
}

/* HERO */
.hero {
	position: relative;
	height: 300px;
	border-radius: 16px;
	margin-bottom: 40px;
	background-image: url('../image/marche-du-resell-de-sneakers-en-2025-couv-768x515.jpg');
	background-size: cover;
	background-position: center;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	/* assombrit l'image */
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-overlay button {
	padding: 12px 24px;
	font-size: 1rem;
	color: #fff;
	background-color: #e63946;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-overlay button:hover {
	background-color: #ff4d5a;
}

/* GRILLES PRODUITS */
.produits-grid,
.sneakers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	padding: 20px;
}

.grid-list,
.grid-list-localisations {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.localisation-card {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	height: 200px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

/* Overlay sombre */
.localisation-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	/* assombrit l'image */
	z-index: 1;
}

/* Lien texte au-dessus de l’overlay */
.localisation-card a {
	position: relative;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 12px 20px;
	border-radius: 5px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

.localisation-card:hover {
	transform: scale(1.03);
}

.marque-card {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	height: 200px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

.marque-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	/* opacité pour assombrir */
	z-index: 1;
}

.marque-card a {
	position: relative;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 12px 20px;
	border-radius: 5px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

.marque-card:hover {
	transform: scale(1.03);
}


/* PRODUITS / CARTES */
.produit,
.card {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	color: #000000;
	min-height: 120px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	width: 100%;
}

.card {
	max-width: 1200px;
}

/* LIENS */
a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: underline;
}

a.sneaker-link {
	font-weight: 500;
	transition: color 0.3s;
}

a.sneaker-link:hover {
	color: #e63946;
}

/* DETAIL PAGE */
.sneaker-detail,
.sneakers-list {
	background-color: #1e1e22;
	padding: 24px;
	border-radius: 12px;
	margin: 0 auto 40px;
	max-width: 800px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sneaker-detail h1,
.sneakers-list h1 {
	font-size: 28px;
	margin-bottom: 20px;
}

.sneaker-detail ul,
.sneakers-list ul {
	list-style: none;
	padding: 0;
	margin-bottom: 20px;
}

.sneaker-detail ul li,
.sneakers-list li {
	font-size: 18px;
	margin-bottom: 8px;
}

.sneaker-detail img {
	max-width: 100%;
	width: 500px;
	/* taille personnalisée */
	height: auto;
	display: block;
	margin: 0 auto 30px;
	border-radius: 12px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* BOUTON RETOUR */
.retour {
	background-color: #2c2c2e;
	border: 2px solid #444;
	color: #f5f5f5;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.retour:hover {
	background-color: #444;
	border-color: #555;
}

/* FORMULAIRE */
form {
	max-width: 600px;
	margin: 0 auto;
	background-color: #1e1e22;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

form label {
	font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
	padding: 12px;
	background-color: #121214;
	border: 1px solid #444;
	border-radius: 6px;
	color: #f5f5f5;
	font-size: 1rem;
	width: 100%;
}

form textarea {
	resize: vertical;
	min-height: 120px;
}

form button {
	padding: 14px;
	background-color: #e63946;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
}

form button:hover {
	background-color: #ff4d5a;
}

form p {
	text-align: center;
	color: #4caf50;
	font-weight: bold;
}

.success {
	color: #4caf50;
	margin-bottom: 10px;
	font-weight: bold;
}

/* COMMENTAIRES */
.comments-section {
	background-color: #1a1a1d;
	padding: 40px;
	border-radius: 20px;
	max-width: 700px;
	margin: 50px auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.comments-section h2 {
	text-align: center;
	font-size: 24px;
	margin-bottom: 30px;
}

.comment-card {
	background-color: #2a2a2d;
	padding: 24px;
	border-radius: 12px;
	margin-bottom: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.comment-card strong {
	font-size: 16px;
	display: block;
	margin-bottom: 8px;
}

.comment-card p {
	font-size: 14px;
	font-style: italic;
	margin: 0;
}

/* FOOTER STICKY */
.site-footer {
	background-color: #18181b;
	color: #ccc;
	padding: 20px 0;
	border-top: 1px solid #333;
	text-align: center;
	margin-top: auto;
}

.site-footer .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.site-footer nav {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.site-footer nav a {
	color: #f5f5f5;
	font-weight: bold;
	transition: color 0.3s;
}

.site-footer nav a:hover {
	color: #e63946;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
	.produits-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {

	.produits-grid,
	.sneakers-grid,
	.grid-list,
	.grid-list-localisations {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {

	.produits-grid,
	.sneakers-grid,
	.grid-list,
	.grid-list-localisations {
		grid-template-columns: 1fr;
	}
}