/* ================= Billetterie (liste des catégories + popup) ================= */

/* ---- Liste des catégories ---- */
.nt-tickets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(0.5rem, 1.6vw, 0.75rem);
}
.nt-ticket { margin: 0; }
.nt-ticket__open {
	width: 100%;
	display: flex;
	align-items: center;
	gap: clamp(0.6rem, 2.4vw, 1rem);
	padding: clamp(0.6rem, 2.4vw, 0.9rem);
	background: var(--nt-color-surface);
	border: 1px solid var(--nt-color-border);
	border-radius: var(--nt-radius-card);
	color: var(--nt-color-text);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--nt-motion) ease, transform var(--nt-motion) ease;
}
.nt-ticket__open:hover { border-color: var(--nt-color-accent); }
.nt-ticket__open:active { transform: translateY(1px); }
.nt-ticket__open:focus-visible { outline: 2px solid var(--nt-color-accent); outline-offset: 2px; }
.nt-ticket__open[disabled] { opacity: 0.55; cursor: not-allowed; }

.nt-ticket__img {
	flex: 0 0 auto;
	width: clamp(56px, 15vw, 76px);
	height: clamp(56px, 15vw, 76px);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--nt-color-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nt-ticket__img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nt-ticket__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.nt-ticket__label { font-weight: 700; font-size: clamp(1rem, 3.4vw, 1.15rem); }
.nt-ticket__zone {
	color: var(--nt-color-muted);
	font-size: clamp(0.82rem, 2.9vw, 0.95rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nt-ticket__meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.nt-ticket__price { font-weight: 800; font-size: clamp(1rem, 3.6vw, 1.2rem); white-space: nowrap; }
.nt-ticket__cta {
	font-size: clamp(0.8rem, 2.8vw, 0.9rem);
	font-weight: 700;
	color: var(--nt-color-accent);
	white-space: nowrap;
}
.nt-ticket__cta.is-out { color: var(--nt-color-muted); }

/* ---- Verrou de défilement ---- */
.nt-scroll-lock { overflow: hidden; }

/* ---- Popup modal ---- */
.nt-modal { position: fixed; inset: 0; z-index: 1000; }
.nt-modal[hidden] { display: none !important; }
.nt-modal__overlay { position: absolute; inset: 0; background: rgba(6, 12, 24, 0.66); }

.nt-modal__dialog {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(540px, calc(100vw - 2 * var(--nt-gutter)));
	max-height: min(92vh, 900px);
	background: var(--nt-color-surface);
	border: 1px solid var(--nt-color-border);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.nt-modal__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem var(--nt-gutter);
	border-bottom: 1px solid var(--nt-color-border);
	background: var(--nt-color-header);
}
.nt-modal__title { margin: 0 auto; font-size: 1.15rem; font-weight: 700; }
.nt-modal__icon {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--nt-color-text);
	cursor: pointer;
}
.nt-modal__icon:hover { background: rgba(255, 255, 255, 0.16); }
.nt-modal__back { }
.nt-modal__close { }

.nt-modal__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--nt-gutter);
	display: block;
}
.nt-modal__scroll > * { margin: 0 0 clamp(1rem, 3.5vw, 1.4rem); }
.nt-modal__scroll > *:last-child { margin-bottom: 0; }

.nt-modal__plan {
	border: 1px solid var(--nt-color-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
	line-height: 0;
	text-align: center;
}
.nt-modal__plan[hidden] { display: none; }
.nt-modal__plan img { max-width: 100%; max-height: 320px; width: auto; height: auto; display: inline-block; }

.nt-modal__cat { margin: 0; font-size: clamp(1.25rem, 5vw, 1.6rem); font-weight: 800; }

.nt-modal__pricerow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.nt-modal__priceblock { display: flex; flex-direction: column; }
.nt-modal__price { font-size: clamp(1.3rem, 5.2vw, 1.6rem); font-weight: 800; color: var(--nt-color-accent); }
.nt-modal__perunit { color: var(--nt-color-muted); font-size: 0.95rem; }
.nt-modal__taxes { color: var(--nt-color-muted); font-size: 0.82rem; margin-top: 0.15rem; }

.nt-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.nt-qty__label { color: var(--nt-color-muted); font-size: 0.9rem; }
.nt-qty__control {
	display: inline-flex; align-items: center;
	border: 1px solid var(--nt-color-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
}
.nt-qty__btn {
	width: 42px; height: 42px;
	border: 0; background: none; color: var(--nt-color-text);
	font-size: 1.4rem; line-height: 1; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
}
.nt-qty__btn:hover:not([disabled]) { background: rgba(255, 255, 255, 0.1); }
.nt-qty__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.nt-qty__val { min-width: 2.2ch; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.nt-modal__total { margin: 0; font-size: 1.05rem; color: var(--nt-color-muted); }
.nt-modal__total strong { color: var(--nt-color-text); font-size: 1.25rem; font-weight: 800; }

.nt-infoblock {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--nt-color-border);
	border-radius: 14px;
	padding: clamp(0.9rem, 3.5vw, 1.1rem);
}
.nt-infoblock__title { margin: 0 0 0.4rem; font-weight: 700; font-size: 1.02rem; }
.nt-infoblock__text { margin: 0; color: var(--nt-color-muted); font-size: 0.95rem; line-height: 1.5; }

.nt-reassure { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.nt-reassure__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.nt-reassure__ico { flex: 0 0 auto; color: var(--nt-color-accent); margin-top: 0.1rem; }
.nt-reassure__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.nt-reassure__title { font-weight: 700; font-size: 1rem; }
.nt-reassure__text { color: var(--nt-color-muted); font-size: 0.92rem; line-height: 1.5; }

.nt-modal__foot {
	flex: 0 0 auto;
	padding: var(--nt-gutter);
	border-top: 1px solid var(--nt-color-border);
	background: var(--nt-color-surface);
}
.nt-buyform { margin: 0; }
.nt-btn-primary {
	width: 100%;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.95rem 1.25rem;
	border: 0; border-radius: 12px;
	background: var(--nt-color-accent);
	color: #08203a;
	font-family: inherit; font-size: 1.1rem; font-weight: 800;
	cursor: pointer;
	transition: filter var(--nt-motion) ease;
}
.nt-btn-primary:hover { filter: brightness(1.06); }
.nt-btn-primary:focus-visible { outline: 2px solid var(--nt-color-text); outline-offset: 2px; }
.nt-btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- Mobile : popup quasi plein écran, bouton fixe en bas ---- */
@media (max-width: 640px) {
	.nt-modal__dialog {
		left: 0; top: auto; bottom: 0;
		transform: none;
		width: 100%;
		max-height: 94vh;
		border-radius: 18px 18px 0 0;
	}
}

/* ---- Desktop : ligne plus aérée ---- */
@media (min-width: 768px) {
	.nt-ticket__open { padding: 0.9rem 1.1rem; gap: 1.15rem; }
}

/* ================= Información del partido (compact) ================= */
.nt-matchinfo { max-width: 520px; margin: 0 auto; }
.nt-matchinfo__media {
	border-radius: var(--nt-radius-card);
	overflow: hidden;
	border: 1px solid var(--nt-color-border);
	background: rgba(255, 255, 255, 0.04);
	text-align: center;
	line-height: 0;
	padding: 6px;
}
.nt-matchinfo__media img { max-width: 100%; max-height: clamp(150px, 38vw, 220px); width: auto; height: auto; display: inline-block; }
.nt-matchinfo__media.is-empty {
	padding: 0;
	height: clamp(140px, 40vw, 200px);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, #22314f 0%, #16233c 100%);
	color: var(--nt-color-muted);
}
.nt-matchinfo__title { margin: clamp(0.65rem, 2.4vw, 0.9rem) 0 0.12rem; font-size: clamp(1.15rem, 3.8vw, 1.45rem); font-weight: 800; }
.nt-matchinfo__city { margin: 0 0 clamp(0.9rem, 3.2vw, 1.2rem); color: var(--nt-color-muted); font-size: clamp(0.88rem, 2.9vw, 1rem); }
.nt-matchinfo__card {
	background: var(--nt-color-surface);
	border: 1px solid var(--nt-color-border);
	border-radius: var(--nt-radius-card);
	padding: clamp(0.9rem, 3.2vw, 1.2rem);
}
.nt-matchinfo__cardtitle { margin: 0 0 0.45rem; font-size: clamp(1.05rem, 3.6vw, 1.3rem); font-weight: 800; }
.nt-matchinfo__cardtext { margin: 0 0 clamp(0.9rem, 3vw, 1.15rem); color: var(--nt-color-muted); font-size: clamp(0.9rem, 2.9vw, 1rem); line-height: 1.5; }
.nt-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	padding: 0.6rem 1.2rem;
	border: 2px solid var(--nt-color-accent);
	border-radius: 11px;
	background: transparent;
	color: var(--nt-color-accent);
	font-weight: 700; font-size: 0.96rem;
	text-decoration: none;
	transition: background var(--nt-motion) ease, color var(--nt-motion) ease;
}
.nt-btn-outline:hover { background: var(--nt-color-accent); color: #08203a; }
.nt-btn-outline:focus-visible { outline: 2px solid var(--nt-color-accent); outline-offset: 3px; }
