/*
Theme Name: Cabinet Ostéopathie
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabinet-osteo
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 1px 0 0 var(--wp--preset--color--surfaceAlt);
}
.site-header .header-inner {
	column-gap: 2rem;
	max-width: none;
	width: 100%;
}
.site-header .header-inner {
	padding-block: 14px;
}
.site-header .header-actions {
	align-items: center;
	column-gap: 1.75rem;
}
.site-header .wp-block-site-title {
	color: var(--wp--preset--color--primary);
	font-size: 1.3rem;
	letter-spacing: -0.01em;
	font-weight: 600;
}
.site-header .header-nav {
	gap: 0.5rem;
}
.site-header .wp-block-navigation .wp-block-navigation-item a {
	color: var(--wp--preset--color--secondary);
	font-weight: 500;
	text-decoration: none;
}
.site-header .wp-block-navigation .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* === hero === */
.band-hero .hero-eyebrow {
	margin-block-end: 14px;
}
.band-hero .hero-title {
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1.08;
	max-width: 12ch;
	color: #ffffff !important;
}
.band-hero .hero-intro {
	max-width: 34rem;
	color: #eef2f7 !important;
}
.band-hero .eyebrow {
	color: #8fd6c9;
}

/* === labels === */
.eyebrow {
	margin: 0;
	color: var(--wp--preset--color--accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 0.8rem;
}
.band-eyebrow {
	margin-block-end: 0.75rem;
}
.eyebrow-light {
	color: #8fd6c9;
}

/* === bands === */
.band {
	padding-block: clamp(4rem, 9vw, 7rem);
}
.band .wp-block-columns {
	align-items: center;
	column-gap: clamp(2rem, 4.5vw, 3.75rem);
}
.band-title {
	color: var(--wp--preset--color--primary);
}
.band .wp-block-image img {
	border-radius: var(--wp--custom--rounded--sm);
}
.band-alt .band-title,
.band-light .band-title {
	color: var(--wp--preset--color--primary);
}

/* === dark band === */
.band-dark {
	color: #ffffff !important;
}
.band-dark .band-title,
.band-dark .wp-block-heading,
.band-dark .wp-block-paragraph {
	color: #ffffff !important;
}
.band-dark .eyebrow-light {
	color: #8fd6c9 !important;
}
.band-dark a:not(.wp-block-button__link) {
	color: #8fd6c9;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.band-dark a:not(.wp-block-button__link):hover {
	color: #ffffff;
}
.band-dark .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* === stacked bands: butt full-bleed sections edge to edge === */
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* === zones d'intervention === */
.zone-list {
	gap: 12px;
	margin-block-start: 1.5rem;
}
.zone-chip {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--surfaceAlt);
	border-radius: 999px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}

/* === buttons === */
.wp-block-button__link {
	transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgb(27 42 74 / 0.18);
}

/* === footer === */
.site-footer {
	padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer .wp-block-group {
	row-gap: 1.25rem;
}
.site-footer .wp-block-paragraph {
	color: #c9d2e0;
}
.site-footer a {
	color: #8fd6c9;
	text-decoration: none;
}
.site-footer a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.site-footer .wp-block-separator {
	border-color: rgb(255 255 255 / 0.18);
}
.footer-copy,
.footer-legal {
	font-size: 0.9rem;
	text-align: center;
}
.footer-legal {
	margin-block-start: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-block-button__link:hover {
		transition: none;
		transform: none;
		box-shadow: none;
	}
}
