/*
Theme Name: VB Atelier
Template: astra
Description: Habillage éditorial de Vital Bonsai.
Version: 1.0.2
*/

:root {
	--vb-bg: #f4f6f1;
	--vb-surface: #fcfdfa;
	--vb-ink: #1f2a22;
	--vb-muted: #5a685e;
	--vb-line: #dde4da;
	--vb-vert: #2e6b45;
	--vb-vert-fonce: #224f33;
	--vb-nuit: #152119;
	--vb-nuit-2: #1c2b21;
	--vb-r: 14px;
	--vb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
	background: var(--vb-bg);
	color: var(--vb-ink);
	font-family: 'Figtree', sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4,
.site-title,
.entry-title {
	font-family: 'Shippori Mincho', serif;
	color: var(--vb-ink);
	letter-spacing: -0.01em;
}

a { color: var(--vb-vert); }
a:hover { color: var(--vb-vert-fonce); }

::selection { background: rgba(46, 107, 69, 0.18); }

.ast-primary-header-bar {
	background: rgba(244, 246, 241, 0.86);
	backdrop-filter: blur(9px);
	border-bottom: 1px solid var(--vb-line);
}
.site-header { position: sticky; top: 0; z-index: 40; }
.site-title { font-size: 1.45rem; font-weight: 700; }
.site-title a, .site-title a:hover, .site-title a:focus { color: var(--vb-ink); }
.site-description { color: var(--vb-muted); }
.main-header-menu a {
	font-weight: 500;
	font-size: 0.98rem;
	color: var(--vb-ink);
}
.main-header-menu a:hover,
.main-header-menu .current-menu-item > a { color: var(--vb-vert); }

.vb-btn {
	display: inline-block;
	background: var(--vb-vert);
	color: #f7faf5;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.8em 1.7em;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.25s var(--vb-ease), transform 0.25s var(--vb-ease), box-shadow 0.25s var(--vb-ease);
	box-shadow: 0 10px 24px -14px rgba(34, 79, 51, 0.55);
}
.vb-btn:hover {
	background: var(--vb-vert-fonce);
	color: #f7faf5;
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -14px rgba(34, 79, 51, 0.6);
}
.vb-btn:active { transform: translateY(0) scale(0.98); }

.vb-lien {
	color: var(--vb-vert);
	font-weight: 600;
	text-decoration: none;
	background-image: linear-gradient(var(--vb-vert), var(--vb-vert));
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	padding-bottom: 3px;
	transition: background-size 0.3s var(--vb-ease);
}
.vb-lien:hover { background-size: 100% 2px; }

.home.blog #content .ast-container,
.archive.category #content .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	display: block;
}

.vb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px;
}

.vb-hero {
	display: grid;
	grid-template-columns: 6fr 5fr;
	gap: 56px;
	align-items: center;
	padding: 64px 0 88px;
}
.vb-hero-texte h1 {
	font-size: clamp(2.3rem, 4.6vw, 3.6rem);
	font-weight: 600;
	line-height: 1.12;
	margin-bottom: 0.5em;
}
.vb-hero-texte h1 em {
	font-style: italic;
	color: var(--vb-vert);
	line-height: 1.1;
	padding-bottom: 4px;
	display: inline-block;
}
.vb-hero-texte p {
	font-size: 1.15rem;
	color: var(--vb-muted);
	max-width: 30em;
	margin-bottom: 1.6em;
}
.vb-hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.vb-hero-visuel { position: relative; }
.vb-hero-visuel img {
	width: 100%;
	height: auto;
	border-radius: var(--vb-r);
	display: block;
	position: relative;
	z-index: 1;
}
.vb-hero-visuel::before {
	content: "";
	position: absolute;
	inset: -18px 18px 18px -18px;
	border: 1.5px solid var(--vb-vert);
	border-radius: var(--vb-r);
	opacity: 0.35;
}
.vb-hero-visuel::after {
	content: "";
	position: absolute;
	right: -30px;
	bottom: -30px;
	width: 45%;
	height: 45%;
	background: radial-gradient(closest-side, rgba(46, 107, 69, 0.22), transparent);
	z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.vb-hero-texte > * {
		opacity: 0;
		transform: translateY(18px);
		animation: vb-lever 0.9s var(--vb-ease) forwards;
	}
	.vb-hero-texte p { animation-delay: 0.12s; }
	.vb-hero-actions { animation-delay: 0.22s; }
	.vb-hero-visuel {
		opacity: 0;
		transform: translateY(24px) scale(0.985);
		animation: vb-lever 1.1s 0.15s var(--vb-ease) forwards;
	}
}
@keyframes vb-lever {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.vb-section { padding: 30px 0 72px; }
.vb-section-titre {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	font-weight: 600;
	margin-bottom: 1.4em;
}

.vb-tuiles {
	display: grid;
	grid-template-columns: 1.55fr 1fr 1fr;
	grid-auto-rows: 240px;
	gap: 18px;
}
.vb-tuile {
	position: relative;
	border-radius: var(--vb-r);
	overflow: hidden;
	text-decoration: none;
	display: block;
	transform: translateY(0);
	transition: transform 0.35s var(--vb-ease), box-shadow 0.35s var(--vb-ease);
	box-shadow: 0 1px 2px rgba(31, 42, 34, 0.06);
	background: linear-gradient(150deg, var(--vb-vert-fonce), var(--vb-nuit));
}
.vb-tuile:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 40px -20px rgba(21, 33, 25, 0.45);
}
.vb-tuile--une { grid-row: span 2; }
.vb-tuile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--vb-ease);
}
.vb-tuile:hover img { transform: scale(1.045); }
.vb-tuile-fond {
	position: absolute;
	inset: 0;
	background: linear-gradient(185deg, rgba(21, 33, 25, 0) 34%, rgba(21, 33, 25, 0.82) 100%);
	z-index: 1;
}
.vb-tuile-corps {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 22px 24px;
	color: #f2f6ef;
}
.vb-tuile-corps h3 {
	color: #fdfef9;
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 4px;
}
.vb-tuile-corps p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(242, 246, 239, 0.85);
	max-width: 34em;
}
.vb-tuile--une .vb-tuile-corps h3 { font-size: 1.7rem; }

.vb-articles { border-top: 1px solid var(--vb-line); }
.vb-une {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 44px;
	align-items: center;
	margin-bottom: 28px;
}
.vb-une-img { border-radius: var(--vb-r); overflow: hidden; display: block; }
.vb-une-img img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--vb-ease); }
.vb-une-img:hover img { transform: scale(1.04); }
.vb-une-corps .vb-cat {
	color: var(--vb-vert);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}
.vb-une-corps h3 { font-size: 1.75rem; font-weight: 600; margin: 0.35em 0 0.4em; line-height: 1.25; }
.vb-une-corps h3 a { color: var(--vb-ink); text-decoration: none; }
.vb-une-corps h3 a:hover { color: var(--vb-vert); }
.vb-une-corps p { color: var(--vb-muted); margin-bottom: 0.9em; }
.vb-une-corps time { color: var(--vb-muted); font-size: 0.88rem; }

.vb-fil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vb-fil-item {
	background: var(--vb-surface);
	border: 1px solid var(--vb-line);
	border-radius: var(--vb-r);
	padding: 20px 22px;
	transition: transform 0.3s var(--vb-ease), box-shadow 0.3s var(--vb-ease);
}
.vb-fil-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 34px -22px rgba(21, 33, 25, 0.4);
}
.vb-fil-item .vb-cat { color: var(--vb-vert); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.vb-fil-item h4 { font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin: 0.4em 0; }
.vb-fil-item h4 a { color: var(--vb-ink); text-decoration: none; }
.vb-fil-item h4 a:hover { color: var(--vb-vert); }
.vb-fil-item time { color: var(--vb-muted); font-size: 0.85rem; }

.vb-marc {
	background: linear-gradient(160deg, var(--vb-nuit) 0%, var(--vb-nuit-2) 100%);
	color: #e8efe6;
	padding: 84px 0;
	margin-top: 40px;
}
.vb-marc-grille {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 60px;
	align-items: center;
}
.vb-marc-grille--texte { grid-template-columns: 1fr; max-width: 46em; }
.vb-marc-photo img {
	border-radius: var(--vb-r);
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.vb-marc h2 { color: #f6faf3; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 0.55em; }
.vb-marc p { color: rgba(232, 239, 230, 0.82); font-size: 1.08rem; max-width: 36em; margin-bottom: 1.3em; }
.vb-marc .vb-lien { color: #8fc7a4; background-image: linear-gradient(#8fc7a4, #8fc7a4); }

.vb-hub-tete { padding: 58px 0 34px; }
.vb-hub-tete .vb-cat-nom {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	margin-bottom: 0.3em;
}
.vb-hub-tete p { color: var(--vb-muted); font-size: 1.1rem; max-width: 46em; }
.vb-hub-grille {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
	padding-bottom: 70px;
}
.vb-carte {
	background: var(--vb-surface);
	border: 1px solid var(--vb-line);
	border-radius: var(--vb-r);
	overflow: hidden;
	transition: transform 0.3s var(--vb-ease), box-shadow 0.3s var(--vb-ease);
}
.vb-carte:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 38px -22px rgba(21, 33, 25, 0.4);
}
.vb-carte-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vb-carte-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--vb-ease); }
.vb-carte:hover .vb-carte-img img { transform: scale(1.05); }
.vb-carte-corps { padding: 22px 24px 24px; }
.vb-carte-corps h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.4em; }
.vb-carte-corps h2 a { color: var(--vb-ink); text-decoration: none; }
.vb-carte-corps h2 a:hover { color: var(--vb-vert); }
.vb-carte-corps p { color: var(--vb-muted); font-size: 0.97rem; margin-bottom: 0.6em; }
.vb-carte-corps time { color: var(--vb-muted); font-size: 0.85rem; }

.vb-pagination { display: flex; gap: 10px; justify-content: center; padding-bottom: 70px; }
.vb-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	text-align: center;
	padding: 0.5em 0.9em;
	border-radius: 999px;
	border: 1px solid var(--vb-line);
	background: var(--vb-surface);
	color: var(--vb-ink);
	text-decoration: none;
	font-weight: 500;
}
.vb-pagination .page-numbers.current,
.vb-pagination .page-numbers:hover { background: var(--vb-vert); border-color: var(--vb-vert); color: #f7faf5; }

.single-post .entry-content h2 { font-size: 1.65rem; margin-top: 1.6em; }
.single-post .entry-content h3 { font-size: 1.3rem; margin-top: 1.3em; }
.single-post .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.single-post .entry-content img { border-radius: var(--vb-r); }
.single-post .entry-content blockquote {
	border-left: 3px solid var(--vb-vert);
	background: var(--vb-surface);
	border-radius: 0 var(--vb-r) var(--vb-r) 0;
	padding: 1em 1.4em;
	color: var(--vb-muted);
	font-style: italic;
}
.ast-author-box, .ast-single-post-navigation-wrapper { border-radius: var(--vb-r); }

.vb-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--vb-ease), transform 0.8s var(--vb-ease);
	transition-delay: var(--vb-d, 0s);
}
.vb-reveal.vb-la { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.vb-reveal { opacity: 1; transform: none; transition: none; }
}

.vb-pied {
	background: var(--vb-nuit);
	color: #cfdccc;
	padding: 64px 0 34px;
	margin-top: 70px;
}
.home.blog .vb-pied, .vb-marc + .vb-pied { margin-top: 0; }
.vb-pied-cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(207, 220, 204, 0.16);
}
.vb-pied strong { font-family: 'Shippori Mincho', serif; font-size: 1.3rem; color: #f6faf3; }
.vb-pied-cols p { color: rgba(207, 220, 204, 0.75); font-size: 0.95rem; margin-top: 0.7em; max-width: 30em; }
.vb-pied h4 { color: #f6faf3; font-size: 1.02rem; font-weight: 600; margin-bottom: 0.8em; }
.vb-pied ul { list-style: none; margin: 0; padding: 0; }
.vb-pied li { margin-bottom: 0.45em; }
.vb-pied a { color: rgba(207, 220, 204, 0.85); text-decoration: none; }
.vb-pied a:hover { color: #8fc7a4; }
.vb-pied-fin {
	padding-top: 22px;
	font-size: 0.85rem;
	color: rgba(207, 220, 204, 0.55);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

@media (max-width: 921px) {
	.vb-hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
	.vb-tuiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
	.vb-tuile--une { grid-column: span 2; grid-row: span 1; }
	.vb-une { grid-template-columns: 1fr; gap: 22px; }
	.vb-fil { grid-template-columns: 1fr; }
	.vb-marc-grille { grid-template-columns: 1fr; gap: 34px; }
	.vb-hub-grille { grid-template-columns: 1fr; }
	.vb-pied-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
	.vb-wrap { padding: 0 20px; }
	.vb-tuiles { grid-template-columns: 1fr; }
	.vb-tuile--une { grid-column: span 1; }
	body { font-size: 16px; }
}
