/* Styles de base et couleurs inspirées d'Amazon */
:root {
	--rue3-orange: #ff9900;
	--rue3-dark-blue: #131921;
	--rue3-secondary-blue: #232f3e;
	--rue3-red-sale: #DD0000;
	--rue3-background: #e3e6e6;
	--white-text: #FFFFFF;
	--link-color: #007185;
	/* Bleu des liens */
	/* Variables du footer ajoutées */
	--footer-bg: #232f3e;
	--footer-link-color: #DDDDDD;
	--footer-base-color: #37475A;
	--footer-legal-color: #131A22;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

body {
	background-color: var(--rue3-background);
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

/* --- HEADER & NAVIGATION (Styles non modifiés) --- */
.navbar-top {
	background-color: var(--rue3-dark-blue);
	color: var(--white-text);
	display: flex;
	align-items: center;
	padding: 10px 20px 10px 20px;
	height: 60px;
}

.logo {
	font-size: 28px;
	font-weight: bold;
	color: var(--white-text);
	margin-right: 15px;
	cursor: pointer;
	padding-top: 5px;
	line-height: 1;
}

.logo-delivery {
	font-size: 11px;
	line-height: 12px;
	margin-right: 15px;
	cursor: pointer;
}

.logo-delivery strong {
	font-size: 14px;
	display: block;
}

.search-bar {
	display: flex;
	flex-grow: 1;
	max-width: 700px;
	height: 40px;
	margin: 0 15px;
}

.search-select {
	background-color: #e6e6e6;
	border: none;
	padding: 0 10px;
	border-radius: 4px 0 0 4px;
	font-size: 12px;
	border-right: 1px solid #ccc;
}

.search-bar input {
	width: 100%;
	padding: 10px;
	border: none;
	font-size: 14px;
}

.search-bar button {
	background-color: var(--rue3-orange);
	color: var(--rue3-dark-blue);
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	border-radius: 0 4px 4px 0;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-links-right {
	display: flex;
	align-items: center;
	margin-left: 20px;
}

.nav-link-item {
	color: var(--white-text);
	padding: 5px 10px;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 12px;
	line-height: 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nav-link-item:hover {
	border: 1px solid var(--white-text);
}

.nav-link-item small {
	display: block;
	font-size: 10px;
	line-height: 10px;
}

.nav-link-item strong {
	font-size: 14px;
}

.cart {
	display: flex;
	align-items: flex-end;
	font-weight: bold;
	margin-left: 10px;
	cursor: pointer;
	font-size: 14px;
	padding: 5px 10px;
	border: 1px solid transparent;
}

.cart:hover {
	border: 1px solid var(--white-text);
}

.cart-icon {
	font-size: 28px;
	margin-right: 5px;
	line-height: 1;
}

.cart-count {
	position: absolute;
	top: 5px;
	left: 5px;
	font-size: 12px;
	color: var(--rue3-orange);
}

.navbar-secondary {
	background-color: var(--rue3-secondary-blue);
	color: var(--white-text);
	display: flex;
	align-items: center;
	padding: 5px 20px;
	font-size: 14px;
	height: 40px;
}

.navbar-secondary a {
	color: var(--white-text);
	padding: 5px 10px;
	margin-right: 5px;
	border: 1px solid transparent;
}

.navbar-secondary a:hover {
	border: 1px solid var(--white-text);
}

.navbar-secondary .first-link {
	font-weight: bold;
}

.countdown {
	margin-left: auto;
	color: var(--rue3-red-sale);
	font-weight: bold;
	font-size: 16px;
}

/* --- MENU LATÉRAL (SIDEBAR) (Styles non modifiés) --- */
#sidebar-menu {
	position: fixed;
	top: 0;
	left: -380px;
	width: 365px;
	height: 100%;
	background-color: var(--white-text);
	color: #111;
	z-index: 1000;
	overflow-y: auto;
	transition: left 0.3s ease;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

#sidebar-menu.show-menu {
	left: 0;
}

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

#overlay.active {
	display: block;
}

.sidebar-header {
	background-color: var(--rue3-dark-blue);
	color: var(--white-text);
	padding: 10px 20px;
	font-size: 20px;
	font-weight: bold;
	display: flex;
	align-items: center;
	height: 50px;
}

.sidebar-header .user-icon {
	font-size: 30px;
	margin-right: 10px;
}

.sidebar-menu-section {
	padding: 15px 0;
	border-bottom: 1px solid #ccc;
}

.sidebar-menu-section h4 {
	font-size: 18px;
	padding: 5px 20px;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}

.sidebar-menu-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.sidebar-menu-item:hover {
	background-color: #f0f0f0;
}

.sidebar-menu-item .arrow {
	color: #666;
	font-size: 18px;
}

.close-button {
	position: absolute;
	top: 5px;
	right: 15px;
	color: var(--white-text);
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	font-weight: 300;
	padding: 5px;
}


/* --- SECTION 3: Zone de Contenu Principal (Styles non modifiés) --- */
.main-content {
	padding: 0 20px;
	position: relative;
}

.content-area {
	position: relative;
	z-index: 5;
}

/* --- Slider/Carousel (Bannière Principale) --- */
.slider-container {
	position: relative;
	margin-top: 0px;
	z-index: 1;
	height: 350px;
	/* Hauteur fixe pour le conteneur du slider */
	overflow: hidden;
	/* Important pour masquer les images hors de vue */
}

.hero-banner {
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	/* Garde la bannière en flex pour le contenu texte */
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--white-text);
	z-index: 1;
	/* Le texte sera au-dessus des images */
	background-color: #DD0000;
	/* Couleur de secours si aucune image ne charge */
}

.slide-images-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.5s ease-in-out;
	/* Pour l'animation de slide */
	z-index: 0;
	/* Les images sont en arrière-plan */
}

.slide-images-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Recouvre toute la surface sans déformer */
	flex-shrink: 0;
	/* Empêche les images de se réduire */
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.4);
	color: white;
	border: none;
	padding: 20px 10px;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.slider-arrow:hover {
	opacity: 1;
}

.arrow-left {
	left: 0;
	border-radius: 0 5px 5px 0;
}

.arrow-right {
	right: 0;
	border-radius: 5px 0 0 5px;
}

.banner-content {
	position: absolute;
	/* Reste en position absolue pour le texte */
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	text-align: left;
	z-index: 3;
	background: rgba(0, 0, 0, 0.2);
	/* Fond léger pour améliorer la lisibilité */
	padding: 10px 20px;
	border-radius: 5px;
}

.banner-content h1 {
	font-size: 48px;
	margin-bottom: 5px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content h2 {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 20px;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}

.slider-dot {
	width: 10px;
	height: 10px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s;
}

.slider-dot.active {
	background-color: var(--white-text);
}

/* Grille de Boîtes de Deals Initiales */
.deals-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: -150px;
	position: relative;
	z-index: 5;
}

.deal-box {
	background-color: var(--white-text);
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	height: 350px;
	display: flex;
	flex-direction: column;
}

/* Contenu spécifique de la boîte Promo (Deal 4) */
.deal-box.promo-link {
	justify-content: space-between;
	align-items: center;
	text-align: center;
	padding: 20px 0 0 0;
}

.promo-link-content {
	padding: 0 20px;
}

.promo-link-content h3 {
	font-size: 22px;
	margin-bottom: 10px;
	color: #111;
}

.promo-link-content p {
	color: var(--rue3-red-sale);
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 15px;
}

.promo-image {
	width: 90%;
	max-height: 150px;
	object-fit: contain;
	margin: 10px auto;
}

/* Style pour le lien de bas de boîte */
.shop-link-bottom {
	width: 100%;
	text-align: left;
	margin-top: auto;
	padding-top: 10px;
}

/* Style spécifique pour le lien au bas du Deal 4 */
.deal-box.promo-link .shop-link-bottom {
	background-color: var(--rue3-background);
	padding: 10px 0;
	border-radius: 0 0 5px 5px;
	text-align: center;
	margin-top: auto;
}

.deal-box.promo-link .shop-link-bottom .shop-link {
	color: var(--link-color);
	font-size: 14px;
}

.deal-box h3 {
	font-size: 20px;
	margin-bottom: 15px;
	color: #111;
}

.deal-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	flex-grow: 1;
	margin-bottom: 10px;
}

.deal-item {
	width: 48%;
	text-align: center;
	margin-bottom: 15px;
}

.deal-image {
	width: 100%;
	height: 100px;
	background-color: var(--rue3-background);
	object-fit: contain;
}

.deal-text {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--link-color);
}

.discount-tag-line {
	display: flex;
	align-items: center;
	margin-top: 5px;
}

.deal-box:not(.promo-link) .discount-tag-line {
	padding-bottom: 5px;
}

.discount-tag {
	background-color: var(--rue3-red-sale);
	color: var(--white-text);
	padding: 2px 5px;
	font-weight: bold;
	border-radius: 3px;
	font-size: 12px;
	margin-right: 5px;
}

.deal-message {
	color: var(--rue3-red-sale);
	font-size: 12px;
}

/* Publicité latérale */
.sidebar-ad {
	background-color: var(--white-text);
	padding: 15px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	text-align: center;
	width: 200px;
	margin-left: auto;
	position: relative;
	z-index: 5;
}

.sidebar-ad img {
	max-width: 100%;
	height: auto;
}

/* --- Ligne de Produits (Carousel 2) --- */
.product-line-section {
	background-color: var(--white-text);
	padding: 20px;
	margin-top: 20px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	position: relative;
}

.section-header {
	display: flex;
	align-items: baseline;
	margin-bottom: 15px;
}

.section-header h2 {
	font-size: 21px;
	font-weight: bold;
	margin-right: 15px;
	color: #111;
}

.section-header .see-more {
	font-size: 14px;
	color: var(--link-color);
	text-decoration: none;
}

/* Conteneur pour le carousel et les flèches */
.product-carousel-wrapper {
	position: relative;
}

.product-carousel {
	display: flex;
	overflow-x: scroll;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Masquer la barre de défilement (Scrollbar) pour le carousel de produits */
.product-carousel::-webkit-scrollbar {
	display: none;
}

.product-card {
	min-width: 240px;
	padding: 10px 15px;
	text-align: center;
	border-right: 1px solid var(--rue3-background);
	flex-shrink: 0;
}

.product-card img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	margin-bottom: 10px;
}

.price-info {
	text-align: left;
	margin-top: 10px;
	color: #111;
}

.price-info>div:first-child {
	display: flex;
	align-items: center;
}

.price-tag {
	background-color: var(--rue3-red-sale);
	color: var(--white-text);
	padding: 2px 5px;
	font-size: 12px;
	font-weight: bold;
	margin-right: 5px;
	border-radius: 3px;
}

.price-new {
	color: var(--rue3-red-sale);
	font-size: 16px;
	font-weight: bold;
}

.price-old {
	font-size: 12px;
	color: #555;
	text-decoration: line-through;
	margin-left: 5px;
}

.product-status {
	font-size: 12px;
	color: var(--rue3-red-sale);
	font-weight: bold;
	margin-left: 5px;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 80px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #ccc;
	font-size: 24px;
	cursor: pointer;
	line-height: 80px;
	text-align: center;
	z-index: 20;
	opacity: 0.9;
}

.carousel-arrow.left {
	left: 0;
	border-radius: 0 5px 5px 0;
}

.carousel-arrow.right {
	right: 0;
	border-radius: 5px 0 0 5px;
}

/* --- FOOTER STYLES (AJOUTÉS) --- */
footer {
	margin-top: 30px;
}

.back-to-top {
	background-color: var(--footer-base-color);
	color: var(--white-text);
	text-align: center;
	/* Centré comme demandé */
	padding: 15px 0;
	font-size: 13px;
	cursor: pointer;
	display: block;
	/* Prend toute la largeur */
}

.footer-links-area {
	background-color: var(--footer-bg);
	padding: 40px 0;
	color: var(--white-text);
	display: flex;
	justify-content: center;
	border-bottom: 1px solid #3a4553;
}

.footer-links-grid {
	display: flex;
	width: 80%;
	max-width: 1000px;
	justify-content: space-between;
}

.footer-col {
	padding: 0 10px;
	min-width: 150px;
}

.footer-col h4 {
	font-size: 16px;
	margin-bottom: 10px;
	font-weight: bold;
}

.footer-col a {
	display: block;
	font-size: 14px;
	color: var(--footer-link-color);
	margin-bottom: 8px;
}

.footer-col a:hover {
	text-decoration: underline;
}

.footer-bottom {
	background-color: var(--footer-bg);
	padding: 20px 0;
	text-align: center;
}

.footer-locale {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.footer-locale button {
	background-color: transparent;
	color: var(--footer-link-color);
	border: 1px solid var(--footer-link-color);
	padding: 7px 15px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
}

.footer-locale button:hover {
	opacity: 0.8;
}

.footer-legal-bar {
	background-color: var(--footer-legal-color);
	padding: 30px 0;
	color: var(--footer-link-color);
	text-align: center;
	font-size: 12px;
}

.footer-legal-links a {
	color: var(--footer-link-color);
	margin: 0 10px;
}

.footer-legal-links a:hover {
	text-decoration: underline;
}


/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {

	.navbar-top {
		flex-wrap: wrap;
		height: auto;
		padding-bottom: 5px;
	}

	.logo {
		order: 1;
		margin-right: 10px;
	}

	.logo-delivery {
		order: 2;
		margin-right: 0;
	}

	.nav-link-item.lang-select {
		display: none;
	}

	.nav-links-right {
		display: flex;
	}

	.nav-link-item {
		padding: 5px;
	}

	.search-bar {
		order: 4;
		margin: 5px 0;
		width: 100%;
		max-width: none;
	}

	.cart {
		order: 3;
		margin-left: auto;
	}

	.navbar-secondary {
		overflow-x: auto;
		white-space: nowrap;
		justify-content: flex-start;
		padding-right: 20px;
	}

	.countdown {
		display: none;
	}

	.main-content {
		padding: 0 10px;
	}

	.slider-container {
		height: 200px;
	}

	/* Ajuster la hauteur pour mobile */
	.banner-content h1 {
		font-size: 28px;
	}

	.banner-content h2 {
		font-size: 18px;
	}

	.slider-arrow {
		padding: 10px 5px;
		font-size: 20px;
	}

	.deals-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: -80px;
	}

	.deal-box {
		height: auto;
		min-height: 250px;
	}

	.deal-item {
		width: 45%;
		margin-bottom: 5px;
	}

	.deal-image {
		height: 80px;
	}

	section[style*="margin-bottom"] {
		text-align: center;
	}

	.sidebar-ad {
		width: 100%;
		display: block;
		margin-left: 0;
	}

	.product-line-section {
		padding: 10px;
	}

	.product-card {
		min-width: 150px;
		padding: 5px 10px;
	}
}