/*!
 * Séjour à Médine — Vidéo et design de l'offre 1.1.0
 * Vidéo : règles préfixées « samvo ». Étapes et design : règles « smd » (en fin de fichier),
 * limitées à la page de l'offre.
 */

/* ---------- Jetons ---------- */
.samvo,
.samvo-theatre {
	--samvo-nuit: #0d241b;
	--samvo-vert: #173a2d;
	--samvo-or: #deca95;
	--samvo-or-clair: #e9d6a0;
	--samvo-ivoire: #fbf8f2;
	--samvo-ligne: rgba(233, 214, 160, 0.3);
	--samvo-f-texte: var(--sam-f-texte, "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif);
	--samvo-f-titre: var(--sam-f-titre, "Fraunces", Georgia, "Times New Roman", serif);
	box-sizing: border-box;
	font-family: var(--samvo-f-texte);
	color: var(--samvo-ivoire);
	-webkit-font-smoothing: antialiased;
}

.samvo *,
.samvo *::before,
.samvo *::after,
.samvo-theatre *,
.samvo-theatre *::before,
.samvo-theatre *::after {
	box-sizing: border-box;
}

/* Sonde lue par le script : si cette règle n'est pas appliquée, rien n'est monté. */
.samvo-sonde {
	--samvo-pret: 1;
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/*
 * Remises à zéro (spécificité 0,1,1 : elles passent devant les styles génériques du thème
 * comme « button {} » ou « p {} » ; les règles du composant, en 0,2,0 et plus, passent devant elles).
 */
.samvo p,
.samvo-theatre p,
.samvo-theatre h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-transform: none;
}

.samvo button,
.samvo-theatre button {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	cursor: pointer;
}

/* ---------- Cadre d'origine (la photo reste en place comme gabarit et comme repli) ---------- */
.samvo-hote {
	isolation: isolate;
}

.samvo-hote--rel {
	position: relative;
}

.samvo-hote.samvo-hote--pret > :not(.samvo) {
	visibility: hidden !important;
}

/* ---------- Affiche ---------- */
.samvo {
	position: absolute;
	inset: 0;
	z-index: 6;
	overflow: hidden;
	border-radius: inherit;
	background: var(--samvo-nuit);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.55s ease, visibility 0s linear 0.55s;
	-webkit-tap-highlight-color: transparent;
}

.samvo.samvo--vu {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.55s ease, visibility 0s;
}

.samvo .samvo-fond,
.samvo .samvo-sur,
.samvo .samvo-chips {
	display: none;
}

.samvo .samvo-ecran {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	text-align: left;
}

.samvo .samvo-cadre {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background: var(--samvo-nuit);
}

.samvo .samvo-cadre::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 24, 18, 0) 48%, rgba(8, 24, 18, 0.62) 100%);
	pointer-events: none;
}

.samvo .samvo-affiche {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: 51% 40%;
	transform: scale(1.02);
	transform-origin: 51% 62%;
}

.samvo.samvo--actif .samvo-affiche {
	animation: samvo-kb 18s ease-in-out infinite alternate;
}

.samvo .samvo-reflet {
	position: absolute;
	inset: -10% -40%;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 238, 196, 0.16) 50%, transparent 58%);
	transform: translate3d(-75%, 0, 0);
	pointer-events: none;
}

.samvo.samvo--actif .samvo-reflet {
	animation: samvo-reflet 7.5s ease-in-out 1.2s infinite;
}

/* Barre « Regarder la vidéo » : même langage que l'ancienne légende vitrée. */
.samvo .samvo-barre {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--samvo-ligne);
	border-radius: 14px;
	background: rgba(10, 28, 22, 0.6);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.samvo .samvo-play {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f3e4b9 0%, #d5b678 55%, #c4a05c 100%);
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	color: var(--samvo-vert);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.samvo .samvo-play::before {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid rgba(233, 214, 160, 0.6);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.samvo.samvo--actif .samvo-play::before {
	animation: samvo-halo 2.8s ease-out 0.8s infinite;
}

.samvo .samvo-play svg {
	width: 44%;
	height: 44%;
	margin-left: 8%;
	fill: currentcolor;
}

.samvo .samvo-txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.samvo .samvo-t1 {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.005em;
}

.samvo .samvo-t2 {
	overflow: hidden;
	color: rgba(251, 248, 242, 0.88);
	font-size: 12.5px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.samvo .samvo-t2 b {
	color: var(--samvo-or-clair);
	font-weight: 700;
}

.samvo .samvo-t2c,
.samvo[data-taille="s"] .samvo-t2l {
	display: none;
}

.samvo[data-taille="s"] .samvo-t2c {
	display: inline;
}

.samvo .samvo-ecran:hover .samvo-play,
.samvo .samvo-ecran:focus-visible .samvo-play {
	transform: scale(1.07);
}

.samvo .samvo-ecran:hover .samvo-barre,
.samvo .samvo-ecran:focus-visible .samvo-barre {
	border-color: rgba(233, 214, 160, 0.55);
	background: rgba(10, 28, 22, 0.72);
}

.samvo .samvo-ecran:focus-visible {
	outline: 3px solid var(--samvo-or-clair);
	outline-offset: -3px;
}

/* Les états du thème (survol, focus, appui sur les boutons) ne doivent pas repeindre le composant. */
.samvo .samvo-ecran,
.samvo .samvo-ecran:hover,
.samvo .samvo-ecran:focus,
.samvo .samvo-ecran:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--samvo-ivoire);
}

.samvo .samvo-chip:focus,
.samvo .samvo-chip:active {
	background: rgba(251, 248, 242, 0.06);
	box-shadow: none;
	color: var(--samvo-ivoire);
}

/* Tailles */
.samvo[data-taille="s"] .samvo-barre {
	right: 10px;
	bottom: 10px;
	left: 10px;
	gap: 10px;
	padding: 8px 12px 8px 8px;
}

.samvo[data-taille="s"] .samvo-play {
	width: 40px;
	height: 40px;
}

.samvo[data-taille="s"] .samvo-t1 {
	font-size: 14.5px;
}

.samvo[data-taille="s"] .samvo-t2 {
	font-size: 12px;
}

.samvo[data-taille="l"] .samvo-barre {
	right: 16px;
	bottom: 16px;
	left: 16px;
	gap: 14px;
	padding: 12px 20px 12px 12px;
}

.samvo[data-taille="l"] .samvo-play {
	width: 54px;
	height: 54px;
}

.samvo[data-taille="l"] .samvo-t1 {
	font-size: 17px;
}

.samvo[data-taille="l"] .samvo-t2 {
	font-size: 13.5px;
}

/* ---------- Mode « cadre » : emplacement vertical ou carré ---------- */
.samvo[data-mode="cadre"] {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 7% 6%;
}

.samvo[data-mode="cadre"] .samvo-fond {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
}

.samvo[data-mode="cadre"] .samvo-fond img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	object-fit: cover;
	filter: blur(26px) saturate(1.15) brightness(0.55);
	transform: scale(1.3);
}

.samvo[data-mode="cadre"] .samvo-fond::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 80% at 50% 38%, rgba(16, 40, 31, 0.15), rgba(9, 24, 18, 0.88));
}

.samvo[data-mode="cadre"] .samvo-sur {
	position: relative;
	z-index: 1;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--samvo-or-clair);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.samvo[data-mode="cadre"] .samvo-sur span {
	display: block;
	flex: 0 0 26px;
	height: 1px;
	background: currentcolor;
}

.samvo[data-mode="cadre"] .samvo-ecran {
	position: relative;
	inset: auto;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: auto;
}

.samvo[data-mode="cadre"] .samvo-cadre {
	position: relative;
	inset: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(233, 214, 160, 0.42);
	border-radius: 14px;
	box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.8);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.samvo[data-mode="cadre"] .samvo-cadre::after {
	background: linear-gradient(180deg, rgba(8, 24, 18, 0) 60%, rgba(8, 24, 18, 0.35) 100%);
}

.samvo[data-mode="cadre"] .samvo-barre {
	position: relative;
	right: auto;
	bottom: auto;
	left: auto;
}

.samvo[data-mode="cadre"] .samvo-t2 {
	white-space: normal;
}

.samvo[data-mode="cadre"] .samvo-ecran:hover .samvo-cadre,
.samvo[data-mode="cadre"] .samvo-ecran:focus-visible .samvo-cadre {
	transform: translateY(-2px);
	box-shadow: 0 28px 54px -24px rgba(0, 0, 0, 0.85);
}

.samvo[data-mode="cadre"] .samvo-ecran:focus-visible {
	outline-offset: 4px;
	border-radius: 16px;
}

.samvo[data-mode="cadre"][data-raccourcis="oui"] .samvo-chips {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.samvo .samvo-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid rgba(233, 214, 160, 0.24);
	border-radius: 10px;
	background: rgba(251, 248, 242, 0.06);
	color: var(--samvo-ivoire);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.samvo .samvo-chip:hover {
	border-color: rgba(233, 214, 160, 0.5);
	background: rgba(251, 248, 242, 0.12);
}

.samvo .samvo-chip:focus-visible {
	outline: 2px solid var(--samvo-or-clair);
	outline-offset: 2px;
}

.samvo .samvo-tc,
.samvo-theatre .samvo-tc {
	color: var(--samvo-or-clair);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* ---------- Lecteur ---------- */
html.samvo-verrou,
html.samvo-verrou body {
	overflow: hidden;
}

html.samvo-verrou {
	scrollbar-gutter: stable;
}

/* Lecteur ouvert : les animations de l'affiche, cachées dessous, s'arrêtent. */
html.samvo-verrou .samvo.samvo--actif .samvo-affiche,
html.samvo-verrou .samvo.samvo--actif .samvo-reflet,
html.samvo-verrou .samvo.samvo--actif .samvo-play::before {
	animation-play-state: paused;
}

.samvo-theatre .samvo-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.samvo-theatre {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	background: transparent;
}

.samvo-theatre[open] {
	display: flex;
}

.samvo-theatre::backdrop {
	background: rgba(6, 18, 14, 0.9);
}

@supports ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
	.samvo-theatre::backdrop {
		background: rgba(6, 18, 14, 0.82);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
}

.samvo-theatre:not([open]) {
	display: none;
}

.samvo-theatre .samvo-th {
	display: grid;
	gap: 14px;
	width: min(1080px, 100%, calc((100vh - 310px) * 16 / 9));
	min-width: min(100%, 320px);
	margin: auto;
	animation: samvo-entree 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@supports (height: 100dvh) {
	.samvo-theatre .samvo-th {
		width: min(1080px, 100%, calc((100dvh - 310px) * 16 / 9));
	}
}

.samvo-theatre .samvo-th-tete {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.samvo-theatre .samvo-th-sur {
	margin: 0;
	color: var(--samvo-or-clair);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.samvo-theatre .samvo-th-titre {
	margin: 6px 0 0;
	padding: 0;
	color: var(--samvo-ivoire);
	font-family: var(--samvo-f-titre);
	font-size: clamp(19px, 2.2vw, 27px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.samvo-theatre .samvo-fermer {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(251, 248, 242, 0.35);
	border-radius: 50%;
	background: rgba(251, 248, 242, 0.06);
	transition: background-color 0.2s ease;
}

.samvo-theatre .samvo-fermer:focus,
.samvo-theatre .samvo-fermer:active {
	background: rgba(251, 248, 242, 0.06);
	box-shadow: none;
	color: var(--samvo-ivoire);
}

.samvo-theatre .samvo-fermer:hover {
	background: rgba(251, 248, 242, 0.16);
}

.samvo-theatre .samvo-fermer svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--samvo-ivoire);
	stroke-linecap: round;
	stroke-width: 2;
}

.samvo-theatre .samvo-th-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid rgba(233, 214, 160, 0.22);
	border-radius: 16px;
	background: var(--samvo-nuit);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.samvo-theatre .samvo-video {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	background: var(--samvo-nuit);
	object-fit: contain;
}

.samvo-theatre .samvo-attente {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border: 3px solid rgba(233, 214, 160, 0.25);
	border-top-color: var(--samvo-or-clair);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.samvo-theatre .samvo-th--attente .samvo-attente {
	opacity: 1;
	animation: samvo-tourne 0.9s linear infinite;
}

.samvo-theatre .samvo-fin {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	background: radial-gradient(90% 90% at 50% 50%, rgba(13, 36, 27, 0.9), rgba(6, 18, 14, 0.97));
	text-align: center;
	animation: samvo-fondu 0.4s ease both;
}

.samvo-theatre .samvo-fin[hidden] {
	display: none;
}

.samvo-theatre .samvo-fin-t {
	margin: 0;
	max-width: 30ch;
	color: var(--samvo-ivoire);
	font-family: var(--samvo-f-titre);
	font-size: clamp(19px, 2.6vw, 30px);
	font-weight: 600;
	line-height: 1.2;
}

.samvo-theatre .samvo-fin-b {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.samvo-theatre .samvo-th-chips {
	display: flex;
	gap: 8px;
	padding: 2px 2px 6px;
	overflow-x: auto;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	mask-image: linear-gradient(90deg, #000 90%, transparent);
	scrollbar-width: thin;
}

.samvo-theatre .samvo-th-chip {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(233, 214, 160, 0.26);
	border-radius: 999px;
	background: rgba(251, 248, 242, 0.05);
	color: var(--samvo-ivoire);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.samvo-theatre .samvo-th-chip:focus,
.samvo-theatre .samvo-th-chip:active {
	background: rgba(251, 248, 242, 0.05);
	box-shadow: none;
	color: var(--samvo-ivoire);
}

.samvo-theatre .samvo-th-chip:hover {
	border-color: rgba(233, 214, 160, 0.55);
	background: rgba(251, 248, 242, 0.1);
}

.samvo-theatre .samvo-th-chip[aria-current="true"] {
	border-color: var(--samvo-or);
	background: var(--samvo-or);
	color: var(--samvo-vert);
}

.samvo-theatre .samvo-th-chip[aria-current="true"] .samvo-tc {
	color: var(--samvo-vert);
}

.samvo-theatre .samvo-th-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.samvo-theatre .samvo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-family: var(--samvo-f-texte);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.samvo-theatre .samvo-btn--or {
	flex: 1 1 260px;
	background: var(--samvo-or);
	box-shadow: 0 12px 26px -16px rgba(222, 202, 149, 0.9);
	color: var(--samvo-vert);
}

.samvo-theatre .samvo-btn--or:hover {
	background: #ead9ab;
	color: var(--samvo-vert);
	transform: translateY(-1px);
}

.samvo-theatre .samvo-fin .samvo-btn--or {
	flex: 0 1 auto;
}

.samvo-theatre .samvo-btn--wa,
.samvo-theatre .samvo-btn--clair {
	flex: 0 1 auto;
	border-color: rgba(251, 248, 242, 0.32);
	background: rgba(251, 248, 242, 0.04);
	color: var(--samvo-ivoire);
}

.samvo-theatre .samvo-btn--clair:focus,
.samvo-theatre .samvo-btn--clair:active {
	background: rgba(251, 248, 242, 0.04);
	box-shadow: none;
	color: var(--samvo-ivoire);
}

.samvo-theatre .samvo-btn--wa:hover,
.samvo-theatre .samvo-btn--clair:hover {
	border-color: rgba(251, 248, 242, 0.6);
	background: rgba(251, 248, 242, 0.1);
	color: var(--samvo-ivoire);
}

.samvo-theatre .samvo-btn--wa svg {
	width: 20px;
	height: 20px;
	fill: #6fd17f;
}

.samvo-theatre .samvo-fermer:focus-visible,
.samvo-theatre .samvo-th-chip:focus-visible,
.samvo-theatre .samvo-btn:focus-visible,
.samvo-theatre .samvo-video:focus-visible {
	outline: 3px solid var(--samvo-or-clair);
	outline-offset: 2px;
}

/* Fin de vidéo : le bouton doré du bas s'illumine pour guider vers la réservation. */
.samvo-theatre .samvo-th--fini .samvo-th-cta .samvo-btn--or {
	animation: samvo-appel 1.6s ease-in-out 0.2s 2;
}

@media (max-width: 560px) {
	.samvo-theatre .samvo-th-video {
		border-radius: 12px;
	}

	.samvo-theatre .samvo-btn {
		flex: 1 1 100%;
	}

	/* Écran de fin compact : le bouton doré est déjà juste en dessous de la vidéo. */
	.samvo-theatre .samvo-fin {
		gap: 12px;
		padding: 14px;
	}

	.samvo-theatre .samvo-fin .samvo-btn--or {
		display: none;
	}

	.samvo-theatre .samvo-fin .samvo-btn {
		flex: 0 1 auto;
		min-height: 44px;
		padding: 10px 18px;
		font-size: 14.5px;
	}
}

@media (min-width: 900px) {
	.samvo-theatre .samvo-th-chips {
		flex-wrap: wrap;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Téléphone à l'horizontale : la vidéo prend toute la hauteur. */
@media (max-height: 520px) and (orientation: landscape) {
	.samvo-theatre .samvo-th {
		width: min(100%, calc((100vh - 28px) * 16 / 9));
	}

	.samvo-theatre .samvo-th-titres {
		display: none;
	}

	.samvo-theatre .samvo-th-tete {
		position: fixed;
		top: max(10px, env(safe-area-inset-top));
		right: max(10px, env(safe-area-inset-right));
		z-index: 2;
	}

	.samvo-theatre .samvo-fermer {
		background: rgba(6, 18, 14, 0.7);
	}
}

/* ---------- Animations ---------- */
@keyframes samvo-kb {
	from {
		transform: scale(1.02);
	}

	to {
		transform: scale(1.085) translate3d(0, -1.2%, 0);
	}
}

@keyframes samvo-reflet {
	0%,
	62% {
		transform: translate3d(-75%, 0, 0);
	}

	100% {
		transform: translate3d(75%, 0, 0);
	}
}

@keyframes samvo-halo {
	0% {
		opacity: 0.85;
		transform: scale(0.85);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(1.5);
	}
}

@keyframes samvo-entree {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes samvo-fondu {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes samvo-tourne {
	to {
		transform: rotate(360deg);
	}
}

@keyframes samvo-appel {
	0%,
	100% {
		box-shadow: 0 12px 26px -16px rgba(222, 202, 149, 0.9);
	}

	50% {
		box-shadow: 0 0 0 6px rgba(222, 202, 149, 0.28), 0 14px 34px -12px rgba(222, 202, 149, 0.95);
	}
}

/* Mouvement réduit : aucune animation, aucune transition. */
@media (prefers-reduced-motion: reduce) {
	.samvo,
	.samvo *,
	.samvo *::before,
	.samvo-theatre .samvo-th,
	.samvo-theatre *,
	.samvo-theatre *::before {
		animation: none !important;
		transition: none !important;
	}

	.samvo .samvo-affiche {
		transform: none;
	}
}

/* =========================================================================
 * Page de l'offre — étapes pour venir et design « Médine » (1.1.0)
 * Nouveaux éléments préfixés « smd ». Les retouches du thème sont limitées
 * à l'article de l'offre (.sam-offer-editorial) et n'animent que transform
 * et opacité, sans bibliothèque. Sans prise en charge : contenu normal.
 * ========================================================================= */

.sam-offer-editorial,
.smd-venir {
	--smd-vert: #193e32;
	--smd-vert-titre: #173c32;
	--smd-or: #e2ca8e;
	--smd-or-fonce: #b38b45;
	--smd-sable: #f8f5ed;
	--smd-ivoire: #fffdf7;
	--smd-trait: #e0decd;
	--smd-texte: #5b6953;
	--smd-etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e2ca8e' stroke-width='1'%3E%3Cpath d='M15 15h18v18H15z'/%3E%3Cpath d='M24 11.3 36.7 24 24 36.7 11.3 24z'/%3E%3Cpath d='M24 0v11.3M24 36.7V48M0 24h11.3M36.7 24H48'/%3E%3C/g%3E%3C/svg%3E");
}

.smd-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Motif géométrique (étoile à huit branches) ---------- */
.smd-motif {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background-image: var(--smd-etoile);
	background-position: center top;
	background-size: 44px 44px;
	opacity: 0.11;
	-webkit-mask-image: radial-gradient(130% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
	mask-image: radial-gradient(130% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
}

#un-mois-medine > .smd-motif {
	opacity: 0.09;
	-webkit-mask-image: radial-gradient(110% 90% at 100% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(110% 90% at 100% 0%, #000 0%, transparent 70%);
}

/* ---------- Inclus : icône dans une arche, comme les fenêtres du Masjid ---------- */
.smd-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 44px;
	margin: 0 0 12px;
	border-radius: 19px 19px 6px 6px;
	background-color: var(--smd-vert);
	box-shadow: inset 0 0 0 1px rgba(226, 202, 142, 0.35);
	color: var(--smd-or);
}

.smd-ico::before {
	content: "";
	width: 21px;
	height: 21px;
	margin-top: 4px;
	background-color: currentColor;
	-webkit-mask: var(--smd-i) center / contain no-repeat;
	mask: var(--smd-i) center / contain no-repeat;
}

.smd-ico--logement { --smd-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.6V20h13V9.6'/%3E%3Cpath d='M10 20v-4.2a2 2 0 0 1 4 0V20'/%3E%3C/svg%3E"); }
.smd-ico--cours { --smd-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.6C10.2 5.3 7.4 4.8 4 5.3v12.6c3.4-.5 6.2 0 8 1.3 1.8-1.3 4.6-1.8 8-1.3V5.3c-3.4-.5-6.2 0-8 1.3Z'/%3E%3Cpath d='M12 6.6v12.6'/%3E%3C/svg%3E"); }
.smd-ico--omra { --smd-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.8 4.5 6.8v10.4l7.5 3 7.5-3V6.8z'/%3E%3Cpath d='M4.5 9.6l7.5 3 7.5-3'/%3E%3Cpath d='M12 12.6v7.6'/%3E%3C/svg%3E"); }
.smd-ico--sortie { --smd-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 21c-.2-3.6.1-6.9 1-9.6'/%3E%3Cpath d='M13.6 11.4C12.5 8.6 9.7 7.4 6.1 8.2c2.2.4 4 1.6 5 3.5'/%3E%3Cpath d='M13.6 11.4c1.3-2.6 4.1-3.6 7.5-2.6-2.2.2-4 1.3-5.3 3'/%3E%3Cpath d='M13.6 11.4c-.1-2.9-1.8-5-4.6-6 1.5 1.1 2.4 2.6 2.7 4.4'/%3E%3Cpath d='M13.6 11.4c.6-2.6 2.6-4.3 5.4-4.6-1.7.8-2.9 2.1-3.5 3.8'/%3E%3Cpath d='M8 21h9'/%3E%3C/svg%3E"); }

/* ---------- Venir à Médine en 4 étapes ---------- */
.smd-venir {
	margin: 0 0 30px;
	padding: 28px 0 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.smd-venir[hidden] {
	display: none !important;
}

.smd-venir .smd-venir-tete {
	margin: 0 0 20px;
}

.smd-venir .smd-venir-tete h2 {
	margin: 0 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--smd-vert);
}

.smd-venir .smd-venir-intro {
	max-width: 60ch;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--smd-texte);
}

.smd-venir-liste {
	position: relative;
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	view-timeline-name: --smd-venir;
}

/* Fil doré qui relie les arches (se trace au défilement quand c'est possible). */
.smd-venir-liste::before {
	content: "";
	position: absolute;
	top: 26px;
	bottom: 30px;
	left: 21px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(var(--smd-or-fonce), var(--smd-or));
	transform-origin: top center;
}

.smd-etape {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: 0;
	padding: 0;
}

.smd-etape::before {
	content: none;
}

.smd-etape-num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 52px;
	padding-top: 5px;
	border-radius: 22px 22px 8px 8px;
	background: var(--smd-vert);
	box-shadow: 0 0 0 4px var(--smd-sable), inset 0 0 0 1px rgba(226, 202, 142, 0.4);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1;
	color: var(--smd-or);
}

.smd-etape-corps {
	min-width: 0;
	padding: 16px 16px 15px;
	border: 1px solid var(--smd-trait);
	border-radius: 13px;
	background: var(--smd-ivoire);
}

.smd-etape h3 {
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--smd-vert-titre);
}

.smd-etape p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--smd-texte);
}

.smd-etape-lien,
.smd-venir-aide a {
	color: var(--smd-vert-titre);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--smd-or-fonce);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.smd-etape-lien {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	margin-top: 10px;
	font-size: 14px;
}

.smd-etape-lien:hover,
.smd-etape-lien:focus-visible,
.smd-venir-aide a:hover,
.smd-venir-aide a:focus-visible {
	color: var(--smd-vert);
	text-decoration-color: var(--smd-vert);
}

.smd-etape-lien:focus-visible,
.smd-venir-aide a:focus-visible {
	outline: 2px solid var(--smd-or-fonce);
	outline-offset: 3px;
	border-radius: 3px;
}

.smd-venir-aide {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--smd-texte);
}

@media (max-width: 899px) {
	.smd-venir-liste {
		gap: 2px;
	}

	.smd-venir-liste::before {
		top: 24px;
		bottom: 44px;
		left: 19px;
	}

	.smd-etape {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 12px;
		padding-bottom: 14px;
	}

	.smd-etape-num {
		width: 40px;
		height: 46px;
		padding-top: 4px;
		border-radius: 20px 20px 7px 7px;
		font-size: 20px;
	}

	.smd-etape-corps {
		padding: 4px 0 0;
		border: 0;
		background: none;
	}

	.smd-etape h3 {
		margin-bottom: 4px;
		font-size: 18px;
	}

	.smd-etape-lien {
		min-height: 30px;
		margin-top: 6px;
	}
}

@media (min-width: 900px) {
	.smd-venir {
		margin-bottom: 36px;
		padding: 38px 0 10px;
	}

	.smd-venir .smd-venir-tete h2 {
		font-size: 38px;
		letter-spacing: -0.024em;
	}

	.smd-venir .smd-venir-intro {
		font-size: 15px;
	}

	.smd-venir-liste {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 18px;
	}

	.smd-venir-liste::before {
		top: 25px;
		right: calc((100% - 54px) / 4 - 22px);
		bottom: auto;
		left: 22px;
		width: auto;
		height: 2px;
		background: linear-gradient(90deg, var(--smd-or-fonce), var(--smd-or));
		transform-origin: left center;
	}

	.smd-etape {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		gap: 14px;
		height: 100%;
	}

	.smd-etape-corps {
		height: 100%;
	}
}

/* ---------- Navigation d'ancres collante, section en cours surlignée ---------- */
.sam-offer-editorial nav.sv-page-links.smd-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 40;
	gap: 0 20px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	background-color: var(--smd-sable);
	box-shadow: 0 0 0 100vmax var(--smd-sable);
	clip-path: inset(0 -100vmax);
}

/* Le thème impose le retour à la ligne avec une règle prioritaire : une seule ligne défilante ici. */
.sam-offer-editorial nav.sv-page-links.smd-nav,
html #sam-sejours-v3 nav.sv-page-links.smd-nav.smd-nav {
	flex-wrap: nowrap !important;
}

.sam-offer-editorial nav.sv-page-links.smd-nav::-webkit-scrollbar {
	display: none;
}

.sam-offer-editorial nav.sv-page-links.smd-nav a {
	flex: 0 0 auto;
	padding: 13px 0 10px;
	border-bottom: 2px solid transparent;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}

/* Contour de focus dessiné à l'intérieur : la barre défilante ne le coupe pas. */
.sam-offer-editorial nav.sv-page-links.smd-nav a:focus-visible {
	outline-offset: -2px;
}

.sam-offer-editorial nav.sv-page-links.smd-nav a[hidden] {
	display: none !important;
}

.sam-offer-editorial nav.sv-page-links.smd-nav a[aria-current="true"] {
	border-bottom-color: var(--smd-or-fonce);
	color: var(--smd-vert);
}

@media (min-width: 601px) {
	body.admin-bar .sam-offer-editorial nav.sv-page-links.smd-nav {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

/* Ancres et navigation au clavier : rien ne s'arrête sous la barre collante. */
html {
	scroll-padding-top: 64px;
}

@media (min-width: 601px) {
	html:has(body.admin-bar) {
		scroll-padding-top: 96px;
	}
}

/* ---------- Moins de texte : ce qui est déjà dit ailleurs n'apparaît qu'une fois ---------- */
/* Lien « ce qui est inclus » (la barre d'ancres le propose), note répétée des inclus, formules
   (reprises à l'identique dans la réservation), phrase d'intro des témoignages, sous-titre du
   logement (même chose que le titre), rappel de l'équipe dans la réservation. */
.sam-offer-editorial #un-mois-arabe .sv-intro a.sv-text-link,
.sam-offer-editorial #sa795-inclus .sa795-inclusions-note,
.sam-offer-editorial #sa795-inclus .sa795-formulas,
.sam-offer-editorial #sam795-temoignages .sv-heading > p:not(.sv-kicker),
.sam-offer-editorial #sv-details .sv-housing > h3,
.sam-offer-editorial #sv-sessions p.sv-reassurance {
	display: none !important;
}

/* Choix 699 € / 795 € en haut de page : retiré sur l'offre avec cours. Le choix reste dans la
   réservation et dans « L'alternative sans cours » en bas ; sur l'offre sans cours, il reste
   en haut pour revenir à l'offre avec cours. */
html[data-sam-entry="arabe1m"] .wp-site-blocks > section.sam-month-choice {
	display: none !important;
}

/* Avis : les extraits Google suivent directement les vidéos d'étudiants (une seule rubrique). */
.sam-offer-editorial #sv-proof.smd-suite > .sv-heading,
.sam-offer-editorial #sv-proof.smd-suite > .sv-proof-grid {
	display: none !important;
}

/* ---------- Animations (natives, sans bibliothèque) ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Reflet discret sur le bouton principal du haut de page. */
	.sam-offer-editorial .sv-intro a.sv-button.sv-offer-select {
		position: relative;
		overflow: hidden;
		isolation: isolate;
	}

	.sam-offer-editorial .sv-intro a.sv-button.sv-offer-select::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: -1;
		width: 40%;
		background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
		pointer-events: none;
		transform: translateX(-130%) skewX(-16deg);
		animation: smd-reflet 7s cubic-bezier(0.4, 0, 0.2, 1) 2.5s infinite;
	}

	.smd-ico,
	.smd-etape-num {
		transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.sam-offer-editorial .sv-value-grid > li.smd-carte:hover .smd-ico,
	.smd-etape:hover .smd-etape-num {
		transform: translateY(-3px);
	}
}

/* Apparition au défilement : pilotée par le défilement lui-même (CSS natif). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sam-offer-editorial .sv-heading,
		.sam-offer-editorial .sv-value-grid > li,
		.sam-offer-editorial .sa795-formula-card,
		.sam-offer-editorial .sv-team-card,
		.smd-venir .smd-etape {
			animation: smd-monte linear both;
			animation-timeline: view();
			animation-range: entry 5% cover 28%;
		}

		.smd-venir-liste::before {
			animation: smd-trace linear both;
			animation-timeline: --smd-venir;
			animation-range: entry 35% cover 60%;
		}
	}

	@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
		.smd-venir-liste::before {
			animation-name: smd-trace-h;
		}
	}
}

@keyframes smd-reflet {
	0% {
		transform: translateX(-130%) skewX(-16deg);
	}

	18%,
	100% {
		transform: translateX(330%) skewX(-16deg);
	}
}

@keyframes smd-monte {
	from {
		opacity: 0;
		translate: 0 24px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes smd-trace {
	from {
		scale: 1 0;
	}

	to {
		scale: 1 1;
	}
}

@keyframes smd-trace-h {
	from {
		scale: 0 1;
	}

	to {
		scale: 1 1;
	}
}
