/* =========================================================
   KASP - Header & Footer personnalisés
   Toutes les couleurs sont des variables CSS en haut du fichier :
   change-les ici pour ajuster toute la charte en une fois.
   ========================================================= */

:root {
	--kasp-primary: #1B2430;      /* Navy - identique à la page d'accueil KASP */
	--kasp-accent: #D6A61F;       /* Or - identique à la page d'accueil KASP */
	--kasp-accent-2: #4B6B3C;     /* Vert forêt - accent secondaire (liens, hover alternatif) */
	--kasp-text-light: #ffffff;
	--kasp-text-muted: #b8c2d4;
	--kasp-footer-bg: #12181f;    /* Un peu plus foncé que --kasp-primary */
	--kasp-border: rgba(255,255,255,0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

.kasp-topbar, .kasp-main-header, .kasp-mega-menu, .kasp-footer {
	font-family: 'Poppins', sans-serif;
}
.kasp-logo-text, .kasp-footer-widget-title {
	font-family: 'Space Grotesk', sans-serif;
}

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

/* ===== TOPBAR ===== */
.kasp-topbar {
	background: var(--kasp-primary);
	color: var(--kasp-text-muted);
	font-size: 13px;
}
.kasp-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 20px;
	flex-wrap: wrap;
	gap: 8px;
}
.kasp-topbar-contact a {
	color: var(--kasp-text-muted);
	text-decoration: none;
	margin-right: 20px;
}
.kasp-topbar-contact a:hover { color: var(--kasp-accent); }
.kasp-topbar-right { display: flex; align-items: center; gap: 16px; }
.kasp-topbar-socials a {
	color: var(--kasp-text-muted);
	margin-left: 10px;
	text-decoration: none;
}
.kasp-topbar-socials a:hover { color: var(--kasp-accent); }
.kasp-topbar-menu { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.kasp-topbar-menu a { color: var(--kasp-text-muted); text-decoration: none; }

/* ===== HEADER PRINCIPAL ===== */
.kasp-main-header {
	background: #ffffff;
	border-bottom: 1px solid #eee;
	padding: 16px 0;
}
.kasp-main-header-inner {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}
.kasp-logo { flex: 0 0 auto; }
.kasp-logo img { max-height: 55px; width: auto; }
.kasp-logo-text {
	font-size: 24px;
	font-weight: 700;
	color: var(--kasp-primary);
	text-decoration: none;
}
.kasp-search { flex: 1 1 auto; min-width: 240px; }
.kasp-search input[type="search"],
.kasp-search input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--kasp-primary);
	border-radius: 4px;
}
.kasp-search button {
	background: var(--kasp-accent);
	border: none;
	color: #fff;
	cursor: pointer;
}

.kasp-header-actions { display: flex; align-items: center; gap: 24px; }
.kasp-header-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--kasp-primary);
	text-decoration: none;
	font-size: 12px;
	position: relative;
}
.kasp-header-action i { font-size: 20px; margin-bottom: 3px; }
.kasp-header-action:hover { color: var(--kasp-accent); }
.kasp-cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	background: var(--kasp-accent);
	color: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== MEGA MENU ===== */
.kasp-mega-menu {
	background: var(--kasp-primary);
}
.kasp-mega-menu-list {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.kasp-mega-menu-item {
	position: relative;
}
.kasp-mega-menu-item > a {
	display: block;
	padding: 14px 18px;
	color: var(--kasp-text-light);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.kasp-mega-menu-item:hover > a,
.kasp-mega-menu-item > a:hover {
	background: var(--kasp-accent);
}
.kasp-mega-menu-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	z-index: 100;
}
.kasp-mega-menu-item.has-children:hover .kasp-mega-menu-dropdown {
	display: block;
}
.kasp-mega-menu-dropdown ul { list-style: none; margin: 0; padding: 8px 0; }
.kasp-mega-menu-dropdown a {
	display: block;
	padding: 8px 18px;
	color: var(--kasp-primary);
	text-decoration: none;
	font-size: 13px;
}
.kasp-mega-menu-dropdown a:hover { background: #f5f5f5; color: var(--kasp-accent); }

/* ===== FOOTER ===== */
.kasp-footer { background: var(--kasp-footer-bg); color: var(--kasp-text-muted); }

.kasp-footer-brands { padding: 24px 0; border-bottom: 1px solid var(--kasp-border); }
.kasp-footer-brands-label {
	text-align: center;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
	margin-bottom: 16px;
	color: var(--kasp-text-muted);
}
.kasp-footer-brands-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.kasp-brand-logo {
	max-height: 40px;
	width: auto;
	filter: grayscale(100%) brightness(1.6);
	opacity: 0.85;
	transition: opacity 0.2s, filter 0.2s;
}
.kasp-brand-logo:hover { filter: none; opacity: 1; }

.kasp-footer-main { padding: 50px 0 30px; }
.kasp-footer-columns {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.3fr;
	gap: 40px;
}
.kasp-footer-widget-title {
	color: var(--kasp-text-light);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 16px;
}
.kasp-footer-links { list-style: none; margin: 0; padding: 0; }
.kasp-footer-links li { margin-bottom: 8px; }
.kasp-footer-links a { color: var(--kasp-text-muted); text-decoration: none; font-size: 14px; }
.kasp-footer-links a:hover { color: var(--kasp-accent); }
.kasp-footer-about p { font-size: 14px; line-height: 1.6; margin: 14px 0; }
.kasp-footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255,255,255,0.06);
	border-radius: 50%;
	color: var(--kasp-text-light);
	margin-right: 8px;
	text-decoration: none;
}
.kasp-footer-socials a:hover { background: var(--kasp-accent); }
.kasp-footer-note { font-size: 12px; font-style: italic; opacity: 0.6; }

.kasp-footer-certifications { padding: 20px 0; border-top: 1px solid var(--kasp-border); }
.kasp-certifications-row {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}
.kasp-cert-logo { max-height: 50px; width: auto; }

.kasp-footer-bottom {
	background: #0a1424;
	padding: 16px 0;
	font-size: 13px;
}
.kasp-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
	.kasp-footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.kasp-main-header-inner { flex-direction: column; align-items: stretch; }
	.kasp-header-actions { justify-content: center; }
	.kasp-mega-menu-list { flex-direction: column; }
	.kasp-footer-columns { grid-template-columns: 1fr; }
	.kasp-topbar-inner { justify-content: center; text-align: center; }
}
