/* LGD Brief mobile — styles des stories (mobile uniquement, injecté par brief.js) */

html.lgd-brief-lock { overflow: hidden; }

.lgd-b,
.lgd-b *,
.lgd-b *::before,
.lgd-b *::after { box-sizing: border-box; }

.lgd-b {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
	background: var(--lgd-brief-blue, #0b3d91);
	color: #fff;
	font-family: Montserrat, Gotham, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	opacity: 0;
	animation: lgdbIn .25s ease forwards;
}
.lgd-b.is-out { animation: lgdbOut .2s ease forwards; }

.lgd-b h2, .lgd-b p, .lgd-b ul, .lgd-b li { color: inherit; font-family: inherit; }

/* Barres de progression */
.lgd-b-bars { display: flex; gap: 4px; padding: 12px 16px 0; }
.lgd-b-bar { flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.lgd-b-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lgd-brief-pink, #f9c6dc); }
.lgd-b-bar.is-done .lgd-b-fill,
.lgd-b-bar.is-static .lgd-b-fill { width: 100%; }
.lgd-b-bar.is-active .lgd-b-fill { animation: lgdbFill linear forwards; }
.lgd-b.is-held .lgd-b-fill { animation-play-state: paused; }

/* En-tête */
.lgd-b-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.lgd-b-av {
	flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center;
	background: #fff; color: var(--lgd-brief-blue, #0b3d91); font-weight: 800; font-size: 16px;
}
.lgd-b-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lgd-b-meta { flex: 1; min-width: 0; }
.lgd-b-name { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgd-b-sub { margin: 2px 0 0; font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lgd-b-icon {
	flex: none; margin: 0; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
	font-family: inherit; font-weight: 700; line-height: 1;
	-webkit-appearance: none; appearance: none;
}
.lgd-b-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; padding: 0; }

/* Contenu */
.lgd-b-stage {
	flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	display: flex; flex-direction: column;
	padding: 16px 22px;
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.lgd-b-slide { margin: auto 0; animation: lgdbSlide .3s ease both; }
.lgd-b-num { margin: 0 0 14px; font-size: 64px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .22); }
.lgd-b-tag {
	display: inline-block; margin: 0 0 16px; padding: 6px 10px; border-radius: 6px;
	background: var(--lgd-brief-pink, #f9c6dc); color: var(--lgd-brief-blue, #0b3d91);
	font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.lgd-b-title { margin: 0 0 18px; font-size: clamp(24px, 7.4vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: 0; }
.lgd-b-list { margin: 0 0 20px; padding: 0 0 0 20px; list-style: disc; }
.lgd-b-list li { margin: 0 0 10px; padding: 0; font-size: 16px; line-height: 1.45; }
.lgd-b-you { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); }
.lgd-b-you-l { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.lgd-b-you-t { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.lgd-b-end-t { margin: 0 0 22px; font-size: 16px; line-height: 1.5; opacity: .92; }

/* Pied : boutons */
.lgd-b-foot { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; }
.lgd-b-row { display: flex; align-items: center; gap: 10px; }
.lgd-b-cta,
.lgd-b-wa {
	display: flex; align-items: center; justify-content: center; margin: 0;
	height: 52px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
	font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1; text-decoration: none;
	-webkit-appearance: none; appearance: none;
}
.lgd-b-cta { flex: 1; background: #fff; color: var(--lgd-brief-blue, #0b3d91); }
.lgd-b-wa { display: inline-flex; background: var(--lgd-brief-pink, #f9c6dc); color: var(--lgd-brief-blue, #0b3d91); }
.lgd-b-share { width: 52px; height: 52px; }
.lgd-b-skip {
	align-self: center; margin: 0; padding: 10px 12px; border: 0; background: none; cursor: pointer;
	color: #fff; opacity: .85; font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: underline;
}

.lgd-b :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@keyframes lgdbIn { to { opacity: 1; } }
@keyframes lgdbOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes lgdbFill { from { width: 0; } to { width: 100%; } }
@keyframes lgdbSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.lgd-b { animation: none; opacity: 1; }
	.lgd-b-slide { animation: none; }
	.lgd-b-bar.is-active .lgd-b-fill { animation: none; width: 100%; }
}
