/*
 * Caki Universal Engine - styles publics premium de la fiche produit.
 * Ecrit en CSS natif (aucun preprocesseur requis) pour rester
 * installable tel quel. Aucune donnee produit n'est ici : uniquement
 * de la mise en forme.
 */

.cue-fiche {
	--cue-ink: #14171a;
	--cue-muted: #6b7280;
	--cue-faint: #9aa1a9;
	--cue-accent: #c8102e;
	--cue-accent-ink: #ffffff;
	--cue-accent-soft: #fdecef;
	--cue-border: #ececec;
	--cue-surface: #ffffff;
	--cue-bg-soft: #f7f7f5;
	--cue-shadow-sm: 0 2px 10px rgba(20, 23, 26, 0.06);
	--cue-shadow-lg: 0 24px 60px rgba(20, 23, 26, 0.12);
	--cue-radius-lg: 22px;
	--cue-radius-md: 16px;
	--cue-radius-sm: 10px;
	--cue-gap: 48px;
	--cue-max: 1450px;

	max-width: var(--cue-max);
	margin: 0 auto;
	padding: 32px 24px 96px;
	color: var(--cue-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.cue-fiche *,
.cue-fiche *::before,
.cue-fiche *::after {
	box-sizing: border-box;
}
.cue-fiche svg {
	flex-shrink: 0;
}

/* ---------- Layout general ---------- */
.cue-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.62fr) minmax(340px, 1fr);
	gap: var(--cue-gap);
	align-items: start;
}
.cue-main-col {
	min-width: 0;
}

/* ---------- Galerie ---------- */
.cue-gallery__viewport {
	position: relative;
	border-radius: var(--cue-radius-lg);
	overflow: hidden;
	background: var(--cue-bg-soft);
}
.cue-gallery__main {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.cue-gallery__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease;
}
.cue-gallery__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}
.cue-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cue-gallery__viewport:hover .cue-gallery__slide.is-active img {
	transform: scale(1.045);
}
.cue-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--cue-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--cue-shadow-sm);
	transition: transform 0.2s ease, background 0.2s ease;
	z-index: 2;
}
.cue-gallery__nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.06);
}
.cue-gallery__nav svg {
	width: 20px;
	height: 20px;
}
.cue-gallery__nav--prev {
	left: 16px;
}
.cue-gallery__nav--next {
	right: 16px;
}
.cue-gallery__counter {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(20, 23, 26, 0.72);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	z-index: 2;
}
.cue-gallery__placeholder {
	aspect-ratio: 16 / 10;
	border-radius: var(--cue-radius-lg);
	background: var(--cue-bg-soft);
}
.cue-gallery__thumbs {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 4px;
}
.cue-gallery__thumb {
	flex: 0 0 auto;
	width: 92px;
	height: 68px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--cue-radius-sm);
	overflow: hidden;
	background: var(--cue-bg-soft);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cue-gallery__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}
.cue-gallery__thumb.is-active {
	opacity: 1;
	border-color: var(--cue-ink);
}
.cue-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Bande d'avantages (sous la galerie) ---------- */
.cue-advantages {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}
.cue-advantages__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--cue-ink);
}
.cue-advantages__item .cue-icon--check {
	color: #1a7a4c;
	width: 19px;
	height: 19px;
}

/* ---------- Sections (description, media...) ---------- */
.cue-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 44px;
}
.cue-section {
	padding: 28px;
	border: 1px solid var(--cue-border);
	border-radius: var(--cue-radius-lg);
	background: var(--cue-surface);
}
.cue-section--wide {
	grid-column: 1 / -1;
}
.cue-section h2 {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 750;
	letter-spacing: -0.01em;
}
.cue-section__value {
	line-height: 1.75;
	color: #3d4249;
	font-size: 15.5px;
}
.cue-section--description {
	padding: 40px;
}
.cue-section--description h2 {
	font-size: 26px;
	margin-bottom: 22px;
}
.cue-section--description .cue-section__value {
	font-size: 16.5px;
	line-height: 1.9;
	color: #2c3036;
}
.cue-section--description .cue-section__value p {
	margin: 0 0 20px;
}
.cue-section--description .cue-section__value p:last-child {
	margin-bottom: 0;
}

/* ---------- Colonne resume (carte premium) ---------- */
.cue-summary {
	position: sticky;
	top: 28px;
	padding: 32px;
	border-radius: var(--cue-radius-lg);
	background: var(--cue-surface);
	box-shadow: var(--cue-shadow-lg);
	border: 1px solid rgba(20, 23, 26, 0.05);
}
.cue-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.cue-badge-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cue-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--cue-bg-soft);
	color: #383c41;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cue-badge--link:hover {
	background: var(--cue-ink);
	color: #fff;
}
.cue-badge--checkbox {
	text-transform: none;
	background: var(--cue-accent-soft);
	color: #8a1030;
}
.cue-title {
	margin: 0 0 18px;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.015em;
}
.cue-price {
	margin-bottom: 22px;
	font-size: 28px;
	font-weight: 800;
	color: var(--cue-ink);
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.cue-price ins {
	text-decoration: none;
	color: var(--cue-accent);
}
.cue-price del {
	text-decoration: line-through;
	opacity: 0.55;
	font-size: 0.58em;
	font-weight: 600;
	color: var(--cue-muted);
}
.cue-price bdi {
	font-variant-numeric: tabular-nums;
}

.cue-facts {
	margin: 0 0 26px;
	padding-top: 6px;
	border-top: 1px solid var(--cue-border);
}
.cue-facts__row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cue-border);
}
.cue-facts__row:last-child {
	border-bottom: 0;
	padding-bottom: 8px;
}
.cue-icon {
	width: 21px;
	height: 21px;
	margin-top: 1px;
	color: var(--cue-muted);
}
.cue-facts__text {
	flex: 1;
	min-width: 0;
}
.cue-facts__text dt {
	margin: 0 0 3px;
	font-size: 12.5px;
	color: var(--cue-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.cue-facts__text dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--cue-ink);
	line-height: 1.5;
	word-break: break-word;
}
.cue-facts__row--badges .cue-badge-list {
	margin-top: 2px;
}

/* ---------- CTA / bouton commander ---------- */
.cue-cta {
	margin-bottom: 22px;
}
.cue-cta form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}
.cue-cta .quantity {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--cue-border);
	border-radius: var(--cue-radius-sm);
	overflow: hidden;
	background: var(--cue-bg-soft);
}
.cue-cta .quantity .qty {
	width: 56px;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	-moz-appearance: textfield;
}
.cue-cta .quantity .qty::-webkit-outer-spin-button,
.cue-cta .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.cue-cta .cue-qty-btn {
	width: 40px;
	border: 0;
	background: transparent;
	font-size: 18px;
	font-weight: 700;
	color: var(--cue-ink);
	cursor: pointer;
	transition: background 0.15s ease;
}
.cue-cta .cue-qty-btn:hover {
	background: rgba(20, 23, 26, 0.06);
}
.cue-cta button[type="submit"],
.cue-cta .single_add_to_cart_button,
.cue-cta__fallback {
	flex: 1 1 200px;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--cue-radius-sm);
	background: var(--cue-accent);
	color: var(--cue-accent-ink) !important;
	font-weight: 750;
	font-size: 15.5px;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cue-cta button[type="submit"]:hover,
.cue-cta .single_add_to_cart_button:hover,
.cue-cta__fallback:hover {
	background: #a80d26;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(200, 16, 46, 0.34);
}
.cue-cta button[type="submit"]:active,
.cue-cta .single_add_to_cart_button:active {
	transform: translateY(0);
}

/* ---------- Bloc confiance ---------- */
.cue-trust {
	list-style: none;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--cue-border);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cue-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--cue-muted);
	font-weight: 600;
}
.cue-trust svg {
	width: 19px;
	height: 19px;
	color: #1a7a4c;
}

/* ---------- Boutons generiques (email/telephone/lien/fichier/video) ---------- */
.cue-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--cue-radius-sm);
	background: var(--cue-bg-soft);
	color: var(--cue-ink);
	text-decoration: none;
	font-weight: 650;
	font-size: 13.5px;
	transition: background 0.18s ease, color 0.18s ease;
}
.cue-btn:hover {
	background: var(--cue-ink);
	color: #fff;
}
.cue-btn__icon {
	width: 18px;
	height: 18px;
}

/* ---------- Video / carte ---------- */
.cue-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--cue-radius-md);
	overflow: hidden;
}
.cue-video iframe,
.cue-video .wp-embed-aspect-16-9,
.cue-video embed,
.cue-video object {
	width: 100%;
	height: 100%;
}
.cue-map__frame {
	width: 100%;
	height: 360px;
	border: 0;
	border-radius: var(--cue-radius-md);
}
.cue-map__address {
	margin: 0 0 12px;
	color: var(--cue-muted);
	font-weight: 600;
}
.cue-image {
	max-width: 100%;
	height: auto;
	border-radius: var(--cue-radius-md);
	display: block;
}
.cue-mini-gallery__main {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--cue-radius-md);
	overflow: hidden;
	background: var(--cue-bg-soft);
}
.cue-mini-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
}

/* ---------- Barre sticky mobile ---------- */
.cue-sticky-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	padding-bottom: calc(14px + env(safe-area-inset-bottom));
	background: var(--cue-surface);
	box-shadow: 0 -8px 28px rgba(20, 23, 26, 0.14);
	transform: translateY(100%);
	transition: transform 0.25s ease;
}
.cue-sticky-bar.is-visible {
	transform: translateY(0);
}
.cue-sticky-bar__price {
	font-weight: 800;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cue-sticky-bar__price del {
	display: none;
}
.cue-sticky-bar__btn {
	flex: 0 0 auto;
	padding: 12px 22px;
	border-radius: var(--cue-radius-sm);
	background: var(--cue-accent);
	color: #fff !important;
	font-weight: 750;
	font-size: 14.5px;
	text-decoration: none;
	white-space: nowrap;
}

/* ================= RESPONSIVE ================= */

/* Tablette */
@media (max-width: 1080px) {
	.cue-fiche {
		--cue-gap: 32px;
		padding: 24px 20px 90px;
	}
	.cue-layout {
		grid-template-columns: 1fr;
	}
	.cue-summary {
		position: static;
	}
	.cue-sections {
		grid-template-columns: 1fr;
	}
}

/* Mobile */
@media (max-width: 720px) {
	.cue-fiche {
		padding: 16px 14px 110px;
	}
	.cue-gallery__nav {
		width: 38px;
		height: 38px;
	}
	.cue-gallery__nav--prev {
		left: 10px;
	}
	.cue-gallery__nav--next {
		right: 10px;
	}
	.cue-gallery__thumb {
		width: 74px;
		height: 56px;
	}
	.cue-advantages {
		gap: 8px 16px;
	}
	.cue-summary {
		padding: 22px;
	}
	.cue-section {
		padding: 20px;
	}
	.cue-section--description {
		padding: 24px;
	}
	.cue-section--description h2 {
		font-size: 21px;
	}
	.cue-title {
		font-size: 22px;
	}
	.cue-price {
		font-size: 24px;
	}
	.cue-badge {
		max-width: 46vw;
	}
	.cue-cta form.cart {
		flex-direction: column;
	}
	.cue-cta .quantity {
		align-self: flex-start;
	}
	.cue-sticky-bar {
		display: flex;
	}
}

@media (max-width: 420px) {
	.cue-badge {
		max-width: 38vw;
		font-size: 11.5px;
	}
	.cue-facts__row {
		gap: 10px;
	}
}

/* ================= Reservation par nombre de personnes ================= */
.cue-participants {
	margin: 4px 0 16px;
	width: 100%;
}
.cue-participants__label {
	display: block;
	margin-bottom: 8px;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--cue-muted);
}
.cue-participants__control {
	position: relative;
}
.cue-participants__select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	padding: 14px 44px 14px 16px;
	border: 1px solid var(--cue-border);
	border-radius: var(--cue-radius-sm);
	background-color: var(--cue-bg-soft);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	font-size: 15px;
	font-weight: 650;
	color: var(--cue-ink);
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cue-participants__select:hover {
	border-color: #c9ccd1;
}
.cue-participants__select:focus {
	outline: none;
	border-color: var(--cue-ink);
	box-shadow: 0 0 0 3px rgba(20, 23, 26, 0.08);
}

/* Le champ quantite natif WooCommerce reste dans le DOM (pour ne rien
 * casser dans WooCommerce) mais est masque visuellement des qu'un
 * selecteur "Nombre de personnes" est present : le client ne doit voir
 * qu'un seul champ. */
.cue-cta form.cart.cue-has-participants .quantity {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.cue-cta form.cart.cue-has-participants {
	display: flex;
	flex-direction: column;
	gap: 0;
}

@media (max-width: 720px) {
	.cue-participants__select {
		padding: 13px 40px 13px 14px;
		font-size: 14.5px;
	}
}

/* Correctif v1.2.1 : bouton Commander avec selecteur de participants.
 * En disposition verticale, l'ancien flex-basis: 200px agrandissait
 * le bouton en hauteur. On neutralise cette base et on conserve un CTA
 * compact sur toute la largeur. */
.cue-cta form.cart.cue-has-participants .single_add_to_cart_button,
.cue-cta form.cart.cue-has-participants button[type="submit"] {
	flex: 0 0 auto !important;
	width: 100% !important;
	min-height: 50px !important;
	height: auto !important;
	padding: 15px 24px !important;
	margin: 0 !important;
	align-self: stretch;
	line-height: 1.2 !important;
}
