/*
 * Exuvie - Film libre : film (formulaire puis lecteur), encart AlloCiné, bandeau de soutien.
 * Couleurs du thème Kadence (boutons orange, textes) ; arrondis modérés, sans dégradé ni animation.
 */

.exv-fl-bloc {
	--exv-fl-bouton: var(--global-palette-btn-bg, #cd4e10);
	--exv-fl-bouton-texte: var(--global-palette-btn, #fff);
	--exv-fl-texte: var(--global-palette4, #2d3748);
	--exv-fl-doux: var(--global-palette5, #4a5568);
	--exv-fl-fond: #fff7ed;
	--exv-fl-bord: #f3d3bd;
	display: grid;
	gap: 18px;
	margin: 0 0 24px;
	color: var(--exv-fl-texte);
}

.exv-fl-lecteur {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.exv-fl-lecteur iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Avant la lecture : l'image du produit, l'étiquette et le bouton lecture (comme les bandes-annonces des campagnes). */
.exv-fl-lancer {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	background: #1a202c;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.exv-fl-lancer img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain; /* Une affiche en portrait reste entière, sur fond sombre. */
}

.exv-fl-etiquette-video {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	font-size: .8rem;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border-radius: 4px;
}

.exv-fl-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}

.exv-fl-play svg {
	width: 34px;
	height: 34px;
	margin-left: 4px;
	fill: var(--exv-fl-bouton);
}

/* Fin de l'extrait : message et bouton vers le formulaire, à la place du lecteur. */
.exv-fl-fin {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px;
	background: #1a202c;
	text-align: center;
}

.exv-fl-fin-titre {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.exv-fl-lancer:focus-visible {
	outline: 3px solid var(--exv-fl-bouton);
	outline-offset: -3px;
}

.exv-fl-lecteur[hidden],
.exv-fl-formulaire[hidden],
.exv-fl-erreur[hidden] {
	display: none;
}

.exv-fl-formulaire {
	padding: 22px 24px;
	background: var(--exv-fl-fond);
	border: 1px solid var(--exv-fl-bord);
	border-left: 4px solid var(--exv-fl-bouton);
	border-radius: 10px;
}

.exv-fl-titre {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.exv-fl-texte,
.exv-fl-mention {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
}

.exv-fl-mention {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--exv-fl-doux);
}

.exv-fl-etiquette {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}

.exv-fl-ligne {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.exv-fl-ligne input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px 14px;
	font-size: 16px;
	color: var(--exv-fl-texte);
	background: #fff;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
}

.exv-fl-ligne input[type="email"]:focus {
	color: var(--exv-fl-texte);
	background: #fff;
	outline: 2px solid var(--exv-fl-bouton);
	outline-offset: 1px;
}

.exv-fl-bouton,
.exv-fl-bloc a.exv-fl-bouton {
	display: inline-block;
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--exv-fl-bouton-texte);
	background: var(--exv-fl-bouton);
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
}

.exv-fl-bouton[disabled] {
	opacity: .6;
	cursor: wait;
}

.exv-fl-bloc a.exv-fl-bouton--second {
	color: var(--exv-fl-bouton);
	background: #fff;
	border: 2px solid var(--exv-fl-bouton);
}

.exv-fl-piege {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
}

.exv-fl-erreur {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #9b2c2c;
}

.exv-fl-allocine {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.exv-fl-allocine p {
	flex: 1 1 260px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.exv-fl-soutien {
	margin: 0;
}

@media (max-width: 600px) {
	.exv-fl-formulaire {
		padding: 18px;
	}

	.exv-fl-bouton,
	.exv-fl-bloc a.exv-fl-bouton {
		width: 100%;
		text-align: center;
	}
}
