/* ==========================================================================
   Poke Bowl Theme — Mobile-first
   ========================================================================== */

:root {
	--pb-accent: #5a6168;
	--pb-accent-dark: #3d4349;
	--pb-bg: #ececea;
	--pb-surface: #f5f5f3;
	--pb-text: #1f2225;
	--pb-text-muted: #6a7076;
	--pb-border: #d4d6d4;
	--pb-radius: 10px;
	--pb-radius-sm: 8px;
	--pb-touch: 44px;
	--pb-header-h: 60px;
	--pb-transition: 280ms ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
	background: var(--pb-bg);
	color: var(--pb-text);
}

/* Header sticky */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--pb-surface);
	border-bottom: 1px solid var(--pb-border);
	transition: transform var(--pb-transition), box-shadow var(--pb-transition);
}

.site-header--hidden {
	transform: translateY(-100%);
}

.site-header--compact {
	box-shadow: 0 2px 12px rgba(42, 42, 42, 0.06);
}

.site-header__inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
	min-height: var(--pb-header-h);
	gap: 16px;
}

.site-header__inner > .site-header__logo {
	flex-shrink: 0;
	margin: 0;
}

.site-header__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex: 1;
	gap: 8px;
	margin-left: auto;
}

.site-header__actions .wp-block-html {
	margin: 0;
}

.site-header__nav--desktop {
	display: none;
}

.site-header nav.site-header__nav--desktop ul.site-nav-desktop__list {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 4px;
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.site-nav-desktop__item {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.site-header__logo a {
	text-decoration: none;
	color: var(--pb-text);
	font-family: 'Syne', 'Outfit', system-ui, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	font-weight: 700;
	font-size: 1.25rem;
}

.site-header__logo {
	margin: 0;
}

.site-nav-desktop__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pb-touch);
	padding: 8px 16px;
	font-weight: 600;
	color: var(--pb-text);
	text-decoration: none;
	border-radius: var(--pb-radius-sm);
	transition: color var(--pb-transition), background var(--pb-transition);
}

.site-nav-desktop__link:hover,
.site-nav-desktop__link.is-active {
	color: var(--pb-accent);
}

.site-header__burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: var(--pb-touch);
	height: var(--pb-touch);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.site-header__burger-line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--pb-text);
	border-radius: 2px;
	transition: transform var(--pb-transition), opacity var(--pb-transition);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
	opacity: 0;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu slide-in */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
	visibility: hidden;
}

.mobile-menu.is-open {
	pointer-events: auto;
	visibility: visible;
}

.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(42, 42, 42, 0.3);
	opacity: 0;
	transition: opacity var(--pb-transition);
}

.mobile-menu.is-open .mobile-menu__overlay {
	opacity: 1;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 85vw);
	height: 100%;
	background: var(--pb-bg);
	transform: translateX(100%);
	transition: transform var(--pb-transition);
	display: flex;
	flex-direction: column;
	padding: 24px;
	overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
	transform: translateX(0);
}

.mobile-menu__close {
	align-self: flex-end;
	width: var(--pb-touch);
	height: var(--pb-touch);
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--pb-text);
	border-radius: 50%;
	transition: background var(--pb-transition);
	-webkit-tap-highlight-color: transparent;
}

.mobile-menu__close:hover {
	background: var(--pb-border);
}

.mobile-menu__list {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mobile-menu__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--pb-radius);
	text-decoration: none;
	color: var(--pb-text);
	font-weight: 600;
	font-size: 1.0625rem;
	min-height: var(--pb-touch);
	transition: background var(--pb-transition);
}

.mobile-menu__link:hover {
	background: var(--pb-surface);
}

.mobile-menu__link.is-active:not(.mobile-menu__link--cta) {
	color: var(--pb-accent);
}

.mobile-menu__link.is-active:not(.mobile-menu__link--cta) .mobile-menu__icon {
	background: rgba(232, 115, 74, 0.12);
}

.mobile-menu__link--cta {
	background: var(--pb-accent);
	color: #fff;
	margin-top: 8px;
	justify-content: center;
}

.mobile-menu__link--cta:hover {
	background: var(--pb-accent-dark);
	color: #fff;
}

.mobile-menu__icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pb-surface);
	border-radius: 50%;
	font-size: 1.125rem;
	flex-shrink: 0;
}

.mobile-menu__link--cta .mobile-menu__icon {
	background: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero-section {
	background: linear-gradient(135deg, #faf8f5 0%, #f5ebe0 50%, #fde8df 100%);
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.hero-section__title {
	font-family: 'Syne', 'Outfit', system-ui, sans-serif;
	color: var(--pb-text);
}

.hero-section__subtitle {
	color: var(--pb-text-muted);
}

/* Cover photo hero (dark photo): light text */
.hero-section.wp-block-cover:not(.hero-section--fresh) .hero-section__brand,
.hero-section.wp-block-cover:not(.hero-section--fresh) .hero-section__title,
.hero-section.wp-block-cover:not(.hero-section--fresh) .hero-section__subtitle,
.hero-section.wp-block-cover:not(.hero-section--fresh) .wp-block-heading,
.hero-section.wp-block-cover:not(.hero-section--fresh) p {
	color: #fff !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero-section.wp-block-cover:not(.hero-section--fresh) .wp-block-cover__background {
	background-color: #1a1512 !important;
}

/* Fresh abstract hero: dark steel type on light greens */
.hero-section.hero-section--fresh.wp-block-cover .hero-section__brand,
.hero-section.hero-section--fresh.wp-block-cover .hero-section__title,
.hero-section.hero-section--fresh.wp-block-cover .hero-section__subtitle,
.hero-section.hero-section--fresh.wp-block-cover .wp-block-heading,
.hero-section.hero-section--fresh.wp-block-cover p {
	color: var(--pb-text) !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-section.hero-section--fresh.wp-block-cover .wp-block-cover__background {
	background-color: #f7f8f5 !important;
}

.hero-section__cta .wp-block-button__link {
	padding: 16px 32px;
	font-size: 1.0625rem;
	min-height: var(--pb-touch);
	border-radius: var(--pb-radius);
}

/* Concept cards */
.section-concept {
	padding: 48px 16px;
}

.concept-cards {
	gap: 16px;
}

.concept-card {
	background: var(--pb-surface);
	border-radius: var(--pb-radius);
	padding: 24px 16px;
	text-align: center;
	border: 1px solid var(--pb-border);
}

.concept-card__icon {
	font-size: 2rem;
	margin-bottom: 8px;
}

/* Reviews */
.section-reviews {
	padding: 48px 16px;
	margin: 0;
}

.review-card {
	background: var(--pb-bg);
	border-radius: var(--pb-radius);
	padding: 20px;
	border: 1px solid var(--pb-border);
}

/* Location */
.section-location {
	padding: 48px 16px 64px;
	text-align: center;
}

/* Footer */
.site-footer {
	background: var(--pb-text);
	color: #f0ede8;
	padding: 40px 16px 24px;
	margin-top: 0;
}

.site-footer a {
	color: #f0ede8;
}

.site-footer__cols {
	gap: 24px;
	margin-bottom: 24px;
}

.site-footer__copy {
	opacity: 0.6;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/*
 * Layout unifié — UNE seule contrainte (theme.json contentSize via .site-main).
 * Plus de double constrained / max-width qui se battent.
 */
.site-main {
	width: 100%;
	box-sizing: border-box;
	padding: 2.5rem 1.25rem 4rem;
}

.site-main--home {
	padding: 0;
}

.site-main--compose,
.page-compose-main {
	padding: 0.75rem 1rem 2.5rem;
}

.site-main .wp-block-post-content,
.site-main .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.page-section {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.page-section > * + * {
	margin-top: 1.25rem;
}

.page-section > h1.wp-block-heading,
.site-main .wp-block-post-content > h1,
.site-main .entry-content > h1 {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	margin: 0 0 0.5rem;
	line-height: 1.15;
}

.page-section > h2.wp-block-heading {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	margin: 2rem 0 0.5rem;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.page-section > p,
.page-section > .wp-block-buttons {
	margin-top: 0.75rem;
}

.page-compose__intro {
	display: none;
}

.page-compose__wizard {
	padding: 0;
	width: 100%;
	margin: 0 auto;
}

/* Block preview in editor */
.bb-wizard-block-preview {
	padding: 32px;
	background: var(--pb-bg);
	border: 2px dashed var(--pb-border);
	border-radius: var(--pb-radius);
	text-align: center;
}

.bb-wizard-block-preview__icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 8px;
}

/* Tablet */
@media screen and (min-width: 768px) {
	.concept-cards {
		flex-wrap: nowrap !important;
	}

	.concept-card {
		flex-basis: 33.33% !important;
	}

	.section-concept,
	.section-reviews,
	.section-location {
		padding-left: 24px;
		padding-right: 24px;
	}

	.site-main:not(.site-main--home) {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* Desktop */
@media screen and (min-width: 1025px) {
	.site-header__nav--desktop {
		display: block;
	}

	.site-header__burger {
		display: none !important;
	}

	.hero-section__title {
		font-size: 3rem;
	}

	.section-concept,
	.section-reviews,
	.section-location {
		padding-left: 32px;
		padding-right: 32px;
	}

	.site-main:not(.site-main--home) {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Prevent horizontal overflow */
img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

.wp-block-group,
.wp-block-columns {
	max-width: 100%;
}

/* Maison Muka brand signal */
.hero-section__brand {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
	color: #fff;
}
.hero-section__title {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.section-lead {
	color: var(--pb-text-muted);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}
.about-page__tag {
	margin: -0.5rem 0 1.5rem;
	color: var(--pb-text-muted);
	letter-spacing: 0.04em;
}
.about-split__meta {
	margin-top: 0.5rem;
	color: var(--pb-text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}
.formules-menu-image {
	margin: 2rem auto 1.75rem;
	max-width: 360px;
}
.formules-menu-image img {
	width: 100%;
	height: auto;
	border-radius: var(--pb-radius-sm, 12px);
}
.concept-photo,
.location-photo {
	margin: 1.25rem auto 1.5rem;
	max-width: 720px;
}
.concept-photo img {
	width: 100%;
	height: auto;
	border-radius: var(--pb-radius-sm, 12px);
}
/* Home “Nous trouver”: crop portrait salle, don’t dump full vertical */
.location-photo {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pb-radius, 16px);
	background: var(--pb-border);
}
.location-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
}

/* Contact / À propos — split layout, cropped media (no tall stack) */
.contact-page__title,
.about-page__title {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	margin: 0 0 1.5rem;
	line-height: 1.15;
}

.contact-split,
.about-split {
	display: grid;
	gap: 1.5rem;
	align-items: stretch;
}

@media screen and (min-width: 768px) {
	.contact-split,
	.about-split {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 2rem;
		align-items: center;
	}
}

.contact-split__media,
.about-split__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--pb-radius, 16px);
	background: var(--pb-border);
}

.contact-split__media img,
.about-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.contact-split__info,
.about-split__copy {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.contact-split__block h2,
.contact-page__map h2 {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	font-size: 1.15rem;
	margin: 0 0 0.4rem;
}

.contact-split__block p,
.about-split__copy p {
	margin: 0;
	color: var(--pb-text);
	line-height: 1.55;
}

.contact-split__note {
	color: var(--pb-text-muted);
	font-size: 0.95em;
}

.contact-split__phone {
	color: var(--pb-text);
	font-weight: 600;
	text-decoration: none;
	font-size: 1.05rem;
}

.contact-split__phone:hover,
.contact-split__phone:focus {
	text-decoration: underline;
}

.contact-page__form {
	margin-top: 2.5rem;
}

.contact-page__form h2,
.contact-page__map h2 {
	font-family: "Syne", "Outfit", system-ui, sans-serif;
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}

.contact-page__form-wrap {
	max-width: 36rem;
	margin: 0 0 0.5rem;
}

.contact-page .wpcf7,
.contact-page__form-wrap .wpcf7 {
	max-width: 36rem;
	margin: 0 0 2rem;
}

.contact-page .wpcf7 label {
	display: block;
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.contact-page .wpcf7 input[type="text"],
.contact-page .wpcf7 input[type="email"],
.contact-page .wpcf7 input[type="tel"],
.contact-page .wpcf7 textarea,
.contact-page .wpcf7 select {
	width: 100%;
	max-width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius-sm, 12px);
	background: #fff;
	font: inherit;
	color: var(--pb-text);
}

.contact-page .wpcf7 textarea {
	min-height: 8rem;
	resize: vertical;
}

.contact-page .wpcf7 input[type="submit"] {
	margin-top: 0.25rem;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: var(--pb-radius, 16px);
	background: var(--pb-accent, #2a2d30);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-height: var(--pb-touch, 44px);
}

.contact-page .wpcf7 input[type="submit"]:hover,
.contact-page .wpcf7 input[type="submit"]:focus {
	filter: brightness(1.08);
}

.contact-page__map {
	margin-top: 2.5rem;
}

.contact-map__frame {
	position: relative;
	border-radius: var(--pb-radius, 16px);
	overflow: hidden;
	background: var(--pb-border);
}

.contact-map__canvas {
	display: block;
	width: 100%;
	height: 220px;
	max-height: 36vh;
	z-index: 0;
}

.contact-map__shield {
	position: absolute;
	inset: 0;
	z-index: 500;
	/* 1 doigt = scroll page ; 2 doigts = carte (JS). */
	touch-action: pan-y;
	background: transparent;
}

.contact-map__frame--hint::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 550;
	background: rgba(15, 15, 15, 0.45);
	pointer-events: none;
}

.contact-map__hint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 600;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	background: rgba(20, 20, 20, 0.88);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	pointer-events: none;
	max-width: min(16rem, calc(100% - 2rem));
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-map__hint.is-visible,
.contact-map__frame--hint .contact-map__hint {
	display: flex;
}

.contact-map__hint-icon {
	display: flex;
	color: #fff;
	opacity: 0.95;
}

.contact-map__link {
	margin: 0.6rem 0 0;
	font-size: 0.875rem;
}

@media screen and (min-width: 768px) {
	.contact-split__media {
		aspect-ratio: 5 / 4;
	}

	.contact-map__canvas {
		height: 280px;
		max-height: none;
	}
}

.hero-section.wp-block-cover {
	background-size: cover;
	background-position: center;
}

/* Images / iframe: stay inside the single content column */
.site-main img,
.site-main iframe {
	display: block;
	max-width: 100%;
}

.site-main .aligncenter {
	margin-left: auto;
	margin-right: auto;
}
