/* ===========================================================================
   BLEUM ATELIER — global.css
   Design sobre & minéral : beaucoup de blanc, tons poudrés, laiton en accent.
   Palette calée sur l'Instagram de Charly + peintures Fusion Mineral Paint.
   Tokens centralisés ici ; les pages ajoutent page-*.css par-dessus.
   =========================================================================== */

:root {
	/* Neutres chauds (le fond « mur beige / béton » de ses photos) */
	--bg:        #f7f4ee;   /* fond de page, os chaud */
	--surface:   #fffdf9;   /* cartes, blocs */
	--surface-2: #efe9de;   /* aplats discrets */
	--ink:       #201e1a;   /* presque-noir chaud (son logo) */
	--muted:     #6d665a;   /* texte secondaire */
	--faint:     #948b7b;   /* légendes */
	--line:      #e4ddce;   /* filets */

	/* Accent — laiton (sa quincaillerie) */
	--brass:     #977c3c;
	--brass-d:   #7a6330;

	/* Teintes « meubles » — accents discrets (peintures Fusion) */
	--sage:      #7c8a68;
	--slate:     #52697a;
	--terra:     #b0684d;
	--bordeaux:  #82464a;

	/* Typo */
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-sans:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Rythme */
	--wrap:      1160px;
	--gutter:    clamp(18px, 5vw, 48px);
	--section-y: clamp(56px, 9vw, 120px);
	--radius:    4px;   /* sobriété : angles à peine adoucis */
}

/* ---- reset léger ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 380;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- typographie ---- */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0; max-width: 66ch; }

.eyebrow {
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brass-d);
	margin: 0;
}

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-title { margin-bottom: clamp(28px, 4vw, 52px); }

/* ---- liens & boutons ---- */
.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5em;
	font-weight: 600; font-size: 0.95rem;
	color: var(--brass-d);
	border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
	padding-bottom: 2px; transition: gap .2s ease, border-color .2s ease;
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover { gap: 0.75em; border-color: var(--brass); }
.link-arrow:hover::after { transform: translateX(3px); }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.85em 1.6em; border-radius: var(--radius);
	font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
	border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brass-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- header ---- */
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg);
	padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.1) blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }

.brand { display: inline-flex; align-items: baseline; gap: 0.4em; }
.brand-mark {
	font-family: var(--font-sans); font-weight: 800; font-size: 1.5rem;
	letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.brand-sub {
	font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600;
	letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}

.site-nav .nav-list {
	display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
	list-style: none; margin: 0; padding: 0;
}
.site-nav a {
	font-size: 0.95rem; font-weight: 500; color: var(--ink);
	padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-nav a:hover { border-color: var(--brass); }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }

/* ---- footer ---- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: var(--section-y); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(44px, 6vw, 72px); }
.footer-tag { color: var(--muted); font-size: 0.95rem; margin-top: 12px; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a { color: var(--muted); font-size: 0.95rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--ink); }
.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-loc { color: var(--faint); font-size: 0.85rem; margin-top: 16px; }
.footer-legal {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-block: 20px; border-top: 1px solid var(--line);
	color: var(--faint); font-size: 0.82rem;
}
.footer-legal-links { display: flex; gap: 18px; }

/* ---- blog (index.php) ---- */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.blog-card { display: flex; flex-direction: column; gap: 12px; }
.blog-thumb img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.blog-title { font-size: 1.35rem; }
.blog-excerpt { color: var(--muted); font-size: 0.98rem; }

/* ---- page générique (page.php) ---- */
.page-content { max-width: 760px; }
.page-head { margin-bottom: clamp(24px, 4vw, 44px); }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-body { display: flex; flex-direction: column; gap: 1.1em; color: var(--ink); }
.page-body p { color: var(--muted); }
.page-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 0.6em; }
.page-body h3 { margin-top: 0.4em; }
.page-body ul, .page-body ol { color: var(--muted); padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.4em; }
.page-body img { border-radius: var(--radius); }
.page-body a { color: var(--brass-d); border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.page-empty { color: var(--faint); font-style: italic; }

/* ---- WooCommerce : ajustements sobres (surcharge Astra) ---- */
.woocommerce ul.products li.product .price { color: var(--ink); font-weight: 600; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
	background: var(--ink); color: var(--bg); border-radius: var(--radius);
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brass-d); }

/* Largeur du contenu boutique (CSS Astra désactivé → on recadre comme le reste du site) */
.ast-woocommerce-container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- bandeau de filtres boutique ---- */
.bleum-filters {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 0;
	margin: 0 0 36px; padding: 20px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filter-group { display: flex; align-items: center; gap: 12px; padding: 2px 26px; border-left: 1px solid var(--line); }
.filter-group:first-child { border-left: 0; padding-left: 0; }
.filter-label {
	font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--faint); white-space: nowrap;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
	font-size: 0.85rem; padding: 5px 13px; border-radius: 20px;
	border: 1px solid var(--line); background: var(--surface); color: var(--muted);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { border-color: var(--brass); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Type (catégories) — visuellement plus fort que les attributs */
.filter-group--type .filter-label { color: var(--ink); }
.filter-group--type .filter-chip { font-size: 0.95rem; font-weight: 600; padding: 7px 16px; color: var(--ink); border-color: var(--muted); }
.filter-group--type .filter-chip:hover { border-color: var(--brass-d); }
.filter-group--type .filter-chip.is-active { background: var(--brass-d); border-color: var(--brass-d); color: #fff; }

.filter-reset { font-size: 0.8rem; font-weight: 600; color: var(--brass-d); border-bottom: 1px solid transparent; margin-left: 8px; }
.filter-reset:hover { border-color: var(--brass); }
@media (max-width: 640px) {
	.bleum-filters { gap: 14px 0; }
	.filter-group { width: 100%; align-items: flex-start; flex-direction: column; gap: 6px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
	.filter-group:first-child { border-top: 0; padding-top: 0; }
}

/* ---- accessibilité & motion ---- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- responsive : nav mobile ---- */
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: 74px 0 auto 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.site-nav.is-open { max-height: 80vh; }
	.site-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; }
	.site-nav .nav-list li { width: 100%; border-bottom: 1px solid var(--line); }
	.site-nav a { display: block; padding: 14px 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
