/* ================= Fridaa Live Sketch — Direction artistique ================= */
:root {
	--fls-bg: #000000;
	--fls-fg: #ffffff;
	--fls-radius: 24px;
	--fls-btn-radius: 100px;
	--fls-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fls-player-root,
.fls-search-wrap,
.fls-session-history-item {
	font-family: var(--fls-font);
}

/* ---------- Logo ---------- */
.fls-logo {
	height: 40px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
	cursor: pointer;
}
@media (max-width: 640px) {
	.fls-logo {
		height: 32px;
	}
}

/* ---------- Formulaire de recherche ---------- */
.fls-search-wrap {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 20px;
}
.fls-search-title {
	font-weight: 500;
	font-size: 2rem;
	margin-bottom: 32px;
}
.fls-search-bar {
	display: flex;
	align-items: center;
	border: 1px solid #1a1a1a;
	border-radius: var(--fls-btn-radius);
	padding: 6px 8px 6px 20px;
	gap: 12px;
	max-width: 700px;
	margin: 0 auto 28px;
}
.fls-search-bar input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	padding: 10px 0;
}

/* Radios natifs cachés visuellement mais toujours accessibles au clavier (Tab + flèches) */
.fls-pill-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.fls-pill-radio:focus-visible + label.fls-pill {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.fls-pill-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}
.fls-pill-label {
	min-width: 90px;
	text-align: left;
	font-size: 0.95rem;
	color: #333;
}

/* Boutons "pill" du moteur de recherche : texte noir, fond blanc 50%, hover blanc plein + bordure noire */
.fls-pill {
	padding: 8px 18px;
	border-radius: var(--fls-btn-radius);
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.5);
	color: #1a1a1a;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	display: inline-block;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.fls-pill:hover {
	background: rgba(255, 255, 255, 1);
	border-color: #1a1a1a;
}
.fls-pill-radio:checked + label.fls-pill {
	background: #ffffff;
	border-color: #1a1a1a;
}
@media (max-width: 640px) {
	.fls-pill {
		font-size: 0.8rem;
	}
}
.fls-pill-progressive {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
}
.fls-pill-progressive .fls-help-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	font-size: 0.7rem;
}
.fls-help-tooltip {
	display: none;
	position: absolute;
	top: 130%;
	left: 50%;
	transform: translateX(-50%);
	width: 260px;
	background: #ffffff;
	border: 1px solid #1a1a1a;
	color: #1a1a1a !important;
	padding: 14px;
	border-radius: 16px;
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	z-index: 20;
}
.fls-pill-progressive:hover .fls-help-tooltip,
.fls-pill-progressive:focus-within .fls-help-tooltip {
	display: block;
}
.fls-search-cta {
	margin-top: 12px;
}

/* ---------- Player : cadre général plein écran ---------- */
.fls-player-root {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--fls-bg);
	color: var(--fls-fg) !important;
	overflow-y: auto;
	z-index: 999999;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
.fls-player-root * {
	box-sizing: border-box;
}
/* Garde-fou : force le texte en blanc même si le thème Oxygen impose une couleur de titre globale */
.fls-player-root h1,
.fls-player-root h2,
.fls-player-root h3,
.fls-player-root p,
.fls-player-root span,
.fls-player-root label {
	color: inherit !important;
}

.fls-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	gap: 12px;
	background: transparent;
	z-index: 7;
}
.fls-topbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}
.fls-close-btn {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.4rem;
	cursor: pointer;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0;
}
.fls-topbar .fls-close-btn {
	margin-top: -7px;
}
.fls-credit-inline,
.fls-topbar-right .fls-session-timer-top {
	font-size: 0.75rem;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: var(--fls-btn-radius);
	white-space: nowrap;
}
.fls-credit-inline a {
	color: inherit;
	text-decoration: none;
}
.fls-credit-inline a:hover,
.fls-credit-inline a:focus {
	color: rgba(255, 255, 255, 0.8) !important;
}
@media (max-width: 640px) {
	/* Sur mobile, plus de place en haut : le nom du photographe descend en bas (voir .fls-credit-bottom),
	   le topbar ne garde que logo + timer de session + croix. */
	.fls-credit-inline {
		display: none;
	}
}
/* Le timer de session vit désormais en haut à droite sur desktop ET mobile (plus dans la barre du bas). */
.fls-topbar-right .fls-session-timer-top {
	display: inline-block;
}

/* ---------- Écran "Ready to sketch" et écran de fin ---------- */
.fls-screen-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 24px;
	padding: 60px 24px;
	flex: 1 1 auto;
	min-height: 0;
	color: var(--fls-fg);
}
.fls-screen-centered h2 {
	font-size: 2rem;
	font-weight: 500;
}
.fls-btn {
	padding: 12px 28px;
	border-radius: var(--fls-btn-radius);
	border: 1px solid #1a1a1a;
	background: transparent;
	color: #1a1a1a !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	text-decoration: none;
	display: inline-block;
}
.fls-btn.fls-btn-primary {
	background: #1a1a1a;
	color: #ffffff !important;
	border-color: #1a1a1a;
}
/* Sur les écrans plein fond noir (ready/end), le bouton secondaire doit rester lisible en blanc */
.fls-screen-centered .fls-btn:not(.fls-btn-primary) {
	color: #ffffff !important;
	border-color: #ffffff;
}

/* ---------- Écran image (page 1) ---------- */
.fls-image-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--fls-bg);
}
.fls-image-stage img {
	max-height: 100% !important;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	transform: scale(var(--fls-zoom, 1));
	transition: transform 0.2s ease;
}
.fls-image-stage.fls-dimmed::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 5;
}

.fls-bottombar {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 6;
}
.fls-bottombar-desktop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.fls-bottombar-mobile {
	display: none;
}
.fls-capsule {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: var(--fls-btn-radius);
	padding: 10px 18px;
	font-size: 0.85rem;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
}
.fls-capsule button,
.fls-capsule a {
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	padding: 0;
}
.fls-capsule a:hover,
.fls-capsule a:focus,
.fls-capsule a:visited {
	color: #ffffff !important;
}
.fls-capsule svg {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
	overflow: visible;
}
/* Largeur fixe (chiffres à chasse égale) pour que le menu ne "saute" pas visuellement
   à chaque changement de chiffre du minuteur. */
.fls-session-timer,
.fls-pose-timer {
	font-variant-numeric: tabular-nums;
	display: inline-block;
}
.fls-pose-timer {
	min-width: 2.6em;
}
.fls-session-timer {
	min-width: 8.5em;
}
.fls-pose-timer.fls-time-warning {
	color: #ff6b5e;
	font-weight: 600;
}

/* Info-bulle réutilisable au survol (pouce bas, "progressive"...) */
.fls-tooltip-wrap {
	position: relative;
	display: inline-flex;
}
.fls-tooltip-wrap .fls-help-tooltip {
	top: auto;
	bottom: 130%;
	left: auto;
	right: 0;
	transform: none;
	width: 220px;
	max-width: calc(100vw - 30px);
}
/* Spécificité (2 classes) volontairement supérieure à ".fls-player-root span" (1 classe + 1 balise) :
   sinon le garde-fou qui force le texte en blanc partout dans le player regagne malgré le !important
   du haut de fichier, à spécificité égale ou inférieure. */
.fls-player-root .fls-help-tooltip {
	color: #1a1a1a !important;
}
.fls-tooltip-wrap:hover .fls-help-tooltip,
.fls-tooltip-wrap:focus-within .fls-help-tooltip {
	display: block;
}
.fls-tooltip-wrap button[data-action="vote-down"] {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	justify-content: center;
	flex-shrink: 0;
}
.fls-thumb-emoji {
	line-height: 1;
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
button[data-action="vote-down"]:hover .fls-thumb-emoji,
button[data-action="vote-down"].fls-voted .fls-thumb-emoji {
	opacity: 1;
	transform: scale(1.25);
}

.fls-credit-bottom {
	display: none;
}

@media (max-width: 640px) {
	.fls-bottombar {
		left: 20px;
		right: 20px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
	.fls-bottombar-desktop {
		display: none;
	}
	.fls-bottombar-mobile {
		display: flex;
		justify-content: center;
		width: 100%;
	}
	.fls-credit-bottom {
		display: inline-block;
		font-size: 0.72rem;
		background: transparent;
		color: #ffffff;
		padding: 0;
		white-space: nowrap;
	}
	.fls-credit-bottom a {
		color: inherit;
		text-decoration: none;
	}
	.fls-credit-bottom a:hover,
	.fls-credit-bottom a:focus {
		color: rgba(255, 255, 255, 0.8) !important;
	}
	.fls-bottombar-mobile .fls-capsule {
		justify-content: center;
		flex-wrap: nowrap;
		gap: 8px;
		font-size: 0.75rem;
		padding: 8px 10px;
		max-width: 100%;
		overflow-x: auto;
	}
	.fls-bottombar-mobile .fls-capsule button {
		touch-action: manipulation;
	}
	.fls-bottombar-mobile .fls-capsule svg {
		width: 15.5px;
		height: 15.5px;
		flex-shrink: 0;
		overflow: visible;
	}
	.fls-bottombar-mobile .fls-pose-timer {
		min-width: 2.2em;
	}
	.fls-bottombar-mobile .fls-tooltip-wrap button[data-action="vote-down"] {
		width: 30px;
		height: 30px;
		touch-action: manipulation;
	}
	/* Pas de tooltip au survol/tap sur mobile : pas de place, et le "hover" tactile est ambigu. */
	.fls-bottombar-mobile .fls-help-tooltip {
		display: none !important;
	}
}

/* ---------- Popup générique (ready / gating / exhausted / confirm-stop) ---------- */
.fls-popup-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	z-index: 50;
	padding: 20px;
}
.fls-popup {
	background: rgba(255, 255, 255, 0.8);
	color: #1a1a1a;
	border-radius: var(--fls-radius);
	padding: 32px;
	max-width: 650px;
	width: 90%;
	text-align: center;
	position: relative;
}
.fls-popup h2 {
	font-weight: 500;
	font-size: 1.75rem;
	margin-top: 0;
}
.fls-popup .fls-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	color: #1a1a1a;
}
.fls-popup input[type="email"] {
	padding: 12px 16px;
	border-radius: var(--fls-btn-radius);
	border: 1px solid #999;
	margin-right: 8px;
	font-family: inherit;
}
.fls-popup-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 16px;
	flex-wrap: wrap;
}
/* Dans une popup à fond clair : bouton principal = fond noir texte blanc (déjà géré par .fls-btn-primary),
   bouton secondaire = bordure noire 1px + texte noir (contrairement à la version blanche des écrans plein fond noir) */
.fls-popup .fls-btn:not(.fls-btn-primary) {
	color: #1a1a1a !important;
	border-color: #1a1a1a;
}

/* Empile la popup de fin de session et le bloc micro-feedback (celui-ci reste hors de la
   carte blanche, sur le fond sombre, comme sur la maquette). */
.fls-end-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
	padding: 12px 0;
}
.fls-end-feedback {
	text-align: center;
	max-width: 480px;
	width: 100%;
}
.fls-popup-divider {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	margin: 24px 0;
}
.fls-popup-share-text {
	margin-bottom: 16px;
	font-size: 0.95rem;
}

/* Popup plafond quotidien */
.fls-popup-cap-footer {
	font-style: italic;
	font-size: 0.8rem;
	opacity: 0.75;
	margin-top: 16px;
	margin-bottom: 0;
}
.fls-popup-cap-footer a {
	color: inherit;
}
.fls-popup code {
	background: rgba(0, 0, 0, 0.08);
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 600;
}

/* ---------- Fin de session ---------- */
.fls-end-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.fls-emoji-row {
	display: flex;
	gap: 20px;
	font-size: 2rem;
	justify-content: center;
	margin: 16px 0;
}
.fls-emoji-row button {
	background: none;
	border: none;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.fls-emoji-row button.fls-selected,
.fls-emoji-row button:hover {
	opacity: 1;
	transform: scale(1.2);
}
.fls-microfeedback-input {
	width: 100%;
	padding: 10px 14px;
	border-radius: var(--fls-btn-radius);
	border: 1px solid #999;
	margin-top: 8px;
	font-family: inherit;
}
.fls-survey-prompt {
	font-size: 0.8rem;
	color: #ffffff;
	margin-top: 18px;
}
.fls-survey-prompt a {
	color: inherit;
}
.fls-survey-prompt a:hover,
.fls-survey-prompt a:focus {
	color: rgba(255, 255, 255, 0.8) !important;
}
.fls-feedback-thanks {
	font-size: 1.1rem;
}

/* ---------- "Mon compte" : formulaire et historique de session ---------- */
.fls-account-login-message {
	font-family: var(--fls-font);
}
.fls-session-history {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
.fls-session-history-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #e5e5e5;
	width: 100%;
}
.fls-session-link {
	text-decoration: none;
	color: inherit;
}
.fls-session-link:hover {
	text-decoration: underline;
}
.fls-session-link strong {
	font-weight: 700;
}
.fls-share-btn {
	flex-shrink: 0;
	padding: 6px 16px;
	border-radius: var(--fls-btn-radius);
	border: 1px solid #1a1a1a;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
}

/* ---------- Popups sur mobile : pleine largeur, marge fixe de 20px de chaque côté ---------- */
@media (max-width: 640px) {
	.fls-popup-overlay {
		padding: 20px;
	}
	.fls-popup {
		width: 100%;
		max-width: none;
		padding: 30px 20px 24px;
	}
	.fls-popup h2 {
		font-size: 1.3rem;
	}
	.fls-popup-end {
		padding: 40px 20px;
	}
}
