/* GFC 30/09/2026 — lecteur des vidéos hébergées sur le site (remplace les intégrations Odysee).
   Habille toute balise <video> d'une description produit : cadre arrondi, image d'aperçu, gros bouton lecture, fenêtre vidéo des tuiles.
   Script associé : js/autoload/90-gfc-video-20260930b.js. Sans script, la balise reste lisible (contrôles du navigateur). */
.rte video.gfc-video,
.rte video { max-width: 100%; height: auto; }

.gfc-video-box {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 18px auto;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
/* vidéo verticale (format téléphone) : on ne l'étire pas sur toute la largeur de la fiche */
.gfc-video-box.gfc-video-portrait { max-width: 400px; }
.gfc-video-box video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82vh;
	background: #000;
}
.gfc-video-play {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35) 100%);
	cursor: pointer;
}
.gfc-video-play span {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: linear-gradient(180deg, #ffa43a 0%, #ea8914 100%);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .4);
	transition: transform .15s;
}
.gfc-video-play span:after {
	content: "";
	position: absolute;
	left: 33px;
	top: 24px;
	border-style: solid;
	border-width: 18px 0 18px 28px;
	border-color: transparent transparent transparent #fff;
}
.gfc-video-play:hover span,
.gfc-video-play:focus span { transform: scale(1.08); }
.gfc-video-box.gfc-video-lu .gfc-video-play { display: none; }

@media (max-width: 767px) {
	.gfc-video-box { border-radius: 8px; margin: 12px auto; }
	.gfc-video-play span { width: 66px; height: 66px; }
	.gfc-video-play span:after { left: 26px; top: 19px; border-width: 14px 0 14px 22px; }
}

/* vidéo ouverte depuis le bouton d'une tuile produit */
.gfc-video-modal {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .84);
}
.gfc-video-modal-cadre { position: relative; line-height: 0; max-width: 100%; }
.gfc-video-modal video {
	display: block;
	max-width: min(1100px, 94vw);
	max-height: 86vh;
	width: auto;
	height: auto;
	background: #000;
	border-radius: 10px;
}
.gfc-video-modal-fermer {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font: 700 26px/38px Arial, sans-serif;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
@media (max-width: 767px) {
	.gfc-video-modal-fermer { top: 6px; right: 6px; }
}
