/*
Theme Name:   Ô tambav
Theme URI:    https://otambav.re
Description:  Thème enfant Astra pour Ô tambav, centre de massage à Sainte-Marie. Page d'accueil en blocs Gutenberg, sans constructeur de page.
Author:       Lorem Ipsum Réunion
Author URI:   https://loremipsum.re
Template:     astra
Version:      2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain:  otambav
*/

/* ---------- Polices (hébergées dans le thème) ---------- */

@font-face {
	font-family: "Tinos";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/tinos-bold-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Tinos";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/tinos-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/nunito.woff2") format("woff2");
}

/* ---------- Réglages ---------- */

:root {
	--ot-noir: #161213;
	--ot-noir-profond: #0f0c0d;
	--ot-texte: #3a3336;
	--ot-gris: #6f6569;
	--ot-ligne: #e2ddda;
	--ot-blanc-doux: rgba(255, 255, 255, 0.86);
	--ot-ligne-claire: rgba(255, 255, 255, 0.26);
	--ot-serif: "Tinos", "Times New Roman", Times, serif;
	--ot-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

[id] {
	scroll-margin-top: 80px;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ot-sans);
}

body {
	color: var(--ot-texte);
	font-size: 1.125rem;
	line-height: 1.6;
	background: #fff;
}

h1, h2, h3,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-title,
.product_title {
	font-family: var(--ot-serif);
	font-style: italic;
	font-weight: 700;
	color: var(--ot-noir);
	letter-spacing: -0.01em;
	line-height: 1.1;
}

h1, .entry-content h1 {
	font-size: clamp(2.6rem, 4.5vw + 1rem, 4.4rem);
}

h2, .entry-content h2 {
	font-size: clamp(2.2rem, 2.5vw + 1rem, 3.2rem);
}

h3, .entry-content h3 {
	font-size: 1.55rem;
}

body:not(.home) .entry-content h1 {
	font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
}

body:not(.home) .entry-content h2 {
	font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem);
}

body:not(.home) .entry-content a {
	text-decoration: underline;
}

/* ---------- En-tête ---------- */

#masthead {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}
}

#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-header-content .main-header-menu {
	background: var(--ot-noir);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ast-builder-menu .main-header-menu .menu-item > .menu-link,
#masthead .ast-mobile-header-content .menu-item > .menu-link {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ot-blanc-doux);
	border-color: rgba(255, 255, 255, 0.08);
}

/* Neutralise la couleur de survol d'Astra, y compris après un appui sur mobile. */
.ast-builder-menu .main-header-menu .menu-item > .menu-link:hover,
#masthead .ast-mobile-header-content .menu-item > .menu-link:hover {
	color: #fff;
}

.ast-builder-menu .main-header-menu .menu-item.ot-menu-cta {
	align-items: center;
}

.ast-builder-menu .main-header-menu .menu-item.ot-menu-cta > .menu-link {
	height: auto;
	margin-left: 10px;
	padding: 0.5em 1em;
	line-height: 1.2;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 3px;
	color: #fff;
}

@media (hover: hover) {
	.ast-builder-menu .main-header-menu .menu-item.ot-menu-cta > .menu-link:hover {
		background: #fff;
		color: var(--ot-noir);
	}
}

#masthead .menu-toggle .ast-mobile-svg {
	fill: #fff;
}

/* ---------- Page d'accueil : conteneur ---------- */

.home #primary,
.home .site-content > .ast-container {
	margin: 0;
	padding: 0;
	max-width: none;
}

.home .site-content .ast-container {
	display: block;
}

.home .entry-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.home .entry-content > * + * {
	margin-block-start: 0;
}

/* ---------- Boutons ---------- */

body .wp-block-button .wp-block-button__link {
	padding: 0.8em 1.4em;
	border-radius: 3px;
	font-family: var(--ot-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

body .wp-block-buttons .wp-block-button.ot-btn-primary > .wp-block-button__link.wp-element-button {
	background: #fff;
	border: 1px solid #fff;
	color: var(--ot-noir);
}

@media (hover: hover) {
	body .wp-block-buttons .wp-block-button.ot-btn-primary > .wp-block-button__link.wp-element-button:hover {
		background: #ebe6e3;
		border-color: #ebe6e3;
	}
}

body .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: transparent;
	border: 1px solid var(--ot-noir);
	color: var(--ot-noir);
}

body .wp-block-buttons .wp-block-button.is-style-outline.ot-btn-light > .wp-block-button__link.wp-element-button {
	border-color: rgba(255, 255, 255, 0.75);
	color: #fff;
}

@media (hover: hover) {
	body .wp-block-buttons .wp-block-button.is-style-outline.ot-btn-light > .wp-block-button__link.wp-element-button:hover {
		background: #fff;
		color: var(--ot-noir);
	}
}

.wp-block-buttons.ot-cta {
	gap: 10px;
	margin-top: 2rem;
}

/* ---------- Sections à photo de fond ---------- */

.wp-block-cover.ot-section {
	padding: clamp(80px, 10vw, 128px) 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-block-cover.ot-accueil {
	padding-top: 96px;
	border-top: 0;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container :is(h1, h2, h3) {
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container h2 {
	margin-bottom: 0.4em;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p {
	color: var(--ot-blanc-doux);
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container a:not(.wp-block-button__link) {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p.ot-lead {
	font-size: 1.2rem;
	color: #fff;
}

/* Accueil */

body .wp-block-cover.ot-accueil .wp-block-cover__inner-container p.ot-infos {
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ot-ligne-claire);
	font-family: var(--ot-serif);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.65;
}

body .wp-block-cover.ot-accueil .wp-block-cover__inner-container p.ot-itineraire {
	margin-top: 0.5rem;
	font-size: 1rem;
}

/* Massages et tarifs */

.ot-tarifs-liste {
	margin-top: 1.5rem;
	border-top: 1px solid var(--ot-ligne-claire);
}

.ot-tarifs-liste > .ot-tarif {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--ot-ligne-claire);
}

.ot-tarif-head {
	gap: 24px;
}

body .wp-block-cover.ot-section .ot-tarif h3 {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.2;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p.ot-prix {
	margin: 0.15em 0 0;
	font-size: 1rem;
	line-height: 1.6;
	text-align: right;
	white-space: nowrap;
}

.ot-prix strong {
	display: inline-block;
	min-width: 3.4em;
	font-weight: 800;
	color: #fff;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p.ot-tarif-desc {
	max-width: 32em;
	margin: 0.4rem 0 0;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.78);
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p.ot-note {
	margin-top: 2rem;
	font-weight: 700;
	color: #fff;
}

.ot-tarifs .wp-block-shortcode,
.ot-tarifs .ti-widget {
	margin-top: 2rem;
}

/* Ny Hanta */

.ot-lotus img {
	width: 44px;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

/* Galerie */

.wp-block-gallery.has-nested-images.ot-gallery {
	gap: 8px;
	margin-top: 1.5rem;
}

.wp-block-gallery.has-nested-images.ot-gallery figure.wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 2px;
}

/* Blog */

.wp-block-latest-posts.ot-posts.is-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
	margin: 1.5rem 0 0;
	padding: 0;
}

.wp-block-latest-posts.ot-posts.is-grid li {
	width: auto;
	margin: 0;
	padding: 0 0 18px;
	overflow: hidden;
	background: rgba(10, 8, 9, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
}

.ot-posts .wp-block-latest-posts__featured-image {
	margin: 0 0 14px;
}

.ot-posts .wp-block-latest-posts__featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

body .ot-section .ot-posts .wp-block-latest-posts__post-title,
body .ot-section .ot-posts .wp-block-latest-posts__post-date {
	display: block;
	padding: 0 18px;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container .ot-posts a.wp-block-latest-posts__post-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	text-decoration: none;
}

@media (hover: hover) {
	body .wp-block-cover.ot-section .wp-block-cover__inner-container .ot-posts a.wp-block-latest-posts__post-title:hover {
		text-decoration: underline;
	}
}

body .ot-section .ot-posts .wp-block-latest-posts__post-date {
	margin-top: 6px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Carte cadeau (WooCommerce) ---------- */

.woocommerce-js div.product.product-type-pw-gift-card .product_meta,
.woocommerce-js div.product.product-type-pw-gift-card div.summary .single-product-category {
	display: none;
}

/* ---------- Pied de page ---------- */

.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap {
	background: var(--ot-noir-profond);
	border-top: 0;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	font-size: 0.8rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
}

.site-footer .ast-footer-copyright a,
.site-footer .ot-footer-adresse {
	color: #fff;
}

/* ---------- Bandeau cookies (Complianz) ---------- */

body .cmplz-cookiebanner {
	--cmplz_banner_background_color: #161213;
	--cmplz_banner_border_color: transparent;
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: rgba(255, 255, 255, 0.85);
	--cmplz_text_font_size: 15px;
	--cmplz_hyperlink_color: #fff;
	--cmplz_button_font_size: 14px;
	--cmplz_button_border_radius: 3px;
	--cmplz_button_accept_background_color: #fff;
	--cmplz_button_accept_border_color: #fff;
	--cmplz_button_accept_text_color: #161213;
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: rgba(255, 255, 255, 0.6);
	--cmplz_button_deny_text_color: #fff;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: rgba(255, 255, 255, 0.35);
	--cmplz_button_settings_text_color: #fff;
}

body .cmplz-cookiebanner.cmplz-bottom-right {
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	min-width: 0;
	max-width: none;
	transform: none;
	padding: 14px max(20px, calc((100% - 1120px) / 2));
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 28px;
	row-gap: 10px;
}

@media (hover: hover) {
	body .cmplz-cookiebanner.cmplz-bottom-right:hover {
		box-shadow: none;
	}
}

body .cmplz-cookiebanner .cmplz-header,
body .cmplz-cookiebanner .cmplz-divider,
body .cmplz-cookiebanner .cmplz-links.cmplz-documents {
	display: none;
}

body .cmplz-cookiebanner .cmplz-body {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	max-height: none;
	margin: 0;
}

body .cmplz-cookiebanner .cmplz-message {
	width: 100%;
	max-width: 780px;
	margin: 0;
}

body .cmplz-cookiebanner .cmplz-message p {
	margin: 0;
}

body .cmplz-cookiebanner .cmplz-buttons {
	grid-column: 2;
	grid-row: 1;
	flex-direction: row;
	gap: 8px;
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	width: auto;
	min-height: 40px;
	padding: 8px 18px;
	font-weight: 700;
}

@media (max-width: 767px) {
	body .cmplz-cookiebanner.cmplz-bottom-right {
		grid-template-columns: 1fr;
		padding: 14px 16px 16px;
	}

	body .cmplz-cookiebanner .cmplz-buttons {
		grid-column: 1;
		grid-row: 2;
	}

	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
		flex: 1;
	}
}

/* ---------- Barre d'appel mobile ---------- */

.ot-mobile-bar {
	display: none;
}

@media (max-width: 767px) {
	body {
		padding-bottom: 64px;
	}

	.ot-mobile-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: var(--ot-noir);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.ot-mobile-bar a {
		display: block;
		padding: 11px 10px;
		border: 1px solid rgba(255, 255, 255, 0.7);
		border-radius: 3px;
		font-weight: 700;
		text-align: center;
		text-decoration: none;
		color: #fff;
	}

	.ot-mobile-bar a.ot-mobile-bar__call {
		background: #fff;
		border-color: #fff;
		color: var(--ot-noir);
	}

	#ast-scroll-top {
		bottom: 76px;
	}

	.wp-block-cover.ot-accueil {
		padding-top: 72px;
	}

	body .wp-block-cover.ot-section .ot-tarif h3 {
		font-size: 1.35rem;
	}
}

/* ---------- Animations (aucune si le visiteur a réduit les animations sur son appareil) ---------- */

.ot-accueil.wp-block-cover {
	overflow: hidden;
}

/* Bandeau d'accueil : la photo se resserre lentement, le texte apparaît. */
.ot-anim .ot-accueil .wp-block-cover__image-background {
	animation: ot-zoom 14s ease-out both;
}

.ot-anim .ot-accueil .wp-block-cover__inner-container > * {
	animation: ot-monte 0.9s ease-out both;
}

.ot-anim .ot-accueil .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: 0.12s; }
.ot-anim .ot-accueil .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: 0.24s; }
.ot-anim .ot-accueil .wp-block-cover__inner-container > *:nth-child(4) { animation-delay: 0.36s; }
.ot-anim .ot-accueil .wp-block-cover__inner-container > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes ot-zoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

@keyframes ot-monte {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Sections suivantes : apparition au défilement. */
.ot-anim .ot-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.ot-anim .ot-reveal.ot-vu {
	opacity: 1;
	transform: none;
}

/* Survols. */
.ot-gallery .wp-block-image {
	overflow: hidden;
}

.ot-gallery .wp-block-image img {
	transition: transform 0.6s ease;
}

@media (hover: hover) {
	.ot-gallery .wp-block-image:hover img {
		transform: scale(1.05);
	}
}

.wp-block-latest-posts.ot-posts.is-grid li {
	transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {
	.wp-block-latest-posts.ot-posts.is-grid li:hover {
		transform: translateY(-3px);
		border-color: rgba(255, 255, 255, 0.35);
	}
}

#masthead {
	transition: box-shadow 0.3s ease;
}

.ot-defile #masthead {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.ot-anim .ot-reveal,
	.ot-anim .ot-accueil .wp-block-cover__image-background,
	.ot-anim .ot-accueil .wp-block-cover__inner-container > * {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}
}

/* Bons cadeaux : mêmes polices que le site. */
.boncad-achat {
	--boncad-serif: var(--ot-serif);
}

/* Menu mobile déroulant : fond sombre et liens blancs (Astra y met un fond clair par défaut). */
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-header-content .main-navigation,
#masthead .ast-mobile-header-content .main-header-menu,
#masthead .ast-mobile-header-content .main-header-menu .menu-item,
#masthead .ast-mobile-header-content .main-header-menu .menu-link {
	background-color: var(--ot-noir) !important;
}

#masthead .ast-mobile-header-content .main-header-menu .menu-item > .menu-link {
	padding: 14px 20px;
	color: #fff !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#masthead .ast-mobile-header-content .main-header-menu .menu-item.ot-menu-cta {
	padding: 16px 20px 20px;
}

#masthead .ast-mobile-header-content .main-header-menu .menu-item.ot-menu-cta > .menu-link {
	display: inline-flex !important;
	width: auto;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 3px;
}

/* ---------- Liens : bien visibles, focus clavier, icône pour les sites externes ---------- */

a:focus-visible,
button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.entry-content p a:not(.wp-block-button__link),
.entry-content li a:not(.wp-block-button__link),
.entry-content td a,
.entry-content dd a,
.site-footer .ast-footer-copyright a,
.boncad a:not(.boncad-bouton) {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

body:not(.home) .entry-content p a:not(.wp-block-button__link),
body:not(.home) .entry-content li a:not(.wp-block-button__link),
body:not(.home) .entry-content td a,
.boncad a:not(.boncad-bouton) {
	color: #a8264f;
}

@media (hover: hover) {
	.entry-content p a:not(.wp-block-button__link):hover,
	.entry-content li a:not(.wp-block-button__link):hover,
	.site-footer .ast-footer-copyright a:hover,
	.boncad a:not(.boncad-bouton):hover {
		text-decoration-thickness: 2.5px;
	}
}

@media (hover: hover) {
	body:not(.home) .entry-content p a:not(.wp-block-button__link):hover,
	.boncad a:not(.boncad-bouton):hover {
		color: var(--ot-noir);
	}
}

.ot-externe::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 0.8em;
	height: 0.8em;
	margin-left: 0.35em;
	vertical-align: -0.06em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ast-builder-menu .main-header-menu .menu-link.ot-externe,
.wp-block-button__link.ot-externe {
	align-items: center;
}

/* ---------- Blog : encart « Offrir un bon massage » ---------- */

.ot-pop {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 998;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(340px, calc(100vw - 24px));
	padding: 14px 40px 14px 14px;
	background: #fff;
	border: 1px solid var(--ot-ligne);
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(22, 18, 19, 0.18);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease, bottom 0.3s ease;
}

.ot-pop.ot-pop-visible {
	opacity: 1;
	transform: none;
}

.ot-pop[hidden] {
	display: none;
}

.ot-pop-photo {
	flex: none;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 3px;
}

.ot-pop p {
	margin: 0;
}

.ot-pop-titre {
	font-family: var(--ot-serif);
	font-size: 1.15rem;
	font-style: italic;
	font-weight: 700;
	color: var(--ot-noir);
	line-height: 1.2;
}

.ot-pop-detail {
	margin: 2px 0 6px !important;
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--ot-gris);
}

.ot-pop-lien {
	font-size: 0.95rem;
	font-weight: 700;
	color: #a8264f;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.ot-pop-fermer {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--ot-gris);
	background: none;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

@media (hover: hover) {
	.ot-pop-fermer:hover {
		color: var(--ot-noir);
		background: #f3efec;
	}
}

@media (max-width: 767px) {
	.ot-pop {
		left: 12px;
		right: 12px;
		bottom: 76px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ot-pop {
		transition: none;
	}
}

.ot-entete-blog {
	margin: 0 0 2rem;
}

.ot-entete-blog .page-title {
	margin: 0;
}

/* Champs de formulaire : texte saisi bien lisible (Astra met un gris trop clair). */
input,
select,
textarea {
	color: var(--ot-texte);
}

input::placeholder,
textarea::placeholder {
	color: #6f6569;
	opacity: 1;
}

@media (max-width: 767px) {
	.ot-pop-ouvert #ast-scroll-top {
		display: none !important;
	}
}

/* ---------- Pages de massages ---------- */

.ot-page-massage #primary,
.ot-page-massage .site-content > .ast-container {
	margin: 0;
	padding: 0;
	max-width: none;
}

.ot-page-massage .site-content .ast-container {
	display: block;
}

.ot-page-massage .entry-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-cover.ot-entete-massage {
	padding-top: clamp(64px, 8vw, 104px);
	padding-bottom: clamp(56px, 7vw, 88px);
	border-top: 0;
}

body .wp-block-cover.ot-section .wp-block-cover__inner-container p.ot-prix-entete {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: 1.25rem;
	font-size: 1.05rem;
	color: #fff;
}

.ot-prix-entete strong {
	margin-left: 0.3em;
	font-weight: 800;
}

body .wp-block-cover.ot-entete-massage .wp-block-cover__inner-container p.ot-infos {
	margin-top: 1rem;
	font-size: 1rem;
}

.ot-corps-massage {
	padding: clamp(48px, 6vw, 80px) 20px clamp(56px, 7vw, 96px);
}

body .ot-corps-massage h2 {
	margin: 2.4rem 0 0.6rem;
}

body .ot-corps-massage > h2:first-child {
	margin-top: 0;
}

.ot-corps-massage p,
.ot-corps-massage ul {
	margin-bottom: 0.9rem;
}

.ot-corps-massage ul {
	margin-left: 1.2em;
}

.ot-corps-massage ul.ot-durees {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
	font-size: 1.15rem;
}

.ot-durees li {
	padding: 6px 0;
	border-bottom: 1px solid var(--ot-ligne);
}

.ot-durees strong {
	color: var(--ot-noir);
}

body .wp-block-buttons .wp-block-button.ot-btn-sombre > .wp-block-button__link.wp-element-button {
	background: var(--ot-noir);
	border: 1px solid var(--ot-noir);
	color: #fff;
}

@media (hover: hover) {
	body .wp-block-buttons .wp-block-button.ot-btn-sombre > .wp-block-button__link.wp-element-button:hover {
		background: #3a3336;
		border-color: #3a3336;
	}
}

.ot-corps-massage .wp-block-buttons.ot-cta {
	margin-top: 1.25rem;
}

/* Bon cadeau : une ligne discrète. */
.ot-corps-massage p.ot-cadeau-discret {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ot-ligne);
	font-size: 0.95rem;
}

.ot-corps-massage p.ot-cadeau-discret a {
	color: var(--ot-texte);
}

/* Page « Massages » : liste des massages sur fond blanc. */
.ot-liste-massages {
	margin: 1rem 0 1.5rem;
	border-top: 1px solid var(--ot-ligne);
}

.ot-liste-massages > .ot-tarif {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--ot-ligne);
}

body .ot-liste-massages .ot-tarif h3 {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
}

body .ot-liste-massages .ot-tarif h3 a {
	color: var(--ot-noir);
}

.ot-liste-massages p.ot-prix {
	margin: 0.15em 0 0;
	font-size: 1rem;
	text-align: right;
	white-space: nowrap;
}

.ot-liste-massages .ot-prix strong {
	color: var(--ot-noir);
}

.ot-liste-massages p.ot-tarif-desc {
	margin: 0.4rem 0 0;
	font-size: 1rem;
	color: var(--ot-texte);
}

/* Accueil : nom du massage cliquable dans la liste des tarifs. */
body .wp-block-cover.ot-section .wp-block-cover__inner-container .ot-tarif h3 a:not(.wp-block-button__link) {
	text-decoration-color: rgba(255, 255, 255, 0.45);
	text-decoration-thickness: 1px;
}

@media (hover: hover) {
	body .wp-block-cover.ot-section .wp-block-cover__inner-container .ot-tarif h3 a:not(.wp-block-button__link):hover {
		text-decoration-color: #fff;
	}
}

/* Sous-menu « Massages » sur ordinateur : fond sombre comme l'en-tête. */
#masthead .main-header-menu .sub-menu {
	background: var(--ot-noir);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-top: 2px solid #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#masthead .main-header-menu .sub-menu .menu-item {
	border: 0;
}

#masthead .main-header-menu .sub-menu .menu-item > .menu-link {
	padding: 0.75em 1.2em;
	color: rgba(255, 255, 255, 0.9);
	background: transparent;
}

#masthead .main-header-menu .sub-menu .menu-item > .menu-link:focus-visible,
#masthead .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link {
	color: #fff;
	background: #2a2426;
}

@media (hover: hover) {
	#masthead .main-header-menu .sub-menu .menu-item > .menu-link:hover {
		color: #fff;
		background: #2a2426;
	}
}

@media (max-width: 767px) {
	body .ot-liste-massages .ot-tarif h3 {
		font-size: 1.25rem;
	}
}

.ot-insecable {
	white-space: nowrap;
}

.ot-entete-massage h1 {
	text-wrap: balance;
}

/* Sous-menu dans le menu mobile : sans cadre, simple retrait. */
.ast-header-break-point #masthead .main-header-menu .sub-menu {
	border: 0;
	box-shadow: none;
}

.ast-header-break-point #masthead .main-header-menu .sub-menu .menu-item > .menu-link {
	padding-left: 2.2em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ast-header-break-point #masthead .main-header-menu .ast-menu-toggle {
	color: #fff;
}

/* ---------- Pied de page compact ---------- */

body .site-footer .site-below-footer-wrap[data-section],
body .site-footer .site-primary-footer-wrap[data-section] {
	min-height: 0;
	padding-top: 12px;
	padding-bottom: 12px;
}

body .site-footer .ast-builder-footer-grid-columns,
body .site-footer .ast-builder-grid-row {
	min-height: 0;
}

.site-footer .ast-footer-copyright {
	padding: 0 16px;
}

.site-footer .ast-footer-copyright p {
	margin: 0;
}

.site-footer .ast-footer-copyright a[href^="tel:"] {
	white-space: nowrap;
}

/* ---------- Page Blog : vignettes recadrées au centre, sans déformation ---------- */

.ast-blog-featured-section .post-thumb-img-content img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

/* ---------- Pages simples sur mobile : titre décollé de l'en-tête ---------- */

@media (max-width: 921px) {
	body.page:not(.home):not(.ot-page-massage) #primary {
		margin-top: 28px;
	}

	.blog .ot-entete-blog {
		margin-top: 1.5rem;
		padding: 0 15px;
	}
}

/* ---------- Page du bon cadeau sur mobile : bouton de l'étape en cours fixé en bas ---------- */

@media (max-width: 767px) {
	body.ot-page-bon {
		padding-bottom: 0;
	}

	.ot-page-bon .boncad-js .boncad-nav {
		position: sticky;
		bottom: 0;
		z-index: 20;
		margin: 1.5rem -20px 0;
		padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--ot-ligne);
		box-shadow: 0 -6px 18px rgba(22, 18, 19, 0.08);
	}

	.ot-page-bon .boncad-nav .boncad-bouton {
		padding: 0.8em 1.2em;
		font-size: 1rem;
	}

	.ot-page-bon #ast-scroll-top {
		display: none !important;
	}
}

/* ---------- Mobile : boutons, zones tactiles, alignements ---------- */

/* Retour visuel à l'appui (écrans tactiles). */
.wp-block-button__link:active,
.boncad-bouton:active,
.ot-mobile-bar a:active,
.ot-pop-lien:active {
	opacity: 0.85;
}

/* Pages de massages : texte aligné sur l'en-tête photo (WordPress ajoutait 24,6 px). */
body .ot-corps-massage.alignfull {
	padding-right: 20px;
	padding-left: 20px;
}

@media (max-width: 600px) {
	/* Boutons d'action empilés : même largeur, hauteur confortable. */
	.wp-block-buttons.ot-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-buttons.ot-cta > .wp-block-button {
		width: 100%;
		margin: 0;
	}

	body .wp-block-buttons.ot-cta .wp-block-button__link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		text-align: center;
	}
}

@media (max-width: 767px) {
	/* Zones tactiles d'au moins 44 px de haut. */
	.site-header .custom-logo-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	body .ot-tarif h3 a {
		display: inline-block;
		padding: 10px 0;
		margin: -10px 0;
	}

	.post-thumb-img-content > a {
		display: block;
	}

	.ast-article-post .entry-title a,
	.ast-article-post .cat-links a {
		display: inline-block;
		padding: 10px 0;
		margin: -10px 0;
	}

	.post-navigation .nav-links a {
		display: block;
		padding: 14px 0;
	}

	.ot-pop-lien {
		display: inline-block;
		padding: 10px 0;
		margin: -10px 0;
	}

	.ot-pop-fermer {
		top: 2px;
		right: 2px;
		width: 44px;
		height: 44px;
	}

	.search-form .search-submit {
		min-width: 44px;
		min-height: 44px;
	}
}
