/* ==========================================================================
   Fiche « Séjour » (plugin-sit/templates-bridge/fiche/proto-sejour.php), inspirée d'Airbnb.
   Balisage propre au thème (pas d'UIkit) : tout est préfixé .sejour.
   Couleurs : palette du kit (--tk-*), sombre par défaut, claire avec le sélecteur de l'en-tête.
   ========================================================================== */

.sejour {
	/* Même palette que les autres fiches (fiches.css) : page claire quel que soit le mode du site */
	--s-fond: #FFFFFF;
	--s-surface: #EDF5F6; /* --fd-light */
	--s-surface-2: #F7FAFB;
	--s-encre: #1C2D31; /* --fd-title */
	--s-texte: #5F6E72; /* --fd-text */
	--s-ligne: #E3ECEE; /* --fd-line */
	--s-ligne-forte: rgba(28, 45, 49, 0.25);
	--s-accent: #0CB2DB; /* --fd-primary */
	--s-titre: "Bebas Neue", sans-serif;
	--s-entete: 92px; /* en-tête fixe du site */

	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px 96px;
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 28px;
	color: var(--s-texte);
	background: var(--s-fond);
}
html.sejour-fenetre-ouverte { overflow: hidden; }

/* Remise à zéro des boutons (le reset de Hello Elementor les colore en #c36) */
.sejour button {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-transform: none;
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.sejour button:hover,
.sejour button:focus { color: inherit; background: none; }
.sejour :focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; }
.sejour img { max-width: 100%; }

.sejour-visuellement-cache {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- En-tête : bandeau clair pleine largeur, comme fiche2 */
.sejour-entete {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 8px 24px;
	margin-bottom: 32px;
	padding: 56px 0 40px;
	background: var(--s-surface);
	box-shadow: 0 0 0 100vmax var(--s-surface); /* déborde sur toute la largeur… */
	clip-path: inset(0 -100vmax); /* …sans barre de défilement horizontale */
}
.sejour-surtitre {
	margin: 0 0 6px;
	font-family: var(--s-titre);
	font-size: 20px;
	letter-spacing: 0.05em;
	line-height: 1.2;
	color: var(--s-accent);
}
.sejour-titre {
	margin: 0;
	font-family: var(--s-titre);
	font-size: clamp(40px, 5vw, 54px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--s-encre);
	text-wrap: balance;
}
.sejour-outils { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sejour .sejour-outil {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--s-encre);
	text-decoration: underline;
	text-underline-offset: 3px;
	border-radius: 8px;
}
.sejour .sejour-outil:hover { color: var(--s-encre); background: #FFFFFF; }
.sejour-outil svg,
.sejour-btn svg,
.sejour-btn-photos svg,
.sejour-fermer svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}
/* Bouton « carnet de voyage » du plugin */
.sejour-carnet .add-to-cv-button {
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--s-encre);
	text-decoration: underline;
	text-transform: none;
	background: none !important;
	border: 0;
}
.sejour-statut { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--s-encre); }
.sejour-statut:empty { display: none; }

/* ---------- Galerie : mosaïque 1 + 4 */
.sejour-galerie { position: relative; }
.sejour-mosaique {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: clamp(320px, 38vw, 460px);
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	border-radius: 20px;
}
.sejour-mosaique > li { min-width: 0; min-height: 0; }
.sejour-mosaique > li:first-child { grid-column: span 2; grid-row: span 2; }
.sejour-mosaique--1 > li:first-child { grid-column: 1 / -1; }
.sejour-mosaique--2 > li { grid-column: span 2; grid-row: span 2; }
.sejour-mosaique--3 > li:not(:first-child),
.sejour-mosaique--4 > li:last-child { grid-column: span 2; }
.sejour .sejour-mosaique-photo { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.sejour-mosaique-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.sejour-mosaique-photo:hover img { filter: brightness(0.85); }
.sejour .sejour-btn-photos {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #122327;
	background: #FFFFFF;
	border: 1px solid #122327;
	border-radius: 8px;
}
.sejour .sejour-btn-photos:hover { color: #122327; background: #F2F7F8; }
.sejour-compteur { display: none; }

/* ---------- Corps : lecture + encart de réservation */
.sejour-corps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 72px;
	align-items: start;
	padding-top: 32px;
}
.sejour-section { padding: 32px 0; border-bottom: 1px solid var(--s-ligne); }
.sejour-contenu > .sejour-section:first-child { padding-top: 0; }
.sejour-contenu > .sejour-section:last-child { border-bottom: 0; }
.sejour-h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: var(--s-titre);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--s-encre);
}
.sejour-h2 .sejour-ic,
.sejour-h3 .sejour-ic,
.sejour-sous-titre .sejour-ic { flex: 0 0 auto; font-size: 0.75em; color: var(--s-accent); }
.sejour-h3,
.sejour-sous-titre {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 28px 0 14px;
	font-family: var(--s-titre);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--s-encre);
}
.sejour-section > .sejour-h2 + .sejour-sous-titre,
.sejour-h3 + .sejour-sous-titre { margin-top: 0; }
.sejour-section p { margin: 0 0 12px; }

/* Listes : pastilles à double chevron (TAGS), liste à chevrons sur 2 colonnes (COLUMNS) */
.sejour-liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 22px;
	color: var(--s-encre);
}
.sejour-liste li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sejour-liste li > span:empty { display: none; }
.sejour-liste li:not(:has(.sejour-ic, .sejour-picto))::before {
	content: "»";
	flex: 0 0 auto;
	font-family: var(--s-titre);
	font-size: 20px;
	line-height: 1;
	color: var(--s-accent);
}
.sejour-liste--tags { display: flex; flex-wrap: wrap; gap: 10px; }
.sejour-liste--tags li { padding: 8px 18px; background: var(--s-surface); border-radius: 30px; }
.sejour-liste-libelle { font-weight: 600; }
.sejour-ic { flex: 0 0 22px; font-size: 17px; text-align: center; color: var(--s-accent); }
.sejour-picto { flex: 0 0 auto; width: 26px; height: 26px; object-fit: contain; }

/* Tableaux (tarifs, capacités…) : carte arrondie, lignes alternées, comme les tableaux des autres fiches */
.sejour-tableau,
.sejour-paires { margin: 0; overflow: hidden; border: 1px solid var(--s-ligne); border-radius: 16px; }
.sejour-tableau > div,
.sejour-paires > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 22px;
	font-size: 15px;
	line-height: 22px;
	border-top: 1px solid var(--s-ligne);
}
.sejour-tableau > div:first-child,
.sejour-paires > div:first-child { border-top: 0; }
.sejour-tableau > div:nth-child(even),
.sejour-paires > div:nth-child(even) { background: var(--s-surface-2); }
.sejour-tableau dt,
.sejour-paires dt { display: flex; gap: 12px; align-items: center; color: var(--s-texte); }
.sejour-tableau dd,
.sejour-paires dd { margin: 0; font-weight: 600; color: var(--s-encre); text-align: right; }
.sejour-texte-ligne { display: flex; gap: 12px; align-items: flex-start; color: var(--s-encre); }

/* En bref : labels et pictogrammes en pastilles rondes, comme les autres fiches.
   Chaque section Bridge donne sa propre liste : on les aligne sur une même ligne. */
.sejour-atouts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sejour-atouts > .sejour-liste { display: contents; }
.sejour-labels .sejour-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.sejour-liste--pictos { display: flex; flex-wrap: wrap; gap: 10px; }
.sejour-liste--pictos li {
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--s-surface);
	border-radius: 50%;
}
.sejour-liste--pictos .sejour-picto { width: 24px; height: 24px; }
.sejour-labels .sejour-liste li,
.sejour-atouts .sejour-liste li {
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 16px;
	font-size: 14px;
	background: var(--s-surface);
	border-radius: 30px;
}
.sejour-labels .sejour-liste li::before,
.sejour-atouts .sejour-liste li::before { display: none; }
.sejour-atouts .sejour-liste li:not(:has(span)) { width: 48px; padding: 0; border-radius: 50%; }
.sejour-labels .sejour-picto { width: auto; max-width: 64px; height: 30px; }
.sejour-resume > * + * { margin-top: 20px; }

/* Description : coupée à 6 lignes, la suite s'ouvre dans une fenêtre */
.sejour-description { color: var(--s-encre); }
.sejour-description p:last-child { margin-bottom: 0; }
.sejour-description.is-tronque {
	max-height: 9.6em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}

/* Liens et boutons */
.sejour .sejour-lien {
	display: inline-flex;
	gap: 6px;
	margin-top: 14px;
	font-weight: 600;
	color: var(--s-encre);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sejour .sejour-lien:hover { color: var(--s-accent); }
.sejour .sejour-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	transition: background-color 0.2s, border-color 0.2s, filter 0.2s;
}
.sejour .sejour-btn--principal { width: 100%; color: #FFFFFF; background: var(--s-accent); border: 0; }
.sejour .sejour-btn--principal:hover { color: #FFFFFF; background: var(--s-encre); }
.sejour .sejour-btn--ligne { color: var(--s-encre); background: transparent; border: 1px solid var(--s-encre); }
.sejour .sejour-btn--ligne:hover { color: #FFFFFF; background: var(--s-encre); }
.sejour-section > .sejour-btn--ligne { margin-top: 28px; }
.sejour .sejour-btn--icone { width: 48px; padding: 0; color: var(--s-encre); border: 1px solid var(--s-ligne-forte); }

/* Encart de réservation */
.sejour-aside { position: sticky; top: calc(var(--s-entete) + 24px); }
.sejour-resa {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px;
	background: var(--s-surface);
	border-radius: 20px;
}
.sejour-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0; color: var(--s-encre); }
.sejour-prix-libelle { font-family: var(--s-titre); font-size: 20px; letter-spacing: 0.04em; color: var(--s-accent); }
.sejour-prix-montant { font-family: var(--s-titre); font-size: 44px; line-height: 1; }
.sejour-prix-detail { flex-basis: 100%; font-size: 14px; line-height: 22px; color: var(--s-texte); }
.sejour-resa-secondaires { display: flex; flex-direction: column; gap: 10px; }
.sejour-resa-secondaires:empty { display: none; }
.sejour .sejour-resa-secondaires .sejour-btn { width: 100%; color: #FFFFFF; background: var(--s-encre); border: 0; }
.sejour .sejour-resa-secondaires .sejour-btn:hover { color: #FFFFFF; background: var(--s-accent); }
.sejour-resa-note,
.sejour-source { margin: 0; font-size: 13px; line-height: 1.5; text-align: center; }
.sejour-source { margin-top: 16px; }

/* Localisation */
.sejour-carte { height: 380px; margin-bottom: 20px; overflow: hidden; border-radius: 20px; background: var(--s-surface); }
.sejour-adresse { font-style: normal; color: var(--s-encre); }
.sejour-adresse .sejour-texte-ligne { margin-bottom: 4px; }

/* Une question ? */
.sejour-question { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sejour-question .sejour-h2 { margin-bottom: 4px; }
.sejour-question p { margin: 0; }

/* Composants Bridge (calendriers, profil altimétrique…) : rendu du plugin */
.sejour-composant { overflow-x: auto; }

/* À découvrir aussi */
.sejour-proches { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--s-ligne); }
.sejour-proches ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sejour-proches a { display: block; color: var(--s-encre); text-decoration: none; }
.sejour-proches img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.sejour-proche-nom { display: block; margin-top: 10px; font-weight: 600; }
.sejour-proches a:hover .sejour-proche-nom { text-decoration: underline; }
.sejour-proches p { margin: 4px 0 0; font-size: 14px; }
.sejour-retour { margin: 40px 0 0; font-size: 14px; }
.sejour-retour a { color: var(--s-encre); }

/* Barre mobile (prix + action) */
.sejour-barre { display: none; }

/* ---------- Fenêtres (<dialog>) */
.sejour-fenetre {
	width: min(780px, calc(100% - 32px));
	max-height: calc(100% - 64px);
	padding: 0;
	color: var(--s-texte);
	background: var(--s-fond);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.sejour-fenetre[open] { display: flex; flex-direction: column; }
.sejour-fenetre::backdrop { background: rgba(0, 0, 0, 0.6); }
.sejour-fenetre-entete { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--s-ligne); }
.sejour-fenetre-titre { margin: 0; font-family: var(--s-titre); font-size: 26px; font-weight: 400; line-height: 1.2; color: var(--s-encre); }
.sejour .sejour-fermer { display: grid; place-items: center; width: 40px; height: 40px; color: var(--s-encre); border-radius: 50%; }
.sejour .sejour-fermer:hover { color: var(--s-encre); background: var(--s-surface); }
.sejour-fenetre-corps { padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.sejour-fenetre .sejour-liste { grid-template-columns: minmax(0, 1fr); gap: 0; }
.sejour-fenetre .sejour-liste li { padding: 12px 0; background: none; border-bottom: 1px solid var(--s-ligne); border-radius: 0; }
.sejour-fenetre--photos { width: min(1100px, calc(100% - 32px)); }
.sejour-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sejour-photos figure { margin: 0; scroll-margin-top: 8px; }
.sejour-photos figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.sejour-photos img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sejour-photos figcaption { padding: 6px 2px 0; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
	.sejour-fenetre[open] { animation: sejour-apparition 0.25s ease-out; }
}
@keyframes sejour-apparition { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Tablette */
@media (max-width: 959px) {
	.sejour-corps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sejour-aside { position: static; }
}

/* ---------- Mobile : carrousel plein écran, barre d'action en bas */
@media (max-width: 743px) {
	.sejour { --s-entete: 66px; display: flex; flex-direction: column; padding: 0 0 104px; }
	.sejour-galerie { order: -1; }
	.sejour-entete { grid-template-columns: minmax(0, 1fr); margin-bottom: 8px; padding: 24px 16px; box-shadow: none; clip-path: none; }
	.sejour-outils { justify-content: flex-start; margin-left: -12px; }
	.sejour-corps { padding: 8px 16px 0; }
	.sejour-proches,
	.sejour-retour { margin-left: 16px; margin-right: 16px; }

	.sejour-mosaique {
		display: flex;
		height: 300px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		border-radius: 0;
		scrollbar-width: none;
	}
	.sejour-mosaique::-webkit-scrollbar { display: none; }
	.sejour-mosaique > li { flex: 0 0 100%; scroll-snap-align: start; }
	.sejour-compteur {
		position: absolute;
		right: 16px;
		bottom: 16px;
		display: block;
		margin: 0;
		padding: 2px 10px;
		font-size: 12px;
		font-weight: 600;
		color: #FFFFFF;
		background: rgba(18, 35, 39, 0.7);
		border-radius: 6px;
	}
	.sejour .sejour-btn-photos { display: none; }
	.sejour-liste { grid-template-columns: minmax(0, 1fr); }
	.sejour-carte { height: 260px; }

	.sejour-barre {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 990;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--s-fond);
		border-top: 1px solid var(--s-ligne);
	}
	.sejour-barre-prix { margin: 0; font-size: 13px; line-height: 1.3; }
	.sejour-barre-prix span { display: block; font-size: 17px; font-weight: 700; color: var(--s-encre); }
	.sejour-barre-prix--nom { overflow: hidden; font-weight: 600; color: var(--s-encre); white-space: nowrap; text-overflow: ellipsis; }
	.sejour-barre-actions { display: flex; flex: 0 0 auto; gap: 8px; }
	.sejour .sejour-barre .sejour-btn--principal { width: auto; padding: 12px 28px; }

	.sejour-fenetre,
	.sejour-fenetre--photos { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
	.sejour-fenetre-corps { padding: 16px; }
	.sejour-photos { grid-template-columns: minmax(0, 1fr); }
}
