/* SCF Visionneuse 3D – couleurs de la palette globale Kadence. */
.scfv-cadre { position: relative; display: inline-block; max-width: 100%; }
.scfv-cadre img.scfv-stereo { cursor: zoom-in; }
.scfv-badge {
	position: absolute; right: 8px; bottom: 8px;
	background: #0062FF; color: #fff !important;
	border: 2px solid #fff; border-radius: 4px;
	font: 700 13px/1 system-ui, sans-serif; padding: 6px 8px; cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.scfv-badge::before { content: "👓 "; }
.scfv-badge:hover, .scfv-badge:focus-visible { background: #E5141B; color: #fff !important; }
img.scfv-stereo { cursor: zoom-in; }
.scfv-bouton-album {
	display: inline-block; margin: .4em .4em .4em 0;
	background: transparent; color: var(--global-palette1, #2b6cb0);
	border: 2px solid var(--global-palette1, #2b6cb0); border-radius: 4px;
	padding: .3em .8em; font-weight: 600; font-size: .9em; cursor: pointer; line-height: 1.4;
}
.scfv-bouton-album::before { content: "👓 "; }
.scfv-bouton-album:hover, .scfv-bouton-album:focus-visible { background: var(--global-palette1, #2b6cb0); color: var(--global-palette9, #fff); }
.scf-media .scfv-bouton-album { margin-top: 0; }

html.scfv-ouvert { overflow: hidden; }
.scfv-ecran {
	position: fixed; inset: 0; z-index: 100000;
	background: #0b0d10; color: #e8ecf1;
	display: grid; grid-template-rows: auto 1fr auto auto;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.scfv-ecran[hidden] { display: none; }
.scfv-haut { display: flex; align-items: center; gap: 1em; padding: .6em 1em; border-bottom: 1px solid #222831; }
.scfv-titre { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scfv-compteur { color: #9aa5b1; font-variant-numeric: tabular-nums; }
.scfv-fermer { background: none; border: 0; color: #e8ecf1; font-size: 2em; line-height: 1; cursor: pointer; padding: 0 .2em; }
.scfv-scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.scfv-canvas { display: block; max-width: 100%; max-height: 100%; }
.scfv-attente { position: absolute; color: #9aa5b1; }
.scfv-attente[hidden] { display: none; }
.scfv-prec, .scfv-suiv {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	background: rgba(0,0,0,.45); color: #fff; border: 0; border-radius: 50%;
	width: 48px; height: 48px; font-size: 32px; line-height: 44px; cursor: pointer;
}
.scfv-prec { left: 10px; } .scfv-suiv { right: 10px; }
.scfv-seule .scfv-prec, .scfv-seule .scfv-suiv { display: none; }
.scfv-legende { text-align: center; padding: .4em 1em; color: #c7d0da; font-size: .95em; min-height: 1.6em; }
.scfv-outils { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; align-items: center; padding: .6em 1em 1em; border-top: 1px solid #222831; }
.scfv-outils select, .scfv-outils button, .scfv-outils a {
	background: #1a1f26; color: #e8ecf1; border: 1px solid #39424e; border-radius: 4px;
	padding: .45em .8em; font-size: .9em; cursor: pointer; text-decoration: none;
}
.scfv-outils select:focus-visible, .scfv-outils button:focus-visible, .scfv-fermer:focus-visible, .scfv-prec:focus-visible, .scfv-suiv:focus-visible { outline: 2px solid var(--global-palette1, #4a90e2); outline-offset: 2px; }
.scfv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 600px) {
	.scfv-outils a { display: none; }
	.scfv-prec, .scfv-suiv { width: 40px; height: 40px; font-size: 26px; line-height: 36px; }
}

/* Vidéos */
.scfv-barre { display: none; align-items: center; gap: .6em; padding: .3em 1em .8em; }
.scfv-mode-video .scfv-barre { display: flex; }
.scfv-vseul { display: none; }
.scfv-mode-video .scfv-vseul { display: inline-block; }
.scfv-barre button { background: #1a1f26; color: #e8ecf1; border: 1px solid #39424e; border-radius: 4px; padding: .35em .7em; cursor: pointer; min-width: 2.6em; }
.scfv-position { flex: 1; accent-color: var(--global-palette1, #4a90e2); }
.scfv-temps { color: #9aa5b1; font-variant-numeric: tabular-nums; font-size: .9em; white-space: nowrap; }
.scfv-mode-video .scfv-canvas { cursor: pointer; }
.scfv-mode-enligne .scfv-canvas, .scfv-mode-enligne .scfv-mode, .scfv-mode-enligne .scfv-inverser, .scfv-mode-enligne label { display: none; }
.scfv-iframe { width: min(100%, calc((100vh - 240px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; display: block; }
.scfv-yt-boite { position: relative; overflow: hidden; width: min(100%, calc((100vh - 240px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; }
.scfv-yt-boite .scfv-iframe { width: 100%; height: 100%; }
.scfv-yt-sbs-g .scfv-iframe { width: 200%; max-width: none; }
.scfv-yt-tb-g .scfv-iframe { height: 200%; aspect-ratio: auto; }
.scfv-yt-verif { margin: .6rem auto 0; max-width: 960px; padding: .55rem .8rem; font: 500 14px/1.45 system-ui, sans-serif; color: #fff; background: #222833; border-left: 4px solid #6B7585; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.scfv-yt-verif--ok { border-left-color: #2fbf71; }
.scfv-yt-verif--doute { border-left-color: #f0a020; }
.scfv-yt-verif--non { border-left-color: #E5141B; }
.scfv-yt-choix { display: inline-flex; gap: .3rem; }
.scfv-yt-choix button { background: transparent; color: #fff; border: 1px solid #6B7585; padding: .25rem .6rem; cursor: pointer; font: inherit; }
.scfv-yt-choix button[aria-pressed="true"] { background: #0062FF; border-color: #0062FF; }
a[href$=".mp4"]:not(.scf-media__vignette)::after, a[href$=".MP4"]:not(.scf-media__vignette)::after { content: " ▶"; font-size: .85em; }

/* Sélecteur de langue GTranslate (drapeaux flottants) masqué pendant la visionneuse. */
html.scfv-ouvert .gt_switcher_wrapper,
html.scfv-ouvert .gtranslate_wrapper,
html.scfv-ouvert .gt_float_switcher,
html.scfv-ouvert #goog-gt-tt { display: none !important; }
.scfv-mode-enligne .scfv-original { display: none; }
.scfv-original[aria-pressed="true"] { background: var(--global-palette1, #2b6cb0) !important; border-color: var(--global-palette1, #2b6cb0) !important; }
.scfv-brut .scfv-mode, .scfv-brut .scfv-inverser { opacity: .4; pointer-events: none; }

.scfv-mode-enligne .scfv-scene { flex-direction: column; justify-content: center; align-items: stretch; }
.scfv-mode-enligne .scfv-yt-verif { width: min(100%, calc((100vh - 240px) * 16 / 9)); box-sizing: border-box; }
