/* ==========================================================
   CHEZ MAMY — MODULE "CONTENU EN PRÉPARATION" V3
   La Ferme de Flo

   Module additionnel. S'appuie sur la base structurelle
   des classes .lodging-* (fichier gite-le-grenier).
   Ne contient QUE ce qui n'existe pas dans cette base.
   Les tokens sont appelés avec valeur de repli, le module
   reste donc autonome si la base n'est pas chargée.

   V2 — ajout du module de boutons de réservation (section 09)
        lié au sous-domaine chezmamy.lafermedeflo.fr
   V3 — respiration entre les boutons, inversion du bouton
        téléphone sur le fond vert du bloc de réservation

   SOMMAIRE
   01. TOKENS DU MODULE
   02. BANDEAU DE PRÉPARATION
   03. PLACEHOLDER MÉDIA — BASE
   04. PLACEHOLDER MÉDIA — VARIANTES
   05. GRILLE DES ZONES
   06. TEXTES DE ZONE
   07. VALEURS "À CONFIRMER"
   08. INTRODUCTION GÉNÉRALE
   09. BOUTONS DE RÉSERVATION
   10. TABLETTE
   11. MOBILE
   12. MOUVEMENTS RÉDUITS
   13. IMPRESSION
   ========================================================== */


/* ==========================================================
   01. TOKENS DU MODULE
   ========================================================== */

:root {
	--mamy-green: var(--flo-grenier-green, #5b8e01);
	--mamy-green-dark: var(--flo-grenier-green-dark, #314b18);
	--mamy-green-deep: var(--flo-grenier-green-deep, #223512);
	--mamy-cream: var(--flo-grenier-cream, #f7f4ec);
	--mamy-white: var(--flo-grenier-white, #ffffff);
	--mamy-text: var(--flo-grenier-text, #30342d);
	--mamy-muted: var(--flo-grenier-muted, #687062);

	--mamy-radius-small: var(--flo-grenier-radius-small, 16px);
	--mamy-radius-medium: var(--flo-grenier-radius-medium, 24px);
	--mamy-radius-large: var(--flo-grenier-radius-large, 36px);

	--mamy-shadow-card: var(--flo-grenier-shadow-card, 0 12px 30px rgba(42, 54, 31, 0.09));

	--mamy-placeholder-bg: #f2f5ea;
	--mamy-placeholder-stripe: rgba(91, 142, 1, 0.055);
	--mamy-placeholder-border: rgba(91, 142, 1, 0.28);

	--mamy-btn-shadow: 0 8px 20px rgba(49, 75, 24, 0.22);
	--mamy-btn-shadow-hover: 0 12px 28px rgba(49, 75, 24, 0.30);
}


/* ==========================================================
   02. BANDEAU DE PRÉPARATION
   ========================================================== */

.mamy-notice-row {
	width: min(1200px, calc(100% - 40px));
	box-sizing: border-box;
	margin-right: auto !important;
	margin-left: auto !important;
	margin-top: 30px !important;
}

.mamy-notice {
	margin-bottom: 0 !important;
}

.mamy-notice > .wpb_wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	box-sizing: border-box;
	padding: 17px 22px;
	background: #fdf8ea;
	border: 1px solid rgba(212, 160, 35, 0.30);
	border-radius: var(--mamy-radius-small);
}

.mamy-notice__icon {
	display: inline-flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--mamy-white);
	border: 1px solid rgba(212, 160, 35, 0.25);
	border-radius: 12px;
}

.mamy-notice__icon svg {
	display: block;
	width: 25px;
	height: 25px;
}

.mamy-notice p {
	margin: 0;
	color: #6a5211;
	font-size: 15.5px;
	line-height: 1.6;
}

.mamy-notice a {
	color: var(--mamy-green-dark);
	font-weight: 700;
	text-decoration: underline;
}


/* ==========================================================
   03. PLACEHOLDER MÉDIA — BASE
   ========================================================== */

.mamy-media {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	box-sizing: border-box;
	padding: 20px;
	gap: 14px;
	overflow: hidden;
	background-color: var(--mamy-placeholder-bg);
	background-image:
		repeating-linear-gradient(
			135deg,
			var(--mamy-placeholder-stripe) 0,
			var(--mamy-placeholder-stripe) 10px,
			transparent 10px,
			transparent 22px
		);
	border: 2px dashed var(--mamy-placeholder-border);
	border-radius: var(--mamy-radius-medium);
	text-align: center;
}

.mamy-media__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	background: var(--mamy-white);
	border: 1px solid rgba(91, 142, 1, 0.14);
	border-radius: 18px;
	box-shadow: 0 8px 18px rgba(42, 54, 31, 0.08);
}

.mamy-media__icon svg {
	display: block;
	width: 38px;
	height: 38px;
}

.mamy-media__label {
	display: inline-block;
	padding: 7px 15px;
	background: var(--mamy-white);
	border: 1px solid rgba(49, 75, 24, 0.10);
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(42, 54, 31, 0.07);
	color: var(--mamy-green-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
}


/* ==========================================================
   04. PLACEHOLDER MÉDIA — VARIANTES
   ========================================================== */

.mamy-hero-placeholder {
	width: 100%;
	height: 100%;
	margin: 0 !important;
}

.mamy-hero-placeholder > .wpb_wrapper {
	height: 100%;
}

.mamy-media--hero {
	height: 100%;
	min-height: 570px;
	aspect-ratio: auto;
	border-radius: 0;
	border: 0;
	border-left: 2px dashed var(--mamy-placeholder-border);
}

.mamy-media--dark {
	background-color: rgba(255, 255, 255, 0.06);
	background-image:
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.05) 0,
			rgba(255, 255, 255, 0.05) 10px,
			transparent 10px,
			transparent 22px
		);
	border-left-color: rgba(255, 255, 255, 0.22);
}

.mamy-media--dark .mamy-media__icon {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.mamy-media--dark .mamy-media__label {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: none;
	color: var(--mamy-white);
}


/* ==========================================================
   05. GRILLE DES ZONES
   ========================================================== */

.mamy-zones {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -12px !important;
}

.mamy-zones > .vc_column_container {
	display: flex;
	padding: 12px;
}

.mamy-zones > .vc_column_container > .vc_column-inner {
	display: flex;
	width: 100%;
	padding: 0 !important;
}

.mamy-zone {
	width: 100%;
	margin-bottom: 0 !important;
}

.mamy-zone > .wpb_wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 16px 24px;
	background: var(--mamy-white);
	border: 1px solid rgba(49, 75, 24, 0.10);
	border-radius: var(--mamy-radius-medium);
	box-shadow: var(--mamy-shadow-card);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease;
}

.mamy-zone:hover > .wpb_wrapper {
	border-color: rgba(91, 142, 1, 0.25);
	box-shadow: 0 18px 38px rgba(42, 54, 31, 0.13);
	transform: translateY(-4px);
}


/* ==========================================================
   06. TEXTES DE ZONE
   ========================================================== */

.mamy-zone h3 {
	margin: 20px 8px 8px;
	color: var(--mamy-green-dark);
	font-size: 22px;
	line-height: 1.2;
	text-transform: none;
}

.mamy-zone p {
	margin: 0 8px;
	color: var(--mamy-muted);
	font-size: 15.5px;
	line-height: 1.62;
}


/* ==========================================================
   07. VALEURS "À CONFIRMER"
   ========================================================== */

.mamy-pending .lodging-summary__layout p strong {
	color: var(--mamy-muted);
	font-style: italic;
}

.mamy-pending .lodging-mini-icon {
	opacity: 0.65;
}


/* ==========================================================
   08. INTRODUCTION GÉNÉRALE
   ========================================================== */

.mamy-intro {
	max-width: 860px;
	margin-right: auto !important;
	margin-left: auto !important;
	text-align: center;
}

.mamy-intro h2 {
	margin-bottom: 24px;
}


/* ==========================================================
   09. BOUTONS DE RÉSERVATION

   Modificateurs nouveaux, absents de la base .lodging-button.
   --reserve : action principale, vers le moteur de réservation
   --phone   : action secondaire, contact téléphonique
   --inline  : mise côte à côte dans le héros

   Spécificité doublée pour passer devant la base quel que
   soit l'ordre de chargement des feuilles.
   ========================================================== */

.lodging-button.lodging-button--inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0 16px 16px 0 !important;
}

.lodging-button.lodging-button--reserve a.vc_btn3 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 16px 34px;
	border: 2px solid transparent;
	border-radius: 999px;
	background-color: var(--mamy-green);
	background-image: linear-gradient(135deg, var(--mamy-green) 0%, var(--mamy-green-dark) 100%);
	box-shadow: var(--mamy-btn-shadow);
	color: var(--mamy-white);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		filter 220ms ease;
}

.lodging-button.lodging-button--reserve a.vc_btn3:hover,
.lodging-button.lodging-button--reserve a.vc_btn3:focus-visible {
	box-shadow: var(--mamy-btn-shadow-hover);
	color: var(--mamy-white);
	filter: brightness(1.07);
	transform: translateY(-2px);
}

.lodging-button.lodging-button--reserve a.vc_btn3:focus-visible {
	outline: 3px solid var(--mamy-green-deep);
	outline-offset: 3px;
}

.lodging-button.lodging-button--phone a.vc_btn3 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 14px 30px;
	border: 2px solid var(--mamy-green-dark);
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--mamy-green-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	transition:
		transform 220ms ease,
		background-color 220ms ease,
		color 220ms ease;
}

.lodging-button.lodging-button--phone a.vc_btn3:hover,
.lodging-button.lodging-button--phone a.vc_btn3:focus-visible {
	background-color: var(--mamy-green-dark);
	color: var(--mamy-white);
	transform: translateY(-2px);
}

.lodging-button.lodging-button--phone a.vc_btn3:focus-visible {
	outline: 3px solid var(--mamy-green-deep);
	outline-offset: 3px;
}


/* --- Bloc de réservation sur fond vert --------------------- */

.lodging-booking .lodging-button.lodging-button--reserve {
	margin: 6px 0 18px !important;
}

.lodging-booking .lodging-button.lodging-button--phone {
	margin: 0 0 10px !important;
}

.lodging-booking .lodging-button.lodging-button--reserve a.vc_btn3 {
	padding: 18px 40px;
	font-size: 17px;
}

.lodging-booking .lodging-button.lodging-button--phone a.vc_btn3 {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.70);
	color: var(--mamy-white);
}

.lodging-booking .lodging-button.lodging-button--phone a.vc_btn3:hover,
.lodging-booking .lodging-button.lodging-button--phone a.vc_btn3:focus-visible {
	background-color: var(--mamy-white);
	border-color: var(--mamy-white);
	color: var(--mamy-green-dark);
}

.lodging-booking .lodging-button.lodging-button--phone a.vc_btn3:focus-visible {
	outline: 3px solid var(--mamy-white);
	outline-offset: 3px;
}


/* ==========================================================
   10. TABLETTE
   ========================================================== */

@media screen and (max-width: 991px) {

	.mamy-notice-row {
		width: min(100% - 30px, 1200px);
	}

	.mamy-media--hero {
		min-height: 480px;
	}

	.mamy-zone h3 {
		font-size: 21px;
	}

	.lodging-button.lodging-button--reserve a.vc_btn3 {
		padding: 15px 30px;
		font-size: 15.5px;
	}

	.lodging-booking .lodging-button.lodging-button--reserve a.vc_btn3 {
		padding: 16px 34px;
		font-size: 16px;
	}

}


/* ==========================================================
   11. MOBILE
   ========================================================== */

@media screen and (max-width: 767px) {

	.mamy-notice-row {
		width: calc(100% - 22px);
		margin-top: 18px !important;
	}

	.mamy-notice > .wpb_wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 18px;
	}

	.mamy-notice p {
		font-size: 15px;
	}

	.mamy-zones > .vc_column_container {
		width: 100%;
	}

	.mamy-media--hero {
		min-height: 300px;
		max-height: 400px;
		border-left: 0;
		border-bottom: 2px dashed var(--mamy-placeholder-border);
	}

	.mamy-media--dark {
		border-bottom-color: rgba(255, 255, 255, 0.22);
	}

	.mamy-media__icon {
		width: 54px;
		height: 54px;
		border-radius: 16px;
	}

	.mamy-media__icon svg {
		width: 33px;
		height: 33px;
	}

	.mamy-intro {
		text-align: left;
	}

	.lodging-button.lodging-button--inline {
		display: block;
		margin: 0 0 14px 0 !important;
	}

	.lodging-button.lodging-button--reserve a.vc_btn3,
	.lodging-button.lodging-button--phone a.vc_btn3 {
		width: 100%;
		text-align: center;
	}

	.lodging-booking .lodging-button.lodging-button--reserve {
		margin: 4px 0 14px !important;
	}

}


/* ==========================================================
   12. MOUVEMENTS RÉDUITS
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

	.mamy-zone > .wpb_wrapper {
		transition: none;
	}

	.mamy-zone:hover > .wpb_wrapper {
		transform: none;
	}

	.lodging-button.lodging-button--reserve a.vc_btn3,
	.lodging-button.lodging-button--phone a.vc_btn3 {
		transition: none;
	}

	.lodging-button.lodging-button--reserve a.vc_btn3:hover,
	.lodging-button.lodging-button--phone a.vc_btn3:hover {
		transform: none;
	}

}


/* ==========================================================
   13. IMPRESSION
   ========================================================== */

@media print {

	.mamy-media {
		background: none;
		border-style: solid;
	}

	.mamy-zone > .wpb_wrapper {
		box-shadow: none;
	}

	.lodging-button.lodging-button--reserve a.vc_btn3 {
		background: none;
		box-shadow: none;
		border-color: var(--mamy-green-dark);
		color: var(--mamy-green-dark);
	}

}