/* =========================================================
   Mini Sabots créations — core styles
   ========================================================= */

:root {
	--msc-purple-900: #2c0e3f;
	--msc-purple-800: #3b1650;
	--msc-purple-700: #4a1f63;
	--msc-purple-600: #6b2c87;
	--msc-purple-500: #8a4aa8;
	--msc-lilac-100: #f3e9f9;
	--msc-bg: #f8f1fb;
	--msc-bg-alt: #efe0f3;
	--msc-gold: #cfa54a;
	--msc-gold-light: #e4c581;
	--msc-text: #3a2440;
	--msc-text-soft: #6d5876;
	--msc-white: #ffffff;
	--msc-border: #e5d5ec;
	--font-display: 'Playfair Display', Georgia, serif;
	--font-script: 'Dancing Script', cursive;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 8px;
	--shadow-card: 0 10px 30px rgba(60, 20, 80, 0.08);
	--shadow-card-hover: 0 16px 36px rgba(60, 20, 80, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--msc-text);
	background: var(--msc-bg);
	font-size: 16px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--msc-purple-800);
	margin: 0 0 .5em;
	line-height: 1.25;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 10000;
	background: var(--msc-purple-800); color: #fff; padding: .75em 1.25em; border-radius: var(--radius-sm);
}

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

.msc-script {
	font-family: var(--font-script);
	color: var(--msc-gold-light);
	font-weight: 600;
}

/* Buttons */
.msc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 12px 26px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .95rem;
	border: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
	text-align: center;
}
.msc-btn--primary { background: var(--msc-purple-600); color: #fff; }
.msc-btn--primary:hover { background: var(--msc-purple-700); transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.msc-btn--gold { background: linear-gradient(135deg, var(--msc-gold-light), var(--msc-gold)); color: var(--msc-purple-900); }
.msc-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(207,165,74,.35); }
.msc-btn--outline { background: transparent; color: var(--msc-purple-700); border: 1.5px solid var(--msc-purple-500); }
.msc-btn--outline:hover { background: var(--msc-lilac-100); }
.msc-btn--block { width: 100%; }
.msc-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* =========================================================
   Header
   ========================================================= */
.msc-header {
	background: linear-gradient(120deg, var(--msc-purple-800), var(--msc-purple-900));
	position: sticky;
	top: 0;
	z-index: 500;
}
.msc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 84px;
	position: relative;
}

.msc-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.msc-logo__mark { width: 40px; height: 40px; color: var(--msc-gold-light); flex-shrink: 0; }
.msc-logo__mark svg { width: 100%; height: 100%; }
.msc-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.msc-logo__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #fff; }
.msc-logo__sub { font-family: var(--font-script); font-size: 1.1rem; color: var(--msc-gold-light); }
.msc-logo img { max-height: 56px; width: auto; }

.msc-nav__list { display: flex; align-items: center; gap: 32px; }
.msc-nav__list > li > a {
	color: #f2e9f7;
	font-weight: 500;
	font-size: .98rem;
	padding: 8px 2px;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.msc-nav__list > li > a:hover,
.msc-nav__list > li.current-menu-item > a,
.msc-nav__list > li.current_page_item > a {
	color: var(--msc-gold-light);
	border-color: var(--msc-gold-light);
}
.msc-nav__list li.menu-item-has-children { position: relative; }
.msc-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	min-width: 220px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card-hover);
	padding: 8px 0;
	margin-top: 12px;
}
.msc-nav__list li.menu-item-has-children:hover .sub-menu { display: block; }
.msc-nav__list .sub-menu li a { display: block; padding: 10px 18px; color: var(--msc-text); }
.msc-nav__list .sub-menu li a:hover { background: var(--msc-lilac-100); }

.msc-header__actions { display: flex; align-items: center; gap: 10px; }
.msc-icon-btn {
	position: relative;
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	color: #f2e9f7;
	border: none; background: transparent; cursor: pointer;
	border-radius: 50%;
	transition: background-color .15s ease;
}
.msc-icon-btn:hover { background: rgba(255,255,255,.12); }
.msc-icon-btn svg { width: 20px; height: 20px; }
.msc-cart-count {
	position: absolute; top: 0; right: 0;
	background: var(--msc-gold); color: var(--msc-purple-900);
	font-size: .65rem; font-weight: 700;
	width: 17px; height: 17px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}

.msc-search-form {
	display: none;
	position: absolute; top: 100%; right: 24px; margin-top: 10px;
	background: #fff; border-radius: 999px; box-shadow: var(--shadow-card-hover);
	overflow: hidden;
}
.msc-search-form.is-open { display: flex; }
.msc-search-form input { border: none; padding: 12px 18px; font-family: var(--font-body); min-width: 240px; outline: none; }
.msc-search-form button { border: none; background: var(--msc-purple-600); color: #fff; width: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.msc-search-form button svg { width: 18px; height: 18px; }

.msc-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.msc-nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

.msc-nav__account { display: none; }

/* =========================================================
   Generic hero (home / shop / category / personnalisation)
   ========================================================= */
.msc-hero {
	background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.06), transparent 40%), linear-gradient(120deg, var(--msc-purple-800), var(--msc-purple-900));
	color: #fff;
	position: relative;
	overflow: hidden;
	padding: 64px 0;
}
.msc-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	position: relative;
	z-index: 1;
}
.msc-hero__content { max-width: 520px; }
.msc-hero h1, .msc-hero .msc-hero__title {
	font-size: 2.75rem;
	color: #fff;
	margin-bottom: .2em;
}
.msc-hero__subtitle {
	display: block;
	font-family: var(--font-script);
	font-size: 2.4rem;
	color: var(--msc-gold-light);
	font-weight: 600;
	margin-bottom: .3em;
}
.msc-hero__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--msc-gold-light); }
.msc-hero__divider::before, .msc-hero__divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.msc-hero p.msc-hero__text { color: #eadcf1; font-size: 1.05rem; margin-bottom: 28px; }
.msc-hero__media { position: relative; text-align: center; }
.msc-hero__media img { margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.msc-hero__badge {
	position: absolute;
	top: 10px; right: 0;
	background: var(--msc-gold-light);
	color: var(--msc-purple-900);
	width: 110px; height: 110px;
	border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; font-weight: 600; font-size: .8rem; line-height: 1.2;
	box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.msc-hero__badge svg { width: 24px; height: 24px; margin-bottom: 4px; }
.msc-hero--compact { padding: 44px 0 30px; }
.msc-hero--compact .msc-hero__inner { grid-template-columns: 1.2fr 1fr; }

/* Sparkle decoration */
.msc-hero::after {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.5) 0, transparent 60%),
		radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,.4) 0, transparent 60%),
		radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,.4) 0, transparent 60%),
		radial-gradient(1.5px 1.5px at 30% 80%, rgba(255,255,255,.3) 0, transparent 60%);
	pointer-events: none;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.msc-breadcrumb {
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 24px;
	font-size: .88rem;
	color: var(--msc-text-soft);
	display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.msc-breadcrumb a { color: var(--msc-text-soft); }
.msc-breadcrumb a:hover { color: var(--msc-purple-600); }
.msc-breadcrumb .current { color: var(--msc-purple-700); font-weight: 500; }
.msc-breadcrumb__home svg { width: 15px; height: 15px; vertical-align: -2px; }
.msc-breadcrumb .sep { opacity: .5; }

/* =========================================================
   Section titles
   ========================================================= */
.msc-section-title {
	text-align: center;
	margin: 0 auto 40px;
	max-width: 640px;
}
.msc-section-title h2 { font-size: 2rem; display: flex; align-items: center; justify-content: center; gap: 14px; }
.msc-section-title h2::before, .msc-section-title h2::after { content: ""; width: 46px; height: 1px; background: var(--msc-purple-500); opacity: .4; }
.msc-section-title p { color: var(--msc-text-soft); margin-top: 10px; }

/* =========================================================
   Homepage: collection cards
   ========================================================= */
.msc-collections { padding: 64px 0; }
.msc-collections__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.msc-collection-card {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	display: flex; flex-direction: column;
	text-align: center;
	padding-bottom: 24px;
	transition: transform .2s ease, box-shadow .2s ease;
	position: relative;
}
.msc-collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.msc-collection-card__media {
	height: 170px;
	background: linear-gradient(135deg, var(--msc-lilac-100), var(--msc-bg-alt));
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
}
.msc-collection-card__placeholder { width: 48px; height: 48px; color: var(--msc-purple-400, var(--msc-purple-500)); opacity: .5; }
.msc-collection-card__icon {
	width: 56px; height: 56px;
	margin: -28px auto 12px;
	background: var(--msc-purple-600);
	color: #fff;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-card);
	border: 4px solid #fff;
}
.msc-collection-card__icon svg { width: 24px; height: 24px; }
.msc-collection-card h3 { font-size: 1.2rem; margin-bottom: 10px; padding: 0 20px; }
.msc-collection-card ul { margin-bottom: 20px; padding: 0 20px; color: var(--msc-text-soft); font-size: .92rem; }
.msc-collection-card ul li { margin-bottom: 4px; }
.msc-collection-card .msc-btn { margin: 0 20px; }

/* =========================================================
   Feature strip (4 icons)
   ========================================================= */
.msc-feature-strip { background: var(--msc-bg-alt); padding: 48px 0; }
.msc-feature-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: center;
}
.msc-feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px;
	color: var(--msc-purple-600);
	margin-bottom: 12px;
}
.msc-feature__icon svg { width: 30px; height: 30px; }
.msc-feature h3 { font-size: 1.02rem; color: var(--msc-purple-800); margin-bottom: 6px; }
.msc-feature p { font-size: .88rem; color: var(--msc-text-soft); margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.msc-footer { background: linear-gradient(120deg, var(--msc-purple-900), #200a2e); color: #ddc9e4; padding: 56px 0 0; }
.msc-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.msc-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 16px; }
.msc-footer__list li { margin-bottom: 10px; }
.msc-footer__list a:hover { color: var(--msc-gold-light); }
.msc-footer__social { display: flex; gap: 10px; }
.msc-social-btn {
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center;
	color: #fff; transition: background-color .15s ease;
}
.msc-social-btn svg { width: 18px; height: 18px; }
.msc-social-btn:hover { background: var(--msc-gold); color: var(--msc-purple-900); }
.msc-footer__mail { display: flex; align-items: center; gap: 8px; }
.msc-footer__mail svg { width: 18px; height: 18px; }
.msc-footer__mail:hover { color: var(--msc-gold-light); }
.msc-footer__bottom { text-align: center; padding: 22px 0; font-size: .85rem; color: #b79ec2; }
.msc-footer__heart { color: var(--msc-gold-light); }
.msc-logo--footer .msc-logo__title, .msc-logo--footer .msc-logo__sub { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
	.msc-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--msc-purple-800); padding: 24px; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; z-index: 400; }
	.msc-nav.is-open { transform: translateX(0); }
	.msc-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
	.msc-nav__list > li { width: 100%; }
	.msc-nav__list .sub-menu { position: static; display: none; box-shadow: none; margin-top: 4px; background: rgba(255,255,255,.06); }
	.msc-nav__list li.menu-item-has-children:hover .sub-menu,
	.msc-nav__list li.menu-item-has-children.is-open .sub-menu { display: block; }
	.msc-nav-toggle { display: flex; }
	.msc-nav__account {
		display: block;
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid rgba(255,255,255,.15);
		color: var(--msc-gold-light);
		font-weight: 600;
	}
	.msc-hero__inner, .msc-hero--compact .msc-hero__inner { grid-template-columns: 1fr; text-align: center; }
	.msc-hero__content { max-width: none; margin: 0 auto; }
	.msc-hero__badge { position: static; margin: 20px auto 0; }
	.msc-collections__grid { grid-template-columns: repeat(2, 1fr); }
	.msc-feature-strip__grid { grid-template-columns: repeat(2, 1fr); }
	.msc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.msc-collections__grid { grid-template-columns: 1fr; }
	.msc-feature-strip__grid { grid-template-columns: 1fr; }
	.msc-footer__grid { grid-template-columns: 1fr; }
	.msc-hero h1, .msc-hero .msc-hero__title { font-size: 2.1rem; }
	.msc-hero__subtitle { font-size: 1.8rem; }
	.msc-search-form { left: 24px; right: 24px; }
	.msc-search-form input { min-width: 0; flex: 1; }
}

/* Small phones: the header row (logo + toggle + icons) needs to actively shrink, not just wrap. */
@media (max-width: 480px) {
	.msc-container { padding: 0 16px; }
	.msc-header__inner { height: 68px; gap: 8px; }
	.msc-logo { gap: 8px; }
	.msc-logo__mark { width: 30px; height: 30px; }
	.msc-logo__title { font-size: 1.02rem; }
	.msc-logo__sub { font-size: .85rem; }
	.msc-logo img { max-height: 40px; }
	.msc-header__actions { gap: 0; }
	.msc-icon-btn { width: 34px; height: 34px; }
	.msc-icon-btn svg { width: 18px; height: 18px; }
	/* Account access remains reachable from the mobile menu / My account area; dropping this icon
	   here is what buys back the space the logo + cart + menu button need on ~320-360px screens. */
	.msc-account-link { display: none; }
	.msc-nav-toggle { padding: 6px; }
}

/* =========================================================
   Generic page / blog / 404
   ========================================================= */
.msc-page { padding-bottom: 60px; }
.msc-page__title { font-size: 2rem; margin-bottom: 24px; }
.msc-page__content { color: var(--msc-text-soft); line-height: 1.8; }
.msc-page__content h2, .msc-page__content h3 { color: var(--msc-purple-800); margin-top: 1.4em; }

.msc-blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 40px; }
.msc-blog-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; padding-bottom: 18px; }
.msc-blog-card__media img { aspect-ratio: 16/10; object-fit: cover; }
.msc-blog-card h2 { font-size: 1.1rem; padding: 14px 18px 6px; }
.msc-blog-card__excerpt { padding: 0 18px; color: var(--msc-text-soft); font-size: .9rem; }

.msc-404 { text-align: center; padding: 80px 0; }
.msc-404 h1 { font-size: 2.4rem; }
.msc-404 p { color: var(--msc-text-soft); margin-bottom: 28px; }
.msc-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) { .msc-blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .msc-blog-list { grid-template-columns: 1fr; } }
