/* ============================================================
   main.css — Armurerie Schubnel
   Thème : Gunmetal #1E2327 + Laiton #C9A84C
   ============================================================ */


/* ── 1. TOKENS ──────────────────────────────────────────────── */

:root {
	--c-gun:         #1E2327;
	--c-gun-light:   #2c343a;
	--c-laiton:      #C9A84C;
	--c-laiton-dark: #b8943c;
	--c-white:       #ffffff;
	--c-bg:          #f7f6f3;
	--c-bg-alt:      #f0ede8;
	--c-text:        #2c2c2a;
	--c-text-muted:  #777;
	--c-border:      #e0ddd5;
	--c-success:     #27ae60;
	--c-danger:      #c0392b;

	--font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
	--font-body:    'Inter', system-ui, -apple-system, sans-serif;

	--max-width:    1200px;
	--gap:          2rem;
	--radius:       3px;
	--radius-md:    6px;

	--header-h:     70px;
	--topbar-h:     36px;
	--full-header:  calc(var(--header-h) + var(--topbar-h));

	--transition:   .18s ease;
}


/* ── 2. RESET MINIMAL ───────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-white);
}

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

a { color: var(--c-laiton); text-decoration: none; }
a:hover { color: var(--c-laiton-dark); }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1.1;
	color: var(--c-gun);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }


/* ── 3. LAYOUT ──────────────────────────────────────────────── */

.wrap {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.site { padding-top: var(--full-header); }

section { padding: 4rem 0; }


/* ── 4. TOPBAR ──────────────────────────────────────────────── */

.site-topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 200;
	height: var(--topbar-h);
	background: var(--c-gun);
	color: rgba(255,255,255,.7);
	font-size: .78rem;
}
.site-topbar .wrap {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-topbar__left, .site-topbar__right {
	display: flex;
	align-items: center;
	gap: .75rem;
}
.site-topbar a { color: rgba(255,255,255,.75); }
.site-topbar a:hover { color: var(--c-laiton); }
.site-topbar__phone { display: flex; align-items: center; gap: .35rem; }
.site-topbar__sep { opacity: .3; }
.site-topbar__right a {
	padding: .2rem .7rem;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 2px;
	font-size: .74rem;
	transition: var(--transition);
}
.site-topbar__right a:hover { border-color: var(--c-laiton); color: var(--c-laiton); }


/* ── 5. HEADER ──────────────────────────────────────────────── */

.site-header {
	position: fixed;
	top: var(--topbar-h);
	left: 0; right: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--c-border);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: box-shadow var(--transition), transform var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); }
.site-header.is-hidden   { transform: translateY(calc(-100% - var(--topbar-h))); }

.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 2rem;
}

/* Logo */
.site-header__logo img { height: 48px; width: auto; }
.site-header__logo-text {
	font-family: var(--font-display);
	font-size: 1.4rem;
	letter-spacing: .08em;
	color: var(--c-gun);
}

/* Navigation */
.site-nav { flex: 1; }
.site-nav__list {
	display: flex;
	align-items: center;
	gap: .25rem;
}
.site-nav__list a {
	display: block;
	padding: .5rem .75rem;
	font-size: .84rem;
	font-weight: 500;
	color: var(--c-gun);
	letter-spacing: .03em;
	transition: color var(--transition);
	white-space: nowrap;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a { color: var(--c-laiton); }

/* Sous-menus */
.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-top: 2px solid var(--c-laiton);
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition);
	z-index: 50;
}
.site-nav__list .menu-item-has-children { position: relative; }
.site-nav__list .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.site-nav__list .sub-menu a {
	padding: .5rem 1rem;
	font-size: .82rem;
	border-bottom: 1px solid var(--c-bg);
}

/* Actions header */
.site-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* Mini-cart */
.header-cart {
	position: relative;
	display: flex;
	align-items: center;
	color: var(--c-gun);
	transition: color var(--transition);
}
.header-cart:hover { color: var(--c-laiton); }
.header-cart__count {
	position: absolute;
	top: -6px; right: -8px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	background: var(--c-laiton);
	color: var(--c-gun);
	font-size: .65rem;
	font-weight: 700;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Burger */
.site-nav__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 28px;
	padding: 4px 0;
}
.site-nav__burger span {
	display: block;
	height: 2px;
	background: var(--c-gun);
	border-radius: 2px;
	transition: var(--transition);
}

/* Overlay */
.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 90;
}


/* ── 6. BOUTONS ─────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .65rem 1.5rem;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: all var(--transition);
	cursor: pointer;
	white-space: nowrap;
}

.btn--primary     { background: var(--c-laiton); color: var(--c-gun); border-color: var(--c-laiton); }
.btn--primary:hover { background: var(--c-laiton-dark); border-color: var(--c-laiton-dark); color: var(--c-gun); }

.btn--secondary   { background: var(--c-gun); color: var(--c-white); border-color: var(--c-gun); }
.btn--secondary:hover { background: var(--c-gun-light); border-color: var(--c-gun-light); color: var(--c-white); }

.btn--outline     { background: transparent; color: var(--c-gun); border-color: var(--c-gun); }
.btn--outline:hover { background: var(--c-gun); color: var(--c-white); }

.btn--outline-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--c-white); border-color: var(--c-white); }

.btn--sm { padding: .4rem 1rem; font-size: .76rem; }


/* ── 7. SECTIONS COMMUNES ───────────────────────────────────── */

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header--light { color: var(--c-white); }
.section-header--light h2 { color: var(--c-white); }

.section-label {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-laiton);
	margin-bottom: .5rem;
}
.section-desc { color: var(--c-text-muted); max-width: 500px; margin: .75rem auto 0; }
.section-footer { text-align: center; margin-top: 2.5rem; }


/* ── 8. HERO ────────────────────────────────────────────────── */

.hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	background: var(--c-gun);
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	background: url('../images/hero.jpg') center/cover no-repeat;
	opacity: .35;
}
.hero__content {
	position: relative;
	z-index: 1;
	color: var(--c-white);
	padding: 6rem 1.5rem;
}
.hero__eyebrow {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--c-laiton);
	margin-bottom: 1.25rem;
}
.hero__title {
	color: var(--c-white);
	margin-bottom: 1.25rem;
}
.hero__title span { color: var(--c-laiton); }
.hero__subtitle {
	font-size: 1.05rem;
	color: rgba(255,255,255,.75);
	line-height: 1.6;
	margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ── 9. À PROPOS ─────────────────────────────────────────────── */

.section-about { background: var(--c-bg); }
.section-about__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.section-about__text h2 { margin-bottom: 1rem; }
.section-about__text p { color: var(--c-text-muted); margin-bottom: 1rem; }
.section-about__text .btn { margin-top: .5rem; }
.section-about__img-placeholder {
	aspect-ratio: 4/3;
	background: var(--c-border);
	border-radius: var(--radius-md);
}


/* ── 10. GRILLE PRODUITS ────────────────────────────────────── */

.products-grid {
	display: grid;
	gap: 1.5rem;
}
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
	background: var(--c-white);
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.product-card__link { display: block; text-decoration: none; }
.product-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg); }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.product-card__badge {
	position: absolute;
	top: .5rem; left: .5rem;
	padding: .2rem .6rem;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 2px;
}
.product-card__badge--sale { background: var(--c-laiton); color: var(--c-gun); }

.product-card__body { padding: 1rem; }
.product-card__category { font-size: .72rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.product-card__title { font-size: .9rem; font-family: var(--font-body); font-weight: 600; color: var(--c-gun); margin-bottom: .5rem; line-height: 1.3; }
.product-card__price { font-weight: 700; color: var(--c-laiton); }
.product-card__price .woocommerce-Price-amount { font-size: 1rem; }

.product-card__footer { padding: .75rem 1rem; border-top: 1px solid var(--c-bg); }
.product-card__footer .button {
	display: block;
	width: 100%;
	text-align: center;
	padding: .5rem;
	background: transparent;
	border: 1px solid var(--c-gun);
	color: var(--c-gun);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-radius: var(--radius);
	transition: all var(--transition);
}
.product-card__footer .button:hover { background: var(--c-gun); color: var(--c-white); }


/* ── 11. OCCASIONS ──────────────────────────────────────────── */

.section-occasions { background: var(--c-gun); }
.section-occasions .section-header h2 { color: var(--c-white); }

.occasions-table {
	background: var(--c-white);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.occasions-table__header {
	display: grid;
	grid-template-columns: 1fr 120px 140px 120px 80px;
	gap: .5rem;
	padding: .75rem 1.25rem;
	background: var(--c-gun-light);
	color: var(--c-laiton);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.occasions-table__row {
	display: grid;
	grid-template-columns: 1fr 120px 140px 120px 80px;
	gap: .5rem;
	padding: .9rem 1.25rem;
	border-bottom: 1px solid var(--c-bg);
	align-items: center;
	transition: background var(--transition);
}
.occasions-table__row:last-child { border-bottom: none; }
.occasions-table__row:hover { background: var(--c-bg); }
.occasions-table__name a { font-weight: 600; color: var(--c-gun); }
.occasions-table__name a:hover { color: var(--c-laiton); }
.occasions-table__name small { display: block; font-size: .78rem; color: var(--c-text-muted); }
.occasions-table__price { font-weight: 700; color: var(--c-laiton); }

.badge--etat {
	display: inline-block;
	padding: .2rem .6rem;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	font-size: .72rem;
	border-radius: 2px;
	color: var(--c-text-muted);
}


/* ── 12. MARQUES ─────────────────────────────────────────────── */

.section-brands { background: var(--c-bg); }
.brands-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 1rem;
}
.brand-card {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition), box-shadow var(--transition);
	min-height: 70px;
}
.brand-card:hover { border-color: var(--c-laiton); box-shadow: 0 2px 8px rgba(201,168,76,.2); }
.brand-card img { max-height: 45px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .65; transition: filter var(--transition), opacity var(--transition); }
.brand-card:hover img { filter: none; opacity: 1; }
.brand-card__name { font-size: .78rem; font-weight: 700; color: var(--c-text-muted); text-align: center; letter-spacing: .04em; }


/* ── 13. RÉASSURANCE ─────────────────────────────────────────── */

.section-reassurance {
	background: var(--c-white);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
	padding: 2.5rem 0;
}
.reassurance-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.reassurance-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}
.reassurance-item__icon {
	flex-shrink: 0;
	width: 48px; height: 48px;
	background: var(--c-bg);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-laiton);
}
.reassurance-item__text strong {
	display: block;
	font-size: .88rem;
	font-weight: 700;
	color: var(--c-gun);
	margin-bottom: .2rem;
}
.reassurance-item__text span {
	font-size: .8rem;
	color: var(--c-text-muted);
	line-height: 1.4;
}


/* ── 14. CTA CONTACT ─────────────────────────────────────────── */

.section-contact-cta {
	background: var(--c-gun);
	padding: 4rem 0;
}
.section-contact-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.section-contact-cta__text h2 { color: var(--c-white); margin-bottom: .5rem; }
.section-contact-cta__text p  { color: rgba(255,255,255,.7); }
.section-contact-cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ── 15. FOOTER ──────────────────────────────────────────────── */

.site-footer { background: var(--c-gun); color: rgba(255,255,255,.65); }

.site-footer__main { padding: 3.5rem 0; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 3rem;
}
.site-footer__logo-text {
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--c-white);
	display: block;
	margin-bottom: 1rem;
}
.site-footer img { max-height: 48px; filter: brightness(0) invert(1) opacity(.8); }
.site-footer__tagline { font-size: .83rem; line-height: 1.6; margin: .75rem 0 1rem; }
.site-footer__badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-footer__badges span {
	font-size: .7rem;
	padding: .2rem .6rem;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 2px;
	color: rgba(255,255,255,.6);
	letter-spacing: .05em;
}
.site-footer__heading {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-laiton);
	margin-bottom: 1rem;
}
.site-footer__nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__nav a { font-size: .84rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.site-footer__nav a:hover { color: var(--c-laiton); }
.site-footer__address { font-style: normal; }
.site-footer__address p { font-size: .84rem; margin-bottom: .6rem; line-height: 1.5; }
.site-footer__address a { color: rgba(255,255,255,.7); }
.site-footer__address a:hover { color: var(--c-laiton); }
.site-footer__address strong { color: var(--c-white); }

.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 1.25rem 0;
}
.site-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.site-footer__bottom p { font-size: .78rem; }
.site-footer__legal-links { display: flex; gap: 1.25rem; }
.site-footer__legal-links a { font-size: .78rem; color: rgba(255,255,255,.5); }
.site-footer__legal-links a:hover { color: var(--c-laiton); }


/* ── 16. BREADCRUMB YOAST ───────────────────────────────────── */

.schubnel-breadcrumb {
	padding: .75rem 0;
	font-size: .8rem;
	color: var(--c-text-muted);
}
.schubnel-breadcrumb a { color: var(--c-text-muted); }
.schubnel-breadcrumb a:hover { color: var(--c-laiton); }
.schubnel-breadcrumb span[aria-current] { color: var(--c-gun); font-weight: 500; }


/* ── 17. PAGE CONTENT (pages standard) ─────────────────────── */

.page-content {
	padding: 3rem 1.5rem;
	max-width: 860px;
}
.entry-title { margin-bottom: 1.5rem; }
.entry-content { line-height: 1.75; color: var(--c-text); }
.entry-content h2, .entry-content h3 { margin: 2rem 0 .75rem; }
.entry-content p { margin-bottom: 1rem; }


/* ── 18. WOOCOMMERCE GLOBAL ─────────────────────────────────── */

/* Notice réglementaire fiche produit */
.product-regulation-notice {
	margin: 1rem 0;
	padding: .75rem 1rem;
	background: #fff8e8;
	border-left: 3px solid var(--c-laiton);
	font-size: .84rem;
}
.product-regulation-notice strong { display: block; margin-bottom: .3rem; }


/* ── 19. RESPONSIVE ─────────────────────────────────────────── */

@media ( max-width: 1100px ) {
	.brands-grid { grid-template-columns: repeat(6, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media ( max-width: 960px ) {
	/* Header mobile */
	.site-nav {
		position: fixed;
		top: 0; right: -100%;
		width: min(320px, 85vw);
		height: 100vh;
		background: var(--c-white);
		border-left: 1px solid var(--c-border);
		overflow-y: auto;
		z-index: 100;
		transition: right .3s ease;
		padding: 5rem 0 2rem;
	}
	.site-nav[aria-expanded="true"] { right: 0; }
	.nav-overlay { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { padding: .8rem 1.5rem; border-bottom: 1px solid var(--c-bg); font-size: .9rem; }
	.site-nav__list .sub-menu {
		position: static;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		box-shadow: none;
		border: none;
		border-top: 1px solid var(--c-bg);
		display: none;
	}
	.site-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
	.site-nav__burger { display: flex; }

	/* Grilles */
	.products-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.section-about__inner { grid-template-columns: 1fr; }
	.reassurance-list { grid-template-columns: repeat(2, 1fr); }
	.section-contact-cta__inner { flex-direction: column; text-align: center; }
}

@media ( max-width: 680px ) {
	section { padding: 2.5rem 0; }
	.products-grid--4 { grid-template-columns: 1fr; }
	.brands-grid { grid-template-columns: repeat(3, 1fr); }
	.reassurance-list { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.occasions-table__header { display: none; }
	.occasions-table__row { grid-template-columns: 1fr auto; }
	.occasions-table__etat, .occasions-table__cat { display: none; }
	.hero { min-height: 70vh; }
}

@media ( prefers-reduced-motion: reduce ) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
