/*
 * webaben.com â Refonte Â« Atelier Â»
 * ÃpurÃ© Â· chic Â· maker
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
	--wb-paper: #f4f1ec;
	--wb-paper-deep: #ebe6de;
	--wb-ink: #1a1917;
	--wb-ink-soft: #4a4743;
	--wb-ink-muted: #7a756d;
	--wb-line: rgba(26, 25, 23, 0.1);
	--wb-line-strong: rgba(26, 25, 23, 0.18);
	--wb-surface: #faf8f5;
	--wb-accent: #8b6914;
	--wb-accent-soft: #c4a035;
	--wb-sidebar: 272px;
	--wb-radius: 2px;
	--wb-radius-lg: 4px;
	--wb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--wb-shadow: 0 1px 0 var(--wb-line), 0 12px 40px rgba(26, 25, 23, 0.06);
	--wb-shadow-hover: 0 1px 0 var(--wb-line), 0 20px 50px rgba(26, 25, 23, 0.1);
}

/* âââ Base âââ */
html {
	scroll-behavior: smooth;
}

body {
	background: var(--wb-paper) !important;
	color: var(--wb-ink-soft);
	font-family: 'DM Sans', system-ui, sans-serif !important;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body a {
	color: var(--wb-ink);
	text-decoration: none;
	transition: color 0.25s var(--wb-ease);
}

body a:hover {
	color: var(--wb-accent);
}

::selection {
	background: var(--wb-ink);
	color: var(--wb-surface);
}

/* âââ Sidebar : colonne atelier âââ */
.sidebar {
	width: var(--wb-sidebar) !important;
	padding: 56px 40px 48px !important;
	font-size: 0.8rem;
	z-index: 10;
}

.sidebar:before {
	width: var(--wb-sidebar) !important;
	background: var(--wb-surface) !important;
	border-right: 1px solid var(--wb-line);
	box-shadow: none !important;
}

.sidebar,
.sidebar a {
	color: var(--wb-ink-soft);
}

/* Logo / titre */
.sidebar .blog-title {
	margin: 0 0 0.5rem;
	padding: 0;
	border: none !important;
}

.sidebar .blog-title a {
	display: block;
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 2.35rem !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--wb-ink) !important;
	text-transform: lowercase;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.sidebar .blog-title a::first-letter {
	text-transform: uppercase;
}

.sidebar .blog-title a:hover {
	color: var(--wb-accent) !important;
}

/* Tagline sous le titre */
.sidebar .blog-title::after {
	content: 'CNC Â· photo Â· code Â· impression 3D';
	display: block;
	margin-top: 0.65rem;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wb-ink-muted);
	line-height: 1.5;
}

/* Navigation projets */
.sidebar .main-menu {
	margin: 2.75rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wb-line);
	padding-top: 1.75rem;
}

.sidebar .main-menu::before {
	content: 'Projets';
	display: block;
	margin-bottom: 1rem;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wb-ink-muted);
}

.sidebar .main-menu li {
	margin: 0 0 0.15rem;
}

.sidebar .main-menu a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--wb-ink-soft) !important;
	border-radius: 0;
	border-left: 2px solid transparent;
	padding-left: 0;
	transition: color 0.25s var(--wb-ease), border-color 0.25s var(--wb-ease), padding-left 0.25s var(--wb-ease);
}

.sidebar .main-menu a:hover,
.sidebar .main-menu .current-menu-item > a,
.sidebar .main-menu .current-cat > a {
	color: var(--wb-ink) !important;
	background: none !important;
	border-left-color: var(--wb-accent-soft);
	padding-left: 0.75rem;
}

/* Masquer le bruit : widgets archives, catÃ©gories, mÃ©ta */
.sidebar .widgets .widget_search,
.sidebar .widgets .widget_archive,
.sidebar .widgets .widget_categories,
.sidebar .widgets .widget_meta {
	display: none !important;
}

.sidebar .widgets {
	margin-top: 0;
	padding: 0;
	border: none;
}

/* CrÃ©dits discrets */
.sidebar .credits {
	margin-top: auto;
	padding-top: 2rem;
	margin-top: 3rem;
	border-top: 1px solid var(--wb-line);
	font-size: 0.65rem;
	letter-spacing: 0.04em;
	color: var(--wb-ink-muted) !important;
	opacity: 1;
	line-height: 1.7;
}

.sidebar .credits a {
	color: var(--wb-ink-muted) !important;
}

.sidebar .credits a:hover {
	color: var(--wb-accent) !important;
}

/* âââ Zone principale âââ */
.wrapper,
.wrapper.section {
	margin-left: var(--wb-sidebar) !important;
}

.content {
	width: 100% !important;
	max-width: 1120px !important;
	margin: 0 auto !important;
	padding: 56px 48px 100px !important;
}

/* Hero accueil */
body.home .content::before {
	content: 'Journal de projets â bricolage, machines, logiciel libre et restauration.';
	display: block;
	max-width: 32em;
	margin: 0 0 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--wb-line);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.65rem;
	font-weight: 500;
	font-style: italic;
	line-height: 1.45;
	color: var(--wb-ink);
	letter-spacing: -0.01em;
}

/* En-tÃªtes archive */
.archive-header,
.page-header {
	margin: 0 0 2.5rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--wb-line);
}

.archive-header h1,
.page-header h1 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--wb-ink);
}

/* âââ Grille d'articles âââ */
.posts {
	margin: 0 -12px;
}

.posts .post-container {
	width: 33.333%;
	padding: 12px;
}

.posts .post-container > div {
	background: var(--wb-surface);
	border: 1px solid var(--wb-line);
	border-radius: var(--wb-radius-lg);
	box-shadow: var(--wb-shadow);
	overflow: hidden;
	transition: transform 0.45s var(--wb-ease), box-shadow 0.45s var(--wb-ease), border-color 0.35s var(--wb-ease);
}

.posts .post-container > div:hover {
	transform: translateY(-6px);
	box-shadow: var(--wb-shadow-hover);
	border-color: var(--wb-line-strong);
}

.posts .featured-media {
	position: relative;
	overflow: hidden;
	background: var(--wb-paper-deep);
	aspect-ratio: 4 / 3;
}

.posts .featured-media a {
	display: block;
	height: 100%;
}

.posts .featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--wb-ease), opacity 0.4s ease;
}

.posts .post-container:hover .featured-media img {
	transform: scale(1.04);
}

.posts .post-header {
	padding: 1.35rem 1.4rem 1.5rem;
	margin: 0 !important;
}

.posts .featured-media + .post-header {
	padding-top: 1.35rem;
}

.posts .post-title {
	margin: 0 0 0.5rem;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.posts .post-title a {
	color: var(--wb-ink) !important;
}

.posts .post-title a:hover {
	color: var(--wb-accent) !important;
}

.posts .post-excerpt {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--wb-ink-muted);
	font-style: normal !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* âââ Article seul âââ */
.single .content {
	max-width: 680px !important;
	padding-top: 64px !important;
}

.single .post-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--wb-ink);
	margin-bottom: 1.5rem;
}

.single .post-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--wb-ink-soft);
}

.single .post-content h2 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.65rem;
	font-weight: 600;
	margin: 2.5rem 0 0.85rem;
	color: var(--wb-ink);
	letter-spacing: -0.02em;
}

.single .post-content h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 1.75rem 0 0.5rem;
	color: var(--wb-ink);
}

.single .post-content p {
	margin-bottom: 1.25rem;
}

.single .post-content a {
	color: var(--wb-accent);
	border-bottom: 1px solid rgba(139, 105, 20, 0.25);
}

.single .post-content a:hover {
	border-bottom-color: var(--wb-accent);
}

.single .post-content img {
	border-radius: var(--wb-radius-lg);
	border: 1px solid var(--wb-line);
	margin: 1.5rem 0;
}

.single .post-content blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 2px solid var(--wb-accent-soft);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.25rem;
	font-style: italic;
	color: var(--wb-ink-soft);
}

.post-content pre,
.post-content code {
	font-family: 'JetBrains Mono', ui-monospace, monospace !important;
	font-size: 0.86em;
}

.post-content pre {
	background: var(--wb-ink) !important;
	color: #e8e6e3 !important;
	border-radius: var(--wb-radius-lg);
	padding: 1.25rem 1.5rem !important;
	border: none;
	overflow-x: auto;
}

/* MÃ©ta article */
.posts-meta,
.single .posts-meta {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wb-ink-muted);
}

.posts-meta a {
	color: var(--wb-ink-muted) !important;
}

.posts-meta a:hover {
	color: var(--wb-accent) !important;
}

/* âââ Pagination âââ */
.archive-nav {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wb-line);
}

.archive-nav a {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wb-ink) !important;
	background: var(--wb-surface);
	border: 1px solid var(--wb-line);
	border-radius: 0;
	box-shadow: none;
	transition: background 0.25s var(--wb-ease), border-color 0.25s var(--wb-ease);
}

.archive-nav a:hover {
	background: var(--wb-ink);
	color: var(--wb-surface) !important;
	border-color: var(--wb-ink);
}

/* âââ Commentaires âââ */
.comments-title,
.comment-reply-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--wb-ink);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	border: 1px solid var(--wb-line) !important;
	border-radius: var(--wb-radius) !important;
	background: var(--wb-surface) !important;
	font-family: 'DM Sans', sans-serif !important;
}

.comment-form input[type="submit"] {
	background: var(--wb-ink) !important;
	color: var(--wb-surface) !important;
	border: none !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.75rem !important;
	padding: 0.85rem 1.75rem !important;
}

/* âââ Mobile menu toggle âââ */
.nav-toggle {
	display: none;
}

/* âââ Admin bar : ne pas casser le layout âââ */
body.admin-bar .sidebar {
	padding-top: 88px !important;
}

/* âââ Responsive âââ */
@media (max-width: 1100px) {
	.posts .post-container {
		width: 50%;
	}
}

@media (max-width: 860px) {
	.sidebar {
		position: relative !important;
		width: 100% !important;
		padding: 32px 24px 28px !important;
	}

	.sidebar:before {
		width: 100% !important;
		position: absolute;
		height: 100%;
		border-right: none;
		border-bottom: 1px solid var(--wb-line);
	}

	.wrapper,
	.wrapper.section {
		margin-left: 0 !important;
	}

	.content {
		padding: 40px 24px 72px !important;
	}

	body.home .content::before {
		font-size: 1.35rem;
		margin-bottom: 2rem;
	}

	.posts .post-container {
		width: 100%;
		padding: 10px 0;
	}

	.single .content {
		padding-top: 40px !important;
	}
}

@media (max-width: 480px) {
	.sidebar .blog-title a {
		font-size: 2rem !important;
	}
}


/* Atelier polish pass */
:root { --wb-focus: rgba(139, 105, 20, 0.35); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(26, 25, 23, 0.028) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  opacity: 0.23;
  z-index: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wb-focus);
  outline-offset: 2px;
}
.content { position: relative; z-index: 1; }
.posts .featured-media img {
  filter: saturate(0.92) contrast(0.98);
  transition: transform 0.6s var(--wb-ease), opacity 0.4s ease, filter 0.45s ease;
}
.posts .post-container:hover .featured-media img { filter: saturate(1) contrast(1.02); }
.posts .post-title a {
  background-image: linear-gradient(var(--wb-accent-soft), var(--wb-accent-soft));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 0.25s var(--wb-ease), background-size 0.32s var(--wb-ease);
}
.posts .post-title a:hover { background-size: 100% 1px; }
.archive-nav a {
  transform: translateY(0);
  transition: background 0.25s var(--wb-ease), border-color 0.25s var(--wb-ease), transform 0.25s var(--wb-ease);
}
.archive-nav a:hover { transform: translateY(-2px); }
.comment-form input[type="submit"] {
  transition: transform 0.2s var(--wb-ease), box-shadow 0.2s var(--wb-ease), background 0.2s var(--wb-ease);
}
.comment-form input[type="submit"]:hover {
  background: #272521 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 25, 23, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Atelier bold pass v2 */
:root {
	--wb-sidebar: 304px;
	--wb-accent: #7a5a10;
	--wb-accent-soft: #b88d2c;
	--wb-shadow: 0 1px 0 var(--wb-line), 0 18px 44px rgba(26, 25, 23, 0.09);
	--wb-shadow-hover: 0 1px 0 var(--wb-line), 0 28px 60px rgba(26, 25, 23, 0.14);
}

.sidebar:before {
	background: linear-gradient(180deg, #fcfaf6 0%, #f7f3ed 100%) !important;
}

.sidebar .blog-title a {
	font-size: 2.7rem !important;
	letter-spacing: -0.03em;
}

.sidebar .blog-title::after {
	font-size: 0.62rem;
	letter-spacing: 0.2em;
}

.sidebar .main-menu {
	counter-reset: wb-nav;
}

.sidebar .main-menu li {
	counter-increment: wb-nav;
}

.sidebar .main-menu a::before {
	content: counter(wb-nav, decimal-leading-zero);
	display: inline-block;
	min-width: 1.8em;
	margin-right: 0.7rem;
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	color: var(--wb-ink-muted);
}

.content {
	max-width: 1240px !important;
	padding-top: 62px !important;
}

body.home .content::before {
	font-size: 2.05rem;
	line-height: 1.3;
	max-width: 30em;
	margin-bottom: 3.4rem;
	padding-bottom: 2.2rem;
}

.posts {
	margin: 0 -14px;
}

.posts .post-container {
	padding: 14px;
}

.posts .post-container > div {
	border-radius: 10px;
	border: 1px solid rgba(26, 25, 23, 0.08);
}

.posts .post-container > div::before {
	content: '';
	display: block;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg, rgba(184, 141, 44, 0.85), rgba(184, 141, 44, 0));
	opacity: 0.7;
}

.posts .post-title {
	font-size: 1.52rem;
	line-height: 1.2;
}

.posts .post-header {
	padding: 1.45rem 1.45rem 1.65rem;
}

.posts .post-excerpt {
	font-size: 0.9rem;
	line-height: 1.64;
}

.archive-nav {
	margin-top: 3.8rem;
}

.archive-nav a {
	padding: 0.8rem 1.7rem;
	letter-spacing: 0.1em;
}

.single .content {
	max-width: 760px !important;
}

.single .post-title {
	font-size: clamp(2.3rem, 5.4vw, 3.25rem);
	line-height: 1.06;
	margin-bottom: 1.9rem;
}

@media (max-width: 1100px) {
	:root {
		--wb-sidebar: 280px;
	}
}

@media (max-width: 860px) {
	.sidebar .blog-title a {
		font-size: 2.25rem !important;
	}

	body.home .content::before {
		font-size: 1.55rem;
		margin-bottom: 2.4rem;
	}

	.posts .post-container {
		padding: 10px 0;
	}
}

/* Atelier luxe chaleureuse v3 */
:root {
	--wb-paper: #f6f1e8;
	--wb-paper-deep: #eee4d3;
	--wb-surface: #fdf9f2;
	--wb-ink: #221d18;
	--wb-ink-soft: #52483d;
	--wb-ink-muted: #8a7a68;
	--wb-line: rgba(49, 36, 24, 0.12);
	--wb-line-strong: rgba(49, 36, 24, 0.2);
	--wb-accent: #8c5f25;
	--wb-accent-soft: #c18c42;
	--wb-sidebar: 288px;
	--wb-shadow: 0 1px 0 var(--wb-line), 0 22px 48px rgba(44, 32, 22, 0.09);
	--wb-shadow-hover: 0 1px 0 var(--wb-line), 0 30px 62px rgba(44, 32, 22, 0.13);
}

body::before {
	background-image: radial-gradient(rgba(44, 32, 22, 0.035) 0.5px, transparent 0.5px);
	background-size: 3px 3px;
	opacity: 0.2;
}

.sidebar:before {
	background: linear-gradient(180deg, #fffdf9 0%, #f8f0e4 100%) !important;
}

.sidebar .main-menu,
.sidebar .main-menu li {
	counter-reset: none !important;
	counter-increment: none !important;
}

.sidebar .main-menu a::before {
	content: none !important;
	display: none !important;
}

.sidebar .blog-title a {
	font-size: 2.55rem !important;
}

.posts {
	margin: 0 -10px;
}

.posts .post-container {
	padding: 10px;
}

.posts .post-container > div {
	border-radius: 14px;
	border-color: rgba(49, 36, 24, 0.09);
	background: linear-gradient(180deg, #fffcf7 0%, #fbf5eb 100%);
}

.posts .post-container > div::before {
	content: none !important;
	display: none !important;
}

.posts .post-title {
	font-size: 1.46rem;
}

.posts .post-excerpt {
	font-size: 0.88rem;
	color: #7f6f5d;
}

.single .post-title {
	font-size: clamp(2.2rem, 5.2vw, 3.05rem);
}

body.home .content::before { content: none !important; display: none !important; }

.sidebar .blog-title::after { content: none !important; display: none !important; }

/* Card polish requested */
.posts .post-container > div {
	border: 1px solid transparent;
	background:
		linear-gradient(#fdf9f2, #fdf9f2) padding-box,
		linear-gradient(135deg, rgba(193, 140, 66, 0.45) 0%, rgba(34, 29, 24, 0.18) 55%, rgba(193, 140, 66, 0.32) 100%) border-box;
}

.posts .featured-media {
	background: #fff;
}

.posts .featured-media img {
	background: #fff;
}

.posts .post-header {
	border-top: 1px solid rgba(49, 36, 24, 0.11);
}

.posts .post-title a::before {
	content: 'â';
	display: inline-block;
	margin-right: 0.42rem;
	font-size: 0.8em;
	color: var(--wb-accent);
	transform: translateY(-0.02em);
}

.posts .post-title a::before { content: ''; display: inline-block; width: 0.46rem; height: 0.46rem; margin-right: 0.5rem; background: linear-gradient(135deg, var(--wb-accent-soft), var(--wb-accent)); border: 1px solid rgba(34, 29, 24, 0.35); transform: translateY(-0.03em) rotate(45deg); border-radius: 1px; }

.posts .post-container > div {
	position: relative;
	overflow: hidden;
}

.posts .post-container > div::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	background: linear-gradient(90deg, rgba(193, 140, 66, 0.98) 0%, rgba(218, 175, 104, 0.95) 48%, rgba(163, 115, 52, 0.96) 100%);
	z-index: 3;
}

/* Final polish: smooth card outline + consistent vertical rhythm */
.posts .post-container > div {
	border: 1px solid rgba(187, 147, 79, 0.55) !important;
	background: #fdf9f2 !important;
}

.posts .post-header {
	padding: 1.3rem 1.35rem 1.45rem !important;
}

.posts .post-title {
	min-height: 2.65em;
}

.posts .post-excerpt {
	min-height: 5.1em;
}

/* Final fix: remove uneven masonry gaps by equalizing card text blocks */
.posts .post-container > div {
	display: flex;
	flex-direction: column;
}

.posts .post-header {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.posts .post-title {
	height: 2.7em;
	overflow: hidden;
}

.posts .post-excerpt {
	height: 4.95em;
	overflow: hidden;
}

/* Shadow + gold border tuning */
.posts .post-container > div {
	border-width: 2px !important;
	box-shadow: 0 2px 5px rgba(34, 29, 24, 0.14) !important;
}

.posts .post-container > div:hover {
	box-shadow: 0 3px 5px rgba(34, 29, 24, 0.18) !important;
	transform: translateY(-2px) !important;
}

/* Typography clamp tuning: title 2 lines centered, excerpt 3 lines clean */
.posts .post-title {
	height: 2.8em !important;
	display: flex;
	align-items: center;
}

.posts .post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.posts .post-excerpt {
	height: auto !important;
	min-height: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}