/*
Theme Name: LB Ergo
Description: Thème classique du cabinet LB Ergo, Antoine Lebrun, ergothérapeute à Annecy.
Version: 2.0.0
Requires at least: 6.6
Text Domain: lbergo
*/

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 248, 243, .88);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid rgba(22, 48, 46, .08);
}
.site-header__inner {
	max-width: 1160px; margin: 0 auto; padding: 14px 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.brand__mark {
	width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: var(--wp--preset--color--accent-1); color: #fff;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; }
.brand__tagline { font-size: .8rem; color: var(--wp--preset--color--accent-4); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { color: var(--wp--preset--color--accent-1); }
.header-cta {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	background: var(--wp--preset--color--accent-1); color: #fff !important; text-decoration: none;
	padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.header-cta:hover { background: var(--wp--preset--color--contrast); }
.header-cta svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--wp--preset--color--contrast); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
		background: var(--wp--preset--color--base); border-bottom: 1px solid rgba(22, 48, 46, .08);
	}
	.site-header.is-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(22, 48, 46, .08); }
	.header-cta { justify-content: center; margin-top: 16px; padding: 14px 18px; }
}

/* Content */
.site-main > .entry-content > *:first-child { margin-top: 0; }
.site-main > .entry-content > *:last-child { margin-bottom: 0; }
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.lb-hero {
	background:
		radial-gradient(circle at 88% 12%, rgba(240, 186, 120, .30), transparent 42%),
		radial-gradient(circle at 5% 95%, rgba(91, 168, 160, .22), transparent 48%),
		var(--wp--preset--color--base);
}
.lb-eyebrow {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1);
	font-size: .85rem; font-weight: 600;
}
.lb-portrait img { border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(22, 48, 46, .45); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.lb-card {
	border: 1px solid rgba(22, 48, 46, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.lb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(19, 70, 66, .35); }
.lb-card a { text-decoration: none; }
.lb-icon svg { width: 44px; height: 44px; display: block; }
.lb-checklist { list-style: none; padding-left: 0; }
.lb-checklist li { padding-left: 1.9em; position: relative; margin-bottom: .6em; }
.lb-checklist li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.2em; height: 1.2em; border-radius: 50%;
	background: var(--wp--preset--color--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 65% no-repeat;
}

/* Footer */
.site-footer { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--accent-5); font-size: .95rem; }
.site-footer a { color: var(--wp--preset--color--accent-5); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--accent-3); }
.site-footer__inner {
	max-width: 1160px; margin: 0 auto; padding: 64px 20px 32px;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.site-footer h2 { font-family: var(--wp--preset--font-family--heading); color: #fff; font-size: 1.5rem; margin: 0 0 12px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; font-family: var(--wp--preset--font-family--body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }
.site-footer__bottom {
	max-width: 1160px; margin: 0 auto; padding: 20px; border-top: 1px solid rgba(230, 242, 239, .12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--wp--preset--color--accent-2);
}
@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}

/* Reading comfort */
.entry-content p { margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .5em; }
.entry-content .alignfull > .wp-block-heading:first-child,
.entry-content .alignfull > *:first-child > .wp-block-heading:first-child { margin-top: 0; }
.entry-content strong { font-weight: 650; color: var(--wp--preset--color--contrast); }
