/**
 * Page détail Chambre (template single-vv_chambre) + pattern « intro & équipements ».
 * Chargé uniquement sur une page chambre (RGESN). Contrastes RGAA, focus visible,
 * prefers-reduced-motion respecté.
 */

/* ---- Hero : photo (marge à gauche) + encart vert collé tout à gauche ---- */
.vv-hero {
	position: relative;
}

/* Photo à la une, décalée par une marge à gauche. */
.vv-hero__img.wp-block-cover {
	min-height: 50vh;
	margin-left: clamp(2.5rem, 9vw, 11rem);
}

/* Encart vert (couleur du thème « vert-vv »), collé au bord gauche, sur le bas de la photo. */
.vv-hero__card {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	max-width: 41rem;
	margin: 0;
	padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.75rem, 4vw, 3rem);
	background: var(--wp--preset--color--vert-vv, #50614e);
	color: #fff;
}

.vv-hero__card .wp-block-post-title {
	margin: 0 0 2rem;
	color: #fff;
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	line-height: 1.05;
}

/* Les 3 points clés dans l'encart : alignés à gauche, texte en blanc. */
.vv-hero__card .vv-chambre-infos {
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: clamp(1.25rem, 3vw, 2.25rem);
}

/* Les valeurs ne se coupent pas en deux lignes. */
.vv-hero__card .vv-chambre-infos__value {
	white-space: nowrap;
}

/* Séparateurs verticaux entre les 3 points clés. */
.vv-hero__card .vv-chambre-infos__item + .vv-chambre-infos__item {
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	padding-left: clamp(1.25rem, 3vw, 2.25rem);
}

.vv-hero__card .vv-chambre-infos__label {
	color: #fff;
	opacity: 0.85;
}

.vv-hero__card .vv-chambre-infos__value {
	color: #fff;
}

/* Pictogrammes (SVG sombres) repassés en blanc sur le fond coloré. */
.vv-hero__card .vv-chambre-infos__img {
	filter: brightness(0) invert(1);
}

/* ---- Pattern : intro + grille d'équipements ------------------------- */
.vv-chambre-equip .vv-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small, 0.8125rem);
	opacity: 0.65;
	margin-bottom: 0.4rem;
}

.vv-equip-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
	margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

/* Item : pictogramme au-dessus du libellé, centré. */
.vv-equip.wp-block-group {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.6rem;
	margin: 0;
}

.vv-equip__img {
	flex: 0 0 auto;
	margin: 0;
	opacity: 0.85;
}

.vv-equip__img img {
	display: block;
	width: 34px;
	height: 34px;
}

.vv-equip__label {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium, 1rem);
}

/* ---- Sections bas de page (pont / FAQ / CTA) ------------------------ */
.vv-section-head {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.vv-section-head .vv-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small, 0.8125rem);
	opacity: 0.65;
	margin-bottom: 0.4rem;
}

/* CTA Réserver */
.vv-cta {
	text-align: center;
	background: #f4f1ec;
}

.vv-cta .wp-block-buttons {
	justify-content: center;
}

/* ---- Accessibilité -------------------------------------------------- */
.vv-hero__card a:focus-visible,
.vv-cta a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 781px) {
	/* Sur mobile : photo à la une en PLEINE LARGEUR, non rognée. */
	.vv-hero__img.wp-block-cover {
		/* !important : écrase le min-height:50vh en style inline. Sinon la zone
		   vide sous la photo laissait voir le voile (#000 à 10 %) = fond gris. */
		min-height: 0 !important;
		/* Le thème rajoute un padding racine (spacing 50) aux enfants d'un bloc
		   alignfull : c'était la marge gauche/droite de la photo. On l'annule →
		   la photo touche les bords gauche/droite (.vv-hero est déjà pleine largeur). */
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
	}
	/* Voile de fondu (dim) supprimé : la photo s'affiche sans teinte/fond gris. */
	.vv-hero__img .wp-block-cover__background {
		display: none !important;
	}
	/* Pas de marge au-dessus de la photo (elle touche le bord haut). */
	.vv-hero {
		margin-top: 0 !important;
	}
	/* L'image de fond du Cover repasse en flux : affichée entière (non coupée). */
	.vv-hero__img .wp-block-cover__image-background {
		position: relative;
		width: 100%;
		height: auto;
		object-fit: contain;
	}
	/* Encart (titre + infos clés) en flux normal, collé sous la photo (sans marge). */
	.vv-hero__card {
		position: static;
		max-width: none;
		margin-top: 0 !important;
	}
	/* Les 3 infos clés restent sur une seule ligne. */
	.vv-hero__card .vv-chambre-infos {
		flex-wrap: nowrap;
	}
	.vv-equip-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* FAQ affichée en pleine largeur (bord à bord). */
	.vv-chambre-faq {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
	/* « Tarifs & disponibilités » en pleine largeur.
	   !important sur les marges pour battre la règle du thème
	   « .has-global-padding > .alignfull » (marges négatives = padding racine) :
	   sans ça, seule la largeur 100vw s'appliquait → décalage + scroll horizontal. */
	.vv-tarifs.alignfull {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-left: var(--wp--preset--spacing--40, 1.2rem);
		padding-right: var(--wp--preset--spacing--40, 1.2rem);
	}
}

@media (max-width: 600px) {
	/* Réduction légère des infos clés pour tenir sur une seule ligne (petit écran). */
	.vv-hero__card .vv-chambre-infos {
		gap: 0.6rem;
		justify-content: space-between;
	}
	.vv-hero__card .vv-chambre-infos__item + .vv-chambre-infos__item {
		padding-left: 0.6rem;
	}
	.vv-hero__card .vv-chambre-infos__icon .vv-chambre-infos__img {
		width: 22px;
		height: 22px;
	}
	.vv-hero__card .vv-chambre-infos__label {
		font-size: 0.6rem;
	}
	.vv-hero__card .vv-chambre-infos__value {
		font-size: 0.8rem;
		white-space: normal;
	}
}

@media (max-width: 420px) {
	.vv-equip-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Téléphone en bouton dans l'encart CTA (fond vert) -------------- */
.vv-cta-phone {
	margin-top: var(--wp--preset--spacing--40, 1rem);
}

/* Picto + libellé alignés dans le bouton. */
.vv-cta-phone .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

/* Lisibilité du numéro : on neutralise la MAJUSCULE/condensé du style bouton global. */
.vv-cta-phone .wp-block-button.is-style-outline > .wp-block-button__link {
	font-size: 1.05rem;
	letter-spacing: normal;
	text-transform: none;
}

/* Pictogramme téléphone décoratif (masque SVG, hérite de la couleur du texte). */
.vv-cta-phone .wp-block-button__link::before {
	content: "";
	flex: 0 0 auto;
	width: 0.9em;
	height: 0.9em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Focus clavier visible sur fond vert (RGAA) — contour crème lisible. */
.vv-cta-phone .wp-block-button > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--creme, #fbfaf3);
	outline-offset: 3px;
}

/* ---- Bloc « Tarifs & disponibilités » (page détail chambre) -------- */
.vv-tarifs__head {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.vv-tarifs .vv-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small, 0.8125rem);
	opacity: 0.65;
	margin-bottom: 0.4rem;
}

.vv-tarifs__intro {
	margin-top: 0.6rem;
	opacity: 0.8;
}

/* Les deux cartes (tarifs / calendrier) prennent toute la hauteur de leur colonne. */
.vv-tarifs .wp-block-column {
	display: flex;
}

.vv-tarifs .wp-block-column > .wp-block-group {
	width: 100%;
	height: 100%;
}

/* Carte tarifs : fond vert du thème, écho à l'encart du hero. */
.vv-tarifs-card {
	background: var(--wp--preset--color--vert-vv, #50614e);
	color: #fff;
	padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* Pictogrammes sombres repassés en blanc sur le fond vert. */
.vv-tarifs-card .wp-block-image img {
	filter: brightness(0) invert(1);
}

/* Titre de la carte : picto + libellé alignés. */
.vv-tarifs-card__title {
	gap: 0.7rem;
	margin: 0 0 1.25rem;
}

.vv-tarifs-card__title .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}

.vv-tarifs-card__title img {
	display: block;
	width: 26px;
	height: 26px;
}

.vv-tarifs__subtitle {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.vv-tarifs-card__title h3,
.vv-tarifs-card .vv-tarifs__subtitle {
	color: #fff;
}

/* Lignes de prix : libellé à gauche, montant à droite, filet fin. */
.vv-tarifs__grid {
	margin: 0;
}

.vv-tarifs__row {
	margin: 0;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	align-items: baseline;
}

.vv-tarifs__row:last-child {
	border-bottom: none;
}

.vv-tarifs__cap {
	margin: 0;
	opacity: 0.9;
}

.vv-tarifs__price {
	margin: 0;
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
}

/* Note petit-déjeuner. */
.vv-tarifs__note {
	gap: 0.55rem;
	margin: 1.1rem 0 0;
	align-items: center;
}

.vv-tarifs__note .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}

.vv-tarifs__note img {
	display: block;
	width: 20px;
	height: 20px;
}

.vv-tarifs__note p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	opacity: 0.85;
}

/* Séparateur interne. */
.vv-tarifs__sep.wp-block-separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin: 1.4rem 0;
	max-width: none;
	opacity: 1;
}

.vv-tarifs-card .vv-tarifs__subtitle {
	margin-bottom: 0.9rem;
}

/* Pastilles de réduction. */
.vv-reduc-pills {
	gap: 0.5rem;
}

.vv-reduc-pill {
	margin: 0;
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 2px;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Carte calendrier : fond clair, en regard de la carte tarifs. */
.vv-tarifs-cal {
	background: #fff;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	border: 1px solid #e7e2d6;
}

.vv-tarifs-cal .vv-tarifs__subtitle {
	color: var(--wp--preset--color--vert-vv, #50614e);
	text-align: center;
	margin-bottom: 1.1rem;
}

.vv-tarifs-cal .vv-cal {
	max-width: none;
}

@media (max-width: 781px) {
	.vv-tarifs .wp-block-column {
		display: block;
	}
}
