/* ---- Section d'accueil : « Últimas noticias » (vídeos) ----
   Fond blanc, titre foncé au-dessus, grandes cartes avec titre en
   surimpression (durée + play en haut à droite). Clic = lecteur en popup. */
.nt-videos {
	background: #ffffff;
	color: #0b1220;
}
.nt-videos__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(1.5rem, 5vw, 2.75rem) 0 clamp(1.75rem, 6vw, 3rem);
}
.nt-videos__title {
	margin: 0 0 clamp(1rem, 3vw, 1.4rem);
	padding: 0 var(--nt-gutter);
	font-size: clamp(1.6rem, 5.4vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: #0b1220;
}

/* Liste de cartes (empilées en mobile, 2 colonnes en desktop) */
.nt-videos__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 3.2vw, 1.5rem);
	padding: 0 var(--nt-gutter);
}

/* Carte vidéo (bouton ou lien) */
.nt-video-card {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 18px;
}
.nt-video-card.is-static { cursor: default; }
.nt-video-card:focus-visible { outline: 3px solid #1a73c7; outline-offset: 3px; }

.nt-video-card__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #0f1626;
	border-radius: 18px;
	overflow: hidden;
}
.nt-video-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}
.nt-video-card:hover .nt-video-card__img { transform: scale(1.03); }

.nt-video-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 12, 24, 0) 38%, rgba(6, 12, 24, 0.72) 100%);
}

.nt-video-card__meta {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.nt-video-card__duration { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nt-video-card__play { display: inline-flex; color: #fff; }

.nt-video-card__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: clamp(0.9rem, 3.2vw, 1.25rem);
	color: #fff;
	font-size: clamp(1.25rem, 4.6vw, 1.6rem);
	font-weight: 800;
	line-height: 1.16;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Bouton « ver todo » (masqué par défaut ; rendu seulement si défini) */
.nt-videos__seeall {
	display: block;
	max-width: 360px;
	margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
	padding: 0.95rem 1rem;
	text-align: center;
	border: 1px solid #1a73c7;
	border-radius: 12px;
	background: transparent;
	color: #1a73c7;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.05rem;
}
.nt-videos__seeall:hover { background: rgba(26, 115, 199, 0.08); }

/* ---- Desktop : deux colonnes ---- */
@media (min-width: 768px) {
	.nt-videos__track {
		grid-template-columns: repeat(2, 1fr);
		gap: clamp(1.2rem, 2.4vw, 1.75rem);
	}
}

/* ================= Lecteur vídeo en popup (modal) ================= */
.nt-scroll-lock { overflow: hidden; }

.nt-vmodal { position: fixed; inset: 0; z-index: 1000; }
.nt-vmodal[hidden] { display: none !important; }
.nt-vmodal__overlay { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.82); }

.nt-vmodal__dialog {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(960px, calc(100vw - 2 * var(--nt-gutter)));
}
.nt-vmodal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.nt-vmodal__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: #000;
}
.nt-vmodal__close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #0b1220;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.nt-vmodal__close:hover { background: #f0f2f6; }
.nt-vmodal__close:focus-visible { outline: 3px solid #1a73c7; outline-offset: 2px; }

.nt-vmodal__caption {
	margin: 0.85rem 0 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	text-align: center;
}

@media (max-width: 640px) {
	.nt-vmodal__close { top: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); }
}
