/* ============================================================
   Pages activité - briques de mise en page partagées
   (bandeau d'arguments, catalogue filtrable, tarifs, cartes
   média, étapes, raccourcis évènements)
   ============================================================ */

/* --- Page pleine largeur (Quiz Room) --- */

.lf-activite-page--wide {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

.lf-activite-main--wide {
	display: block;
	width: 100%;
	max-width: none;
}

.lf-activite-page--wide .lf-activite-section {
	width: min(100% - 2.5rem, var(--lf-max));
	margin-inline: auto;
}

.lf-activite-page--wide .lf-activite-section--large {
	width: min(100% - 2.5rem, 82rem);
}

/* --- Barre d'infos horizontale --- */

.lf-activite-infobar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	width: min(100% - 2.5rem, var(--lf-max));
	margin: -2.5rem auto 3rem;
	padding: 1.35rem 1.75rem;
	position: relative;
	z-index: 2;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
}

.lf-activite-infobar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-activite-infobar__item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.lf-activite-infobar__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-activite-infobar__value {
	font-family: var(--lf-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.lf-activite-infobar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* --- En-têtes de section --- */

.lf-activite-section__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lf-orange);
}

.lf-activite-section__intro {
	max-width: 62ch;
	margin: 0 0 2rem;
	color: var(--lf-muted);
}

.lf-activite-section__actions {
	margin-top: 2rem;
}

.lf-activite-subtitle {
	margin: 2.5rem 0 1rem;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.lf-activite-subtitle:first-of-type {
	margin-top: 0;
}

/* --- Bandeau d'arguments --- */

.lf-argument-bar {
	width: min(100% - 2.5rem, 82rem);
	margin: 0 auto 3.5rem;
	padding: 1.75rem 1.5rem;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
}

.lf-argument-bar__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-argument-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.lf-argument-bar__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	font-size: 1.75rem;
	line-height: 1;
}

.lf-argument-bar__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.lf-argument-bar__text {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
}

/* --- Catalogue filtrable --- */

/*
 * Filtres + compteur + grille forment un seul bloc encadré.
 *
 * Avant, la barre de filtres était une carte blanche flottante posée au-dessus d'une
 * grille sans conteneur : visuellement, on lisait deux sections sans rapport. Le
 * conteneur commun règle ça, et la barre de filtres devient un simple en-tête séparé
 * par un filet.
 */
.lf-catalogue {
	padding: clamp(1.15rem, 2.5vw, 1.75rem);
	background: var(--lf-cream);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
}

.lf-catalogue__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.25rem 2.25rem;
	padding: 0 0 1.25rem;
	margin-bottom: 0;
	border-bottom: 1px solid var(--lf-border);
}

.lf-catalogue__filter-label {
	margin: 0 0 0.55rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-catalogue__filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.lf-chip {
	padding: 0.35rem 0.85rem;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--lf-navy);
	/* Fond blanc : le conteneur du catalogue est lui-même en --lf-cream. */
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: 999px;
	cursor: pointer;
	transition: background 200ms var(--lf-motion-ease, ease), border-color 200ms var(--lf-motion-ease, ease), color 200ms var(--lf-motion-ease, ease);
}

.lf-chip:hover {
	border-color: var(--lf-orange);
	color: var(--lf-orange);
}

.lf-chip.is-active {
	background: var(--lf-orange);
	border-color: var(--lf-orange);
	color: var(--lf-white);
}

.lf-chip:focus-visible {
	outline: 2px solid var(--lf-orange);
	outline-offset: 2px;
}

.lf-catalogue__reset {
	align-self: flex-end;
	margin-left: auto;
	padding: 0.35rem 0;
	font: inherit;
	font-size: 0.875rem;
	color: var(--lf-muted);
	background: none;
	border: none;
	text-decoration: underline;
	text-underline-offset: 0.25em;
	cursor: pointer;
}

.lf-catalogue__reset:hover {
	color: var(--lf-orange);
}

.lf-catalogue__count {
	margin: 1rem 0 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--lf-muted);
}

.lf-catalogue__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
	gap: 1.15rem;
}

.lf-catalogue__empty {
	margin: 2rem 0 0;
	padding: 2rem;
	text-align: center;
	color: var(--lf-muted);
	background: var(--lf-white);
	border: 1px dashed var(--lf-border);
	border-radius: var(--lf-radius);
}

/* --- Carte jeu --- */

.lf-jeu {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	transition: transform 200ms var(--lf-motion-ease, ease), box-shadow 200ms var(--lf-motion-ease, ease);
}

.lf-jeu:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(23, 27, 81, 0.15);
}

.lf-jeu[hidden] {
	display: none;
}

.lf-jeu__media {
	position: relative;
	aspect-ratio: 2 / 1;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, var(--lf-navy) 0%, var(--lf-quiz-blue) 100%);
}

.lf-jeu__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lf-jeu__placeholder {
	font-family: var(--lf-font-display);
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--lf-quiz-yellow);
	opacity: 0.9;
}

.lf-jeu__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	margin: 0;
	padding: 0.22rem 0.65rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lf-navy);
	background: var(--lf-quiz-yellow);
	border-radius: 999px;
}

.lf-jeu__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem 1.1rem 1.15rem;
}

.lf-jeu__title {
	margin: 0;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.lf-jeu__text {
	margin: 0;
	flex: 1;
	font-size: 0.9rem;
	color: var(--lf-muted);
}

.lf-jeu .lf-btn {
	align-self: flex-start;
}

/* --- Étapes --- */

/*
 * Flex plutôt que grid : avec un nombre d'étapes non multiple du nombre de colonnes
 * (7 étapes sur 4 colonnes), une grille laisse la dernière ligne calée à gauche. En
 * flex, `justify-content: center` centre les étapes orphelines, et la base calculée
 * garde toutes les cartes à la même largeur d'une ligne à l'autre.
 */
.lf-steps-flow {
	--lf-steps-gap: 1.25rem;
	--lf-steps-cols: 4;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--lf-steps-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.lf-steps-flow__item {
	flex: 0 1 calc((100% - (var(--lf-steps-cols) - 1) * var(--lf-steps-gap)) / var(--lf-steps-cols));
	min-width: 15rem;
	display: flex;
	gap: 0.9rem;
	padding: 1.35rem;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
}

.lf-steps-flow__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	font-family: var(--lf-font-display);
	font-weight: 700;
	color: var(--lf-white);
	background: var(--lf-orange);
	border-radius: 50%;
}

.lf-steps-flow__title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.lf-steps-flow__text {
	margin: 0;
	font-size: 0.9rem;
	color: var(--lf-muted);
}

/* --- Tableau de tarifs --- */

.lf-price-table__wrap {
	overflow-x: auto;
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	background: var(--lf-white);
	box-shadow: var(--lf-shadow);
}

.lf-price-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.lf-price-table th,
.lf-price-table td {
	padding: 1rem 1.35rem;
	border-bottom: 1px solid var(--lf-border);
}

.lf-price-table thead th {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lf-muted);
	background: var(--lf-cream);
	white-space: nowrap;
}

.lf-price-table tbody tr:last-child th,
.lf-price-table tbody tr:last-child td {
	border-bottom: none;
}

.lf-price-table tbody th {
	font-weight: 500;
	white-space: nowrap;
}

.lf-price-table__price {
	font-family: var(--lf-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--lf-orange);
}

/* --- Options tarifaires --- */

.lf-price-options {
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	overflow: hidden;
}

.lf-price-options__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 1.05rem 1.35rem;
	border-bottom: 1px solid var(--lf-border);
}

.lf-price-options__item:last-child {
	border-bottom: none;
}

.lf-price-options__label {
	margin: 0;
	font-weight: 500;
}

.lf-price-options__detail {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	color: var(--lf-muted);
}

.lf-price-options__price {
	font-family: var(--lf-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--lf-orange);
	white-space: nowrap;
}

/* --- Cartes média --- */

.lf-media-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5rem;
}

.lf-media-cards--salles {
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.lf-media-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	transition: transform 200ms var(--lf-motion-ease, ease), border-color 200ms var(--lf-motion-ease, ease);
}

.lf-media-card:hover {
	transform: translateY(-3px);
	border-color: var(--lf-orange);
}

.lf-media-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.lf-media-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lf-media-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.5rem;
}

.lf-media-card__title {
	margin: 0;
	font-size: 1.1875rem;
	letter-spacing: -0.01em;
}

.lf-media-cards--salles .lf-media-card__title {
	font-size: 1.5rem;
	color: var(--lf-orange);
}

.lf-media-card__text {
	margin: 0;
	flex: 1;
	font-size: 0.9375rem;
	color: var(--lf-muted);
}

.lf-media-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* --- Raccourcis évènements --- */

.lf-event-shortcuts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-top: 2rem;
	padding: 1.75rem;
	background: var(--lf-sand);
	border-radius: var(--lf-radius);
}

.lf-event-shortcuts__body {
	flex: 1 1 20rem;
}

.lf-event-shortcuts__title {
	margin: 0 0 0.4rem;
	font-size: 1.1875rem;
	letter-spacing: -0.01em;
}

.lf-event-shortcuts__text {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--lf-navy);
}

.lf-event-shortcuts__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Fond blanc au repos pour ressortir sur le bandeau sable. On rétablit
   explicitement le fond navy au survol : cette règle arrive après
   _buttons.css dans les imports et neutralisait sinon le hover, ce qui
   donnait du texte blanc sur fond blanc. */
.lf-event-shortcuts .lf-btn--outline {
	background: var(--lf-white);
}

.lf-event-shortcuts .lf-btn--outline:hover,
.lf-event-shortcuts .lf-btn--outline:focus-visible {
	background: var(--lf-navy);
}

/* --- Notes de section --- */

.lf-section-notes {
	margin: 1.25rem 0 0;
	padding-left: 1.1rem;
	list-style: none;
	font-size: 0.875rem;
	color: var(--lf-muted);
}

.lf-section-notes li {
	position: relative;
	margin-bottom: 0.3rem;
}

.lf-section-notes li::before {
	content: "*";
	position: absolute;
	left: -1.1rem;
	color: var(--lf-orange);
}

/* --- Édito --- */

.lf-activite-edito__text {
	max-width: 68ch;
}

.lf-activite-edito__text + .lf-activite-edito__text {
	margin-top: 0.9rem;
}

/* --- Responsive --- */

@media (max-width: 48rem) {
	.lf-activite-infobar {
		margin-top: -1.5rem;
		padding: 1.25rem;
	}

	.lf-catalogue__filters {
		gap: 1.25rem;
	}

	.lf-catalogue__reset {
		margin-left: 0;
	}

	.lf-argument-bar {
		padding: 1.25rem 1rem;
	}
}

@media (max-width: 40rem) {
	.lf-catalogue__grid {
		grid-template-columns: 1fr;
	}

	.lf-price-table th,
	.lf-price-table td {
		padding: 0.85rem 1rem;
	}

	.lf-price-table__price,
	.lf-price-options__price {
		font-size: 1.125rem;
	}
}

/* ------------------------------------------------------------------
 * Rythme visuel des pages activité
 *
 * Les sections des pages activité (catalogue, expérience, tarifs,
 * occasions, FAQ) n'avaient aucun style de section propre : elles
 * s'empilaient sur un fond uniforme, sans respiration. On alterne les
 * fonds pour distinguer les blocs.
 * ------------------------------------------------------------------ */

/*
 * Le body est déjà en --lf-cream : on utilise donc --lf-white pour créer le
 * contraste. Le padding horizontal reste modéré pour ne pas désaligner le
 * contenu par rapport aux sections voisines (box-sizing: border-box global).
 */
.lf-activite-experience,
.lf-activite-occasions,
.lf-activite-faq {
	padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(0.85rem, 2vw, 1.5rem);
	background: var(--lf-white);
	border: 1px solid var(--lf-border);
	border-radius: 1rem;
}

.lf-activite-catalogue,
.lf-activite-tarifs,
.lf-activite-salles {
	padding-block: clamp(0.5rem, 2vw, 1rem);
}

/*
 * Cartes « Un événement particulier ? » : 3 colonnes.
 * Ces pages ont une sidebar (~790 px utiles), d'où un minmax plus bas que celui
 * des salles, sinon la 3ᵉ carte passe seule à la ligne.
 */
.lf-media-cards--occasions {
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
