/* ==========================================================================
   Tempaurel — styles complémentaires à theme.json
   Mobile d'abord : les règles de base visent le mobile, les media queries
   (min-width) enrichissent pour les écrans plus larges.
   ========================================================================== */

/* Base ------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

h1, h2, h3 {
	text-wrap: balance;
}

/* Numéros de téléphone : jamais coupés en fin de ligne */
a[href^="tel:"] {
	white-space: nowrap;
}

img {
	height: auto;
	max-width: 100%;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--green);
	outline-offset: 3px;
}

/* Titres « affiche » condensés (SUNRISE, SUNSET, RÉSERVER UNE TABLE) */
.is-style-display,
.tp-display {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
}

/* Boutons : flèche décorative après le libellé */
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* Texte réservé aux lecteurs d'écran */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Pas d'espace entre header, contenu et footer */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Ancres : laisser la place du header collant */
:where(main [id], #infos) {
	scroll-margin-top: 5.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

/* Pas de barre d'admin collante sous 600 px : le header colle en haut */
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* Fond pêche (couleur du bloc Groupe) et menu en blanc, comme les lettres du
   logo. Choix assumé : contraste 1,96:1, sous le seuil de 4,5:1 visé ailleurs. */
.tp-header {
	box-shadow: 0 1px 0 rgb(43 42 38 / 0.1);
	color: var(--wp--preset--color--white);
}

/* Le sous-menu « Menus » garde son encadré clair : texte en encre
   (sauf dans le menu mobile plein écran, où il reste blanc sur pêche) */
.tp-header .tp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
}

.tp-header .tp-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: inherit;
}

.tp-header__logo {
	flex-shrink: 0;
	margin: 0;
}

.tp-header__logo img {
	aspect-ratio: 622 / 352;
	display: block;
	width: 110px !important;
}

/* Mobile : logo | bouton Réserver | bouton menu */
.tp-header .tp-nav {
	order: 3;
}

.tp-header__cta {
	margin-left: auto;
	order: 2;
}

/* Bouton vert foncé : se détache nettement du fond pêche */
.tp-header__cta .wp-block-button__link {
	background-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--cream);
	padding: 0.55rem 1.1rem;
	white-space: nowrap;
}

.tp-header__cta .wp-block-button__link:hover,
.tp-header__cta .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

.tp-nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--white);
	padding: 0.4rem;
}

.tp-nav .wp-block-navigation__responsive-container-open svg {
	height: 28px;
	width: 28px;
}

/* Menu plein écran (mobile) */
.tp-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}

.tp-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
}

.tp-nav .is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.tp-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

/* Liens du menu */
.tp-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

.tp-nav .wp-block-navigation-item__content:hover,
.tp-nav .wp-block-navigation-submenu__toggle:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--white);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 6px;
}

/* Dans l'encadré clair du sous-menu, le soulignement reste vert */
.tp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--wp--preset--color--green);
}

.tp-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--wp--preset--color--white);
}

/* Sous-menu « Menus » (desktop) */
.tp-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white) !important;
	border: 1px solid var(--wp--preset--color--sage) !important;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgb(46 74 58 / 0.12);
	padding: 0.4rem 0;
}

.tp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.1rem;
	white-space: nowrap;
}

@media (min-width: 600px) {
	.tp-header .tp-nav {
		flex: 1;
		order: 0;
	}

	.tp-header__cta {
		margin-left: 0;
		order: 0;
	}

	.tp-header__logo img {
		width: 125px !important;
	}

	.tp-nav .wp-block-navigation__container {
		gap: 1rem;
	}
}

/* Petits téléphones : logo et bouton plus compacts pour laisser la place
   au bouton du menu */
@media (max-width: 599px) {
	.tp-header__bar {
		gap: 0.5rem !important;
	}

	.tp-header__logo img {
		width: 96px !important;
	}

	.tp-header__cta .wp-block-button__link {
		font-size: 0.8rem;
		padding: 0.5rem 0.85rem;
	}

	.tp-header__cta .wp-block-button__link::after {
		display: none;
	}
}

/* Très petits écrans : le bouton s'efface (« Réserver » reste dans le menu) */
@media (max-width: 359px) {
	.tp-header .tp-header__cta {
		display: none;
	}
}

/* Tablette (600–899 px) : les 6 liens ne tiennent pas sur une ligne, on garde
   le menu replié comme sur mobile (le bloc Navigation bascule à 600 px) */
@media (min-width: 600px) and (max-width: 899px) {
	.tp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.tp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.tp-header .tp-nav {
		flex: 0 0 auto;
		order: 3;
	}

	.tp-header .tp-header__cta {
		margin-left: auto;
		order: 2;
	}
}

/* 900–1023 px : menu sur une ligne, le bouton du header s'efface
   (la section Réservation reste accessible par le lien « Réserver ») */
@media (min-width: 900px) and (max-width: 1023px) {
	.tp-header .tp-header__cta {
		display: none;
	}
}

@media (min-width: 1024px) {
	.tp-header__logo img {
		width: 150px !important;
	}

	.tp-nav .wp-block-navigation__container {
		gap: 1.75rem;
	}
}

/* Dans le menu plein écran, le sous-menu est simplement listé */
.tp-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none;
	padding: 0.25rem 0 0;
}

/* ==========================================================================
   Hero — 1 lieu, 2 concepts
   Mobile : titre puis les deux photos côte à côte.
   Desktop : les deux photos sur toute la largeur, titre au centre
   sur un halo crème.
   ========================================================================== */
.tp-hero {
	margin-block: 0;
	overflow: hidden;
	position: relative;
}

.tp-hero__intro {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	position: relative;
	z-index: 2;
}

.tp-hero__intro > * {
	margin-block: 0;
}

.tp-hero__intro > * + * {
	margin-block-start: 1rem;
}

.tp-hero__intro > .wp-block-buttons {
	margin-block-start: 1.5rem;
}

.tp-hero__title {
	font-size: clamp(2.75rem, 2rem + 4vw, 4.75rem);
	letter-spacing: -0.02em;
	line-height: 0.95;
}

.tp-hero__lead {
	font-size: var(--wp--preset--font-size--large);
	text-wrap: balance;
}

.tp-hero__panels {
	display: grid;
	gap: 0;
	grid-template-columns: 1fr 1fr;
	margin: 0;
}

.tp-hero .tp-hero__panel {
	margin: 0;
	min-height: clamp(18rem, 70vw, 26rem);
	padding: 0.75rem;
}

.tp-hero__panel .wp-block-cover__inner-container {
	color: inherit;
	width: auto;
}

/* Badges Sunrise / Sunset : pastilles rondes façon sticker ----------------- */
.tp-badge {
	align-items: center;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.28);
	display: flex;
	flex-direction: column;
	justify-content: center;
	container-type: inline-size;
	padding: 0 0.6rem;
	position: relative;
	text-align: center;
	/* Mobile : la demi-photo moins ses marges ; desktop : voir plus bas */
	width: clamp(7rem, 50vw - 2.25rem, 15rem);
}

/* Le texte suit la taille de la pastille (unités cqi = % de sa largeur) */
.tp-badge > p:first-child {
	margin-top: 13cqi;
}

/* Soleil / lune en haut de la pastille */
.tp-badge::before {
	background: center / contain no-repeat;
	content: "";
	height: 16cqi;
	left: 50%;
	position: absolute;
	top: 9%;
	transform: translateX(-50%);
	width: 16cqi;
}

/* Liseré pointillé intérieur */
.tp-badge::after {
	border: 2px dashed currentColor;
	border-radius: 50%;
	content: "";
	inset: 8px;
	opacity: 0.4;
	pointer-events: none;
	position: absolute;
}

.tp-badge > p {
	margin: 0;
}

.tp-badge__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 18cqi;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.tp-badge__concept {
	font-family: var(--wp--preset--font-family--display);
	font-size: 10cqi;
	font-weight: 600;
	line-height: 1.2;
}

.tp-badge__when {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-size: max(0.7rem, 8.5cqi);
	font-weight: 600;
	margin-top: 0.4rem !important;
	padding: 0.15em 0.9em;
	position: relative;
	z-index: 0;
}

/* Coup de pinceau derrière « En journée » / « En soirée » */
.tp-badge__when::before {
	background-color: var(--tp-brush, var(--wp--preset--color--yellow));
	content: "";
	inset: 0;
	-webkit-mask: url("../img/brush.svg") center / 100% 100% no-repeat;
	mask: url("../img/brush.svg") center / 100% 100% no-repeat;
	position: absolute;
	z-index: -1;
}

/* Mêmes couleurs que les cartes Sunrise / Sunset de la section « Le concept » */
.tp-badge--sunrise {
	background: var(--wp--preset--color--sage-pale);
	color: var(--wp--preset--color--green);
	transform: rotate(-7deg);
}

.tp-badge--sunrise::before {
	background-image: url("../img/sun-yellow.svg");
}

.tp-badge--sunset {
	--tp-brush: var(--wp--preset--color--peach);
	background: var(--wp--preset--color--peach-pale);
	color: var(--wp--preset--color--terracotta);
	transform: rotate(7deg);
}

.tp-badge--sunset::before {
	background-image: url("../img/moon-peach.svg");
}

/* « En soirée » en encre sur le pinceau pêche, comme le bouton « Menu Sunset » */
.tp-badge--sunset .tp-badge__when {
	color: var(--wp--preset--color--ink);
}

/* Téléphones (< 600 px) : pas de pastille, le texte est posé sur la photo
   avec un halo diffus derrière, aux couleurs des cartes Sunrise / Sunset.
   Les pastilles rondes restent à partir de 600 px (tablettes, ordinateurs). */
@media (max-width: 599px) {
	.tp-badge {
		aspect-ratio: auto;
		background: none !important;
		border-radius: 0;
		box-shadow: none;
		display: block;
		isolation: isolate;
		padding: 0;
		transform: none !important;
		width: calc(50vw - 1.5rem);
	}

	.tp-hero .tp-hero__panel {
		padding-top: 1.75rem;
	}

	.tp-badge::before {
		top: 0;
	}

	.tp-badge > p:first-child {
		margin-top: 18cqi;
	}

	/* Le halo remplace le liseré pointillé */
	.tp-badge::after {
		border: 0;
		border-radius: 50%;
		inset: -14% -6%;
		opacity: 1;
		z-index: -1;
	}

	/* Même intensité pour les deux halos (95 % au centre, 75 % à mi-chemin) */
	.tp-badge--sunrise::after {
		background: radial-gradient(closest-side, rgb(239 238 219 / 0.95) 35%, rgb(239 238 219 / 0.75) 65%, rgb(239 238 219 / 0) 100%);
	}

	.tp-badge--sunset::after {
		background: radial-gradient(closest-side, rgb(254 228 206 / 0.95) 35%, rgb(254 228 206 / 0.75) 65%, rgb(254 228 206 / 0) 100%);
	}
}

@media (min-width: 900px) {
	.tp-hero__panels {
		position: relative;
	}

	.tp-hero .tp-hero__panel {
		min-height: clamp(34rem, 44vw, 40rem);
		padding: clamp(2rem, 5vw, 4.5rem);
	}

	.tp-badge {
		width: clamp(9.5rem, 5rem + 12vw, 15rem);
	}

	/* Halo crème central qui fond les deux photos */
	.tp-hero__panels::after {
		background: radial-gradient(
			ellipse 34% 90% at 50% 46%,
			var(--wp--preset--color--cream) 40%,
			rgb(252 245 231 / 0.85) 58%,
			rgb(252 245 231 / 0.45) 78%,
			rgb(252 245 231 / 0) 100%
		);
		content: "";
		inset: 0;
		pointer-events: none;
		position: absolute;
	}

	.tp-hero__intro {
		left: 50%;
		padding: 0;
		position: absolute;
		top: 46%;
		transform: translate(-50%, -50%);
		width: min(34rem, 40vw);
	}

	.tp-hero__lead {
		margin-inline: auto;
		max-width: 22rem;
	}
}

/* ==========================================================================
   Le concept — cartes Sunrise / Sunset
   ========================================================================== */
.tp-concept {
	border-radius: 1.75rem 1.75rem 0 0;
	margin-top: -1.75rem !important;
	position: relative;
	z-index: 3;
}

.tp-concept__cards {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.tp-card {
	--tp-card-bg: var(--wp--preset--color--sage-pale);
	--tp-card-stripe: var(--wp--preset--color--sage);
	--tp-card-accent: var(--wp--preset--color--green);
	--tp-card-icon: url("../img/sun-yellow.svg");
	background: var(--tp-card-bg);
	border-radius: 1.75rem;
	display: grid;
	gap: 1.25rem;
	margin: 0 !important;
	overflow: hidden;
	padding: 4.75rem 1.25rem 1.5rem;
	position: relative;
}

.tp-card--sunset {
	--tp-card-bg: var(--wp--preset--color--peach-pale);
	--tp-card-stripe: var(--wp--preset--color--peach-mid);
	--tp-card-accent: var(--wp--preset--color--terracotta);
	--tp-card-icon: url("../img/moon-peach.svg");
}

/* Rayures en haut de la carte, qui s'estompent vers le bas */
.tp-card::before {
	background: repeating-linear-gradient(90deg, var(--tp-card-stripe) 0 22px, transparent 22px 44px);
	content: "";
	height: 3.25rem;
	inset: 0 0 auto;
	-webkit-mask: linear-gradient(#000 35%, transparent);
	mask: linear-gradient(#000 35%, transparent);
	position: absolute;
}

/* Soleil / lune au-dessus du titre */
.tp-card::after {
	background: var(--tp-card-icon) center / contain no-repeat;
	content: "";
	height: 3.25rem;
	left: 1rem;
	position: absolute;
	top: 1.4rem;
	width: 3.25rem;
}

.tp-card__body {
	position: relative;
}

.tp-card__body > * {
	margin-block: 0;
}

.tp-card__body > * + * {
	margin-block-start: 0.9rem;
}

.tp-card__title {
	color: var(--tp-card-accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.95;
	text-transform: uppercase;
}

.tp-card__body > .tp-card__concept {
	color: var(--tp-card-accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 600;
	line-height: 1.1;
	margin-block-start: 0.2rem;
}

.tp-card__body > .wp-block-buttons {
	gap: 0.75rem;
	margin-block-start: 1.4rem;
}

/* Bouton vert foncé, comme « Réserver un brunch » dans le header */
.tp-btn-dark .wp-block-button__link:hover,
.tp-btn-dark .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--cream) !important;
}

.tp-card .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--tp-card-accent);
	color: var(--tp-card-accent);
	padding: calc(0.75rem - 2px) calc(1.75rem - 2px);
}

.tp-card .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--tp-card-accent);
	color: var(--wp--preset--color--white);
}

/* Photo aux coins arrondis irréguliers, comme sur la maquette */
.tp-card__photo {
	margin: 0 !important;
	order: -1;
}

.tp-card__photo img {
	border-radius: 2.5rem 1.25rem 2.75rem 1.5rem;
	box-shadow: 0 12px 30px rgb(43 42 38 / 0.18);
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3 !important;
}

@media (min-width: 600px) {
	.tp-card {
		align-items: start;
		gap: 1.75rem;
		grid-template-columns: 1.3fr 1fr;
		padding: 5rem 1.75rem 1.75rem;
	}

	.tp-card__photo {
		order: 0;
	}

	.tp-card__photo img {
		aspect-ratio: 4 / 5 !important;
	}

	.tp-card::after {
		left: 1.6rem;
	}
}

@media (min-width: 1024px) {
	.tp-concept__cards {
		grid-template-columns: 1fr 1fr;
	}
}

/* Sur-titre en petites capitales espacées (« Tempaurel en images ») */
.tp-eyebrow {
	color: var(--wp--preset--color--green);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

/* ==========================================================================
   Galerie — carrousel CSS scroll-snap (flèches ajoutées par carousel.js)
   ========================================================================== */
.tp-galerie {
	overflow-x: clip;
	position: relative;
	/* devant la section « Le concept » (z-index 3), pour que le soleil
	   qui dépasse en haut ne soit pas recouvert */
	z-index: 4;
}

.tp-galerie__head {
	padding-inline: var(--wp--preset--spacing--30);
	position: relative;
}

.tp-galerie__head > * {
	margin-block: 0;
}

.tp-galerie__head > .tp-eyebrow + * {
	margin-block-start: 0.5rem;
}

/* Soleil dessiné à droite du titre */
.tp-galerie__head::after {
	background: url("../img/sun-line.svg") center / contain no-repeat;
	content: "";
	height: 4rem;
	position: absolute;
	right: 0.25rem;
	top: -3.75rem;
	width: 3.5rem;
}

.tp-carousel {
	--tp-gutter: max(1rem, calc((100% - 1240px) / 2));
	--tp-slide: 72vw;
	margin-top: var(--wp--preset--spacing--40);
	position: relative;
}

.tp-galerie .tp-gallery.wp-block-gallery.has-nested-images {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin: var(--wp--preset--spacing--40) 0 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 0.25rem var(--tp-gutter, 1rem) 1rem;
	scroll-padding-inline: var(--tp-gutter, 1rem);
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--wp--preset--color--sage) transparent;
	scrollbar-width: thin;
}

.tp-carousel .tp-gallery.wp-block-gallery.has-nested-images {
	margin-top: 0;
}

.tp-galerie .tp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	aspect-ratio: 4 / 5;
	border-radius: 1.1rem;
	flex: 0 0 var(--tp-slide, 72vw);
	margin: 0;
	overflow: hidden;
	scroll-snap-align: start;
	width: var(--tp-slide, 72vw);
}

.tp-galerie .tp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	width: 100%;
}

/* Flèches */
.tp-carousel__btn {
	align-items: center;
	background: var(--wp--preset--color--white);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgb(43 42 38 / 0.18);
	color: var(--wp--preset--color--green);
	cursor: pointer;
	display: flex;
	height: 2.75rem;
	justify-content: center;
	position: absolute;
	top: calc(50% - 0.5rem);
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
	width: 2.75rem;
	z-index: 2;
}

.tp-carousel__btn:hover:not(:disabled) {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--cream);
}

.tp-carousel__btn:disabled {
	cursor: default;
	opacity: 0;
	pointer-events: none;
}

.tp-carousel__btn--prev {
	left: max(0.5rem, calc((100% - 1240px) / 2 - 1.375rem));
}

.tp-carousel__btn--next {
	right: max(0.5rem, calc((100% - 1240px) / 2 - 1.375rem));
}

.tp-carousel.is-static .tp-carousel__btn {
	display: none;
}

@media (min-width: 600px) {
	.tp-carousel {
		--tp-slide: 40vw;
	}
}

@media (min-width: 1024px) {
	.tp-carousel {
		--tp-slide: calc((min(100vw - 2rem, 1240px) - 3 * 0.75rem) / 4.3);
	}

	.tp-galerie__head::after {
		height: 5rem;
		right: 12%;
		top: -1rem;
		width: 5rem;
	}
}

/* ==========================================================================
   Notre histoire
   ========================================================================== */
.tp-histoire {
	/* clip horizontal seulement : le soleil peut dépasser en haut */
	overflow-x: clip;
	position: relative;
}

.tp-histoire__grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.tp-histoire__body {
	position: relative;
}

.tp-histoire__body > * {
	margin-block: 0;
}

.tp-histoire__body > * + * {
	margin-block-start: 1rem;
}

/* Signature manuscrite, avec un petit cœur */
.tp-histoire__body > .tp-signature {
	color: var(--wp--preset--color--green);
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
	line-height: 1;
	margin-block-start: 1.25rem;
	transform: rotate(-6deg);
	transform-origin: left center;
}

.tp-signature::after {
	color: var(--wp--preset--color--peach);
	content: " ♡";
	font-size: 0.7em;
}

.tp-histoire__photo {
	margin: 0 !important;
	position: relative;
}

/* Rayures pêche qui dépassent derrière la photo */
.tp-histoire__photo::before {
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--peach-mid) 0 14px, transparent 14px 28px);
	border-radius: 1.5rem;
	content: "";
	height: 80%;
	position: absolute;
	right: -1rem;
	top: 10%;
	width: 45%;
	z-index: 0;
}

.tp-histoire__photo img {
	aspect-ratio: 3 / 2;
	border-radius: 3rem 1.5rem 3.5rem 1.75rem;
	box-shadow: 0 14px 34px rgb(43 42 38 / 0.18);
	display: block;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 1;
}

.tp-histoire__photo figcaption {
	color: var(--wp--preset--color--ink);
	font-size: 0.8rem;
	margin: 0.6rem 0.25rem 0;
	opacity: 0.8;
	position: relative;
	text-align: right;
	z-index: 1;
}

/* Soleil dessiné entre le texte et la photo */
.tp-histoire__grid {
	position: relative;
}

.tp-histoire__grid::after {
	background: url("../img/sun-line.svg") center / contain no-repeat;
	content: "";
	height: 3.25rem;
	position: absolute;
	right: 0;
	top: -3.5rem;
	width: 3.25rem;
}

@media (min-width: 900px) {
	.tp-histoire__grid {
		align-items: center;
		grid-template-columns: 1fr 1.15fr;
	}

	.tp-histoire__grid::after {
		height: 5.5rem;
		left: calc(46% - 2.75rem);
		right: auto;
		top: 8%;
		width: 5.5rem;
	}

	.tp-histoire__body {
		padding-right: 3rem;
	}

	.tp-histoire__photo::before {
		right: -2.5rem;
	}
}

/* ==========================================================================
   Réservation (formulaire Ninja Forms n°2, restylé sans toucher aux champs)
   ========================================================================== */
.tp-reservation__card {
	border-radius: 2rem;
	display: grid;
	gap: var(--wp--preset--spacing--40);
	overflow: hidden;
	padding: 2rem 1.25rem 1.25rem;
	position: relative;
}

/* Rayures pêche en haut (mobile) puis sur le bord gauche (desktop) */
.tp-reservation__card::before {
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--peach-mid) 0 16px, transparent 16px 32px);
	content: "";
	height: 1rem;
	inset: 0 0 auto;
	position: absolute;
}

/* Branche de feuillage */
.tp-reservation__card::after {
	background: url("../img/leaves.svg") center / contain no-repeat;
	bottom: -0.75rem;
	content: "";
	height: 7rem;
	pointer-events: none;
	position: absolute;
	right: -0.5rem;
	transform: rotate(18deg);
	width: 4rem;
}

.tp-reservation__intro,
.tp-reservation__form {
	position: relative;
	z-index: 1;
}

.tp-reservation__intro > * {
	margin-block: 0;
}

.tp-reservation__intro > * + * {
	margin-block-start: 1rem;
}

.tp-reservation__title {
	color: var(--wp--preset--color--green);
	font-size: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
}

.tp-reservation__lead {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.tp-reservation__notice {
	background: rgb(255 251 244 / 0.7);
	border-left: 4px solid var(--wp--preset--color--peach);
	border-radius: 0 0.75rem 0.75rem 0;
	font-size: 0.95rem;
	padding: 0.85rem 1rem;
}

.tp-reservation__form {
	border-radius: 1.5rem;
	box-shadow: 0 10px 30px rgb(168 64 26 / 0.08);
	padding: 1.25rem;
}

/* --- Ninja Forms ------------------------------------------------------- */
.tp-reservation .nf-form-cont {
	font-size: 1rem;
}

.tp-reservation .nf-form-fields-required {
	font-size: 0.85rem;
	margin-bottom: 1rem;
	opacity: 0.85;
}

.tp-reservation .ninja-forms-req-symbol {
	color: var(--wp--preset--color--terracotta);
}

.tp-reservation nf-fields-wrap {
	display: grid;
	gap: 1rem 1.25rem;
}

.tp-reservation .nf-form-content .nf-field-container {
	clear: none;
	margin: 0;
}

.tp-reservation .nf-form-content .nf-field-label {
	margin: 0 0 0.35rem;
}

.tp-reservation .nf-form-content .nf-field-label label,
.tp-reservation .nf-form-content .nf-field-label .nf-label-span {
	color: var(--wp--preset--color--ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.tp-reservation .nf-form-content input:not([type="submit"]):not([type="button"]),
.tp-reservation .nf-form-content select,
.tp-reservation .nf-form-content textarea {
	background-color: var(--wp--preset--color--cream);
	border: 1.5px solid var(--wp--preset--color--peach-mid);
	border-radius: 0.75rem;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 1rem;
	height: 3rem;
	padding: 0 0.9rem;
	width: 100%;
}

.tp-reservation .nf-form-content select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E4A3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 1.1rem;
	padding-right: 2.5rem;
}

.tp-reservation .nf-form-content input:focus,
.tp-reservation .nf-form-content select:focus {
	border-color: var(--wp--preset--color--green);
	outline: 2px solid var(--wp--preset--color--green);
	outline-offset: 1px;
}

/* Date sur une ligne, heure + minutes en dessous (mobile) ; tout sur une ligne au-delà */
.tp-reservation .date-container .nf-field-element {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 1fr 1fr;
}

.tp-reservation .date-container .pikaday__container {
	grid-column: 1 / -1;
}

@media (min-width: 480px) {
	.tp-reservation .date-container .nf-field-element {
		grid-template-columns: 1fr 7.5rem 7.5rem;
	}

	.tp-reservation .date-container .pikaday__container {
		grid-column: auto;
	}
}

.tp-reservation .date-container .time-wrap {
	float: none !important;
}

.tp-reservation .date-container .time-wrap select {
	background-position: right 0.5rem center;
	margin: 0;
	padding: 0 1.85rem 0 0.6rem;
}

/* Très petits écrans : « Minutes » tient en entier */
@media (max-width: 399px) {
	.tp-reservation .date-container .time-wrap select {
		font-size: 0.9rem;
	}
}

/* Erreurs et message de confirmation */
.tp-reservation .nf-error-msg,
.tp-reservation .nf-error .nf-error-msg {
	color: var(--wp--preset--color--terracotta);
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 0.35rem;
}

.tp-reservation .nf-error.field-wrap .nf-field-element::after {
	display: none;
}

.tp-reservation .nf-error .ninja-forms-field {
	border-color: var(--wp--preset--color--terracotta) !important;
}

.tp-reservation .nf-response-msg {
	background: var(--wp--preset--color--sage-pale);
	border-radius: 1rem;
	color: var(--wp--preset--color--green);
	font-weight: 600;
}

.tp-reservation .nf-response-msg:not(:empty) {
	padding: 1rem 1.25rem;
}

/* Bouton Envoyer */
.tp-reservation .submit-container .nf-field-element {
	display: flex;
	justify-content: flex-end;
}

.tp-reservation .nf-form-content input[type="submit"],
.tp-reservation .nf-form-content input[type="button"] {
	background: var(--wp--preset--color--peach);
	border: 0;
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	height: auto;
	padding: 0.85rem 2.25rem;
	transition: background-color 0.2s ease, color 0.2s ease;
	width: 100%;
}

.tp-reservation .nf-form-content input[type="submit"]:hover,
.tp-reservation .nf-form-content input[type="submit"]:focus-visible {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--cream);
}

.tp-reservation .nf-form-content input[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.6;
}

@media (min-width: 700px) {
	.tp-reservation nf-fields-wrap {
		grid-template-columns: 1fr 1fr;
	}

	/* Date/Heure, contact et bouton sur toute la largeur ; personnes + nom côte à côte */
	.tp-reservation nf-field:has(.date-container),
	.tp-reservation nf-field:has([data-nf-field-type="submit"]) {
		grid-column: 1 / -1;
	}

	.tp-reservation nf-field:has(#nf-field-8-container) {
		grid-column: 1 / -1;
	}

	.tp-reservation .nf-form-content input[type="submit"] {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.tp-reservation__card {
		align-items: center;
		grid-template-columns: 0.85fr 1.15fr;
		padding: 2.5rem 2.5rem 2.5rem 5.5rem;
	}

	.tp-reservation__card::before {
		background: repeating-linear-gradient(90deg, var(--wp--preset--color--peach-mid) 0 14px, var(--wp--preset--color--peach) 14px 28px);
		height: auto;
		inset: 0 auto 0 0;
		width: 3.5rem;
	}

	.tp-reservation__card::after {
		bottom: -0.5rem;
		height: 8.5rem;
		left: 0.6rem;
		right: auto;
		transform: rotate(-8deg);
		width: 4.5rem;
	}

	.tp-reservation__form {
		padding: 1.75rem;
	}
}

/* ==========================================================================
   Pied de page — infos pratiques (#infos)
   ========================================================================== */
.tp-footer {
	overflow: hidden;
	position: relative;
}

/* Bande de rayures sauge en haut */
.tp-footer::before {
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--sage) 0 22px, transparent 22px 44px);
	content: "";
	height: 1.25rem;
	inset: 0 0 auto;
	position: absolute;
}

/* Feuillage en bas à droite */
.tp-footer::after {
	background: url("../img/leaves.svg") center / contain no-repeat;
	bottom: -1rem;
	content: "";
	height: 8rem;
	pointer-events: none;
	position: absolute;
	right: -0.5rem;
	transform: rotate(-20deg);
	width: 4.5rem;
}

.tp-footer > * {
	position: relative;
	z-index: 1;
}

.tp-footer__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: var(--wp--preset--spacing--40);
}

.tp-footer__grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.tp-footer__grid > * {
	margin: 0 !important;
}

.tp-info {
	padding-left: 2.25rem;
	position: relative;
}

.tp-info > * {
	margin-block: 0;
}

.tp-info > * + * {
	margin-block-start: 0.5rem;
}

/* Icône devant chaque bloc (couleur pilotée par background-color) */
.tp-info::before {
	background-color: var(--wp--preset--color--green);
	content: "";
	height: 1.5rem;
	left: 0;
	-webkit-mask: var(--tp-icon) center / contain no-repeat;
	mask: var(--tp-icon) center / contain no-repeat;
	position: absolute;
	top: 0.1rem;
	width: 1.5rem;
}

.tp-info--pin { --tp-icon: url("../img/icon-pin.svg"); }
.tp-info--clock { --tp-icon: url("../img/icon-clock.svg"); }
.tp-info--phone { --tp-icon: url("../img/icon-phone.svg"); }

.tp-info__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tp-info a {
	font-weight: 600;
}

.tp-info__link {
	font-size: 0.9rem;
}

/* Lien Instagram avec son icône */
.tp-info__instagram a {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
}

.tp-info__instagram a::before {
	background-color: currentColor;
	content: "";
	height: 1.15rem;
	-webkit-mask: url("../img/icon-instagram.svg") center / contain no-repeat;
	mask: url("../img/icon-instagram.svg") center / contain no-repeat;
	width: 1.15rem;
}

.tp-info > .tp-info__cta {
	margin-block-start: 1.25rem;
}

/* Tableau des horaires */
.tp-hours {
	margin: 0;
}

.tp-hours table {
	border-collapse: collapse;
	font-size: 0.95rem;
	width: auto;
}

.tp-hours td {
	border: 0;
	border-bottom: 1px dashed rgb(46 74 58 / 0.2);
	padding: 0.3rem 1.5rem 0.3rem 0;
}

.tp-hours tr:last-child td {
	border-bottom: 0;
}

.tp-hours td:last-child {
	font-weight: 600;
	padding-right: 0;
	white-space: nowrap;
}

.tp-footer__bottom {
	border-top: 1px solid rgb(46 74 58 / 0.15);
	margin-top: var(--wp--preset--spacing--50);
	padding-right: 3.5rem;
	padding-top: var(--wp--preset--spacing--30);
}

.tp-footer__bottom > * {
	margin: 0;
}

/* « Sunrise… · Sunset… » : une ligne sur grand écran, deux sur mobile */
.tp-footer__br {
	display: none;
}

.tp-footer__logo img {
	aspect-ratio: 622 / 352;
	display: block;
}

@media (min-width: 700px) {
	.tp-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.tp-footer__grid {
		grid-template-columns: 1fr 1.2fr 1fr;
	}

	.tp-footer::after {
		height: 11rem;
		right: 0;
		width: 5.5rem;
	}

}

/* ==========================================================================
   Téléphones (< 600 px) : textes et boutons centrés dans les cartes Sunrise /
   Sunset, « Qui est derrière Tempaurel ? », l'intro de la réservation et le
   pied de page (le formulaire lui-même reste aligné à gauche).
   ========================================================================== */
@media (max-width: 599px) {
	.tp-card__body,
	.tp-histoire__body,
	.tp-reservation__intro,
	.tp-footer {
		text-align: center;
	}

	.tp-card__body .wp-block-buttons,
	.tp-histoire__body .wp-block-buttons,
	.tp-reservation__intro .wp-block-buttons,
	.tp-footer .wp-block-buttons {
		justify-content: center;
	}

	/* Cartes : soleil / lune au centre */
	.tp-card::after {
		left: 50%;
		transform: translateX(-50%);
	}

	/* Signature : inclinaison autour de son centre */
	.tp-histoire__body > .tp-signature {
		transform-origin: center;
	}

	/* Message ⚠️ : le trait pêche passe en haut */
	.tp-reservation__notice {
		border-left: 0;
		border-radius: 0.75rem;
		border-top: 4px solid var(--wp--preset--color--peach);
	}

	/* Pied de page : icônes au-dessus de chaque bloc, horaires centrés */
	.tp-info {
		padding-left: 0;
	}

	.tp-info::before {
		display: block;
		margin: 0 auto 0.5rem;
		position: static;
	}

	.tp-hours table {
		margin-inline: auto;
	}

	.tp-hours td {
		text-align: left;
	}

	.tp-footer__bottom {
		align-items: center;
		flex-direction: column;
		justify-content: center;
		padding-inline: 3.5rem;
		text-align: center;
	}

	.tp-footer__sep {
		display: none;
	}

	.tp-footer__br {
		display: inline;
	}

	/* Pied de page : plus d'air entre Adresse, Horaires et Contact */
	.tp-footer__grid {
		gap: var(--wp--preset--spacing--60);
	}

	/* Formulaire de réservation centré (libellés, champs, messages) */
	.tp-reservation__form .nf-form-fields-required,
	.tp-reservation__form .nf-field-label,
	.tp-reservation__form .nf-error-msg,
	.tp-reservation__form .nf-response-msg {
		text-align: center;
	}

	.tp-reservation__form .nf-field-label {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.tp-reservation .nf-form-content input:not([type="submit"]):not([type="button"]),
	.tp-reservation .nf-form-content select {
		text-align: center;
		text-align-last: center;
	}
}
