:root {
	--fayat-blue: #23549a;
	--fayat-blue-dark: #1B3F73;
	--fayat-yellow: #fbd109;
	--white: #ffffff;
	--bg-gray: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }

/* Loader */
#loader-wrapper { position: fixed; inset: 0; background: var(--fayat-blue-dark); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity .5s, visibility .5s; }
.loader { width: 50px; height: 50px; border: 5px solid rgba(255,255,255,.2); border-radius: 50%; border-top-color: var(--fayat-yellow); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* Liens légaux */
.footer-links { font-size: 11px; color: #999; text-align: center; }
.footer-links a { color: #666; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-separator { color: #ccc; margin: 0 12px; }

/* ===== Accueil ===== */
.hero { display: grid; grid-template-columns: minmax(320px, 40%) 1fr; min-height: 100vh; background: var(--fayat-blue-dark); }
.hero[hidden] { display: none; }

.hero-visual {
	position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(251,209,9,.18) 0%, rgba(251,209,9,0) 55%),
		linear-gradient(160deg, var(--fayat-blue) 0%, var(--fayat-blue-dark) 100%);
}
.hero-visual::before {
	content: ''; position: absolute; inset: -20%;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 46px),
		repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 46px);
	pointer-events: none;
}
.hero-visual::after {
	content: ''; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px;
	border: 26px solid var(--fayat-yellow); transform: rotate(45deg); opacity: .9; pointer-events: none;
}
.hero-logo { position: relative; width: min(62%, 300px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }

.hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; padding: 70px 80px; color: #fff; }

.hero-eyebrow { display: inline-block; color: var(--fayat-yellow); font-weight: 800; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-weight: 800; line-height: 1.05; margin: 0; font-size: clamp(34px, 4.6vw, 64px); }

.teaser { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.teaser p { margin: 0; }
.teaser-countdown { font-size: clamp(20px, 2.1vw, 28px); font-weight: 700; color: var(--fayat-yellow); line-height: 1.25; }
.teaser-text { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.45; opacity: .92; }
.teaser-date { display: flex; align-items: center; gap: 14px; font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; }
.teaser-date svg { width: 1.3em; height: 1.3em; flex-shrink: 0; color: var(--fayat-yellow); }
.teaser-date[hidden], .teaser-countdown[hidden] { display: none; }

.btn-hero {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--fayat-yellow); color: var(--fayat-blue-dark);
	font-weight: 800; font-size: 17px; line-height: 1; padding: 19px 42px;
	border-radius: 50px; text-decoration: none; cursor: pointer;
	box-shadow: 0 10px 26px rgba(0,0,0,.28); transition: transform .2s ease, box-shadow .2s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.32); }

.speakers-section { width: 100%; max-width: 760px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); }
.speakers-title { color: var(--fayat-yellow); font-size: 18px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 22px; }
.speakers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.speaker-card { border-left: 3px solid var(--fayat-yellow); padding-left: 14px; }
.speaker-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; line-height: 1.25; }
.speaker-card p { color: rgba(255,255,255,.82); font-size: 13px; margin: 0; line-height: 1.4; }

.site-footer { padding: 28px 20px 40px; background: #fff; }

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero-visual { height: 240px; }
	.hero-visual::after { width: 180px; height: 180px; border-width: 18px; right: -70px; bottom: -70px; }
	.hero-logo { width: 170px; }
	.hero-content { align-items: center; text-align: center; padding: 44px 24px 56px; gap: 32px; }
	.teaser-date { justify-content: center; }
	.speakers-title { text-align: center; }
	.speakers-grid { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 420px) { .btn-hero { width: 100%; } }

/* ===== Page live ===== */
html.page-live, html.page-live body { height: 100%; overflow: hidden; }
.app-wrapper { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
header { height: 70px; background: var(--fayat-blue-dark); display: flex; align-items: center; padding: 0 25px; box-shadow: 0 2px 10px rgba(0,0,0,.3); z-index: 100; flex-shrink: 0; }
.logo-top { height: 52px; width: auto; margin-right: 20px; }
.live-title { font-weight: 700; font-size: 15px; color: #fff; border-left: 1px solid rgba(255,255,255,.3); padding-left: 20px; }
.live-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.live-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #e53935; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

main.scene { display: flex; flex: 1; overflow: hidden; min-height: 0; }
.stage { flex: 1; display: flex; flex-direction: column; background: #000; min-width: 0; }
.video-side { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.video-zone { position: relative; width: 100%; max-height: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-zone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-attente { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; padding: 24px; background: linear-gradient(160deg, var(--fayat-blue) 0%, var(--fayat-blue-dark) 100%); }
.video-attente img { width: 120px; }
.video-attente p { font-size: clamp(16px, 2vw, 22px); font-weight: 700; }
.video-attente[hidden] { display: none; }

.actions-live { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 14px 20px; background: #fff; border-top: 1px solid #eee; }
.actions-live:empty { display: none; }
.action-live {
	display: block; padding: 13px 24px; border-radius: 50px; text-align: center; text-decoration: none;
	font-weight: 700; font-size: 15px; line-height: 1.25;
	border: 2px solid var(--fayat-blue); color: var(--fayat-blue); background: #fff;
	position: relative; overflow: hidden;
	animation: action-entree .75s cubic-bezier(.2,.9,.3,1.25) var(--delai, 0s) backwards;
	transition: background-color .2s, color .2s, transform .2s;
}
.action-live:hover, .action-live:focus-visible { background: var(--fayat-blue); color: #fff; transform: translateY(-1px); }
.action-live.principale { background: var(--fayat-yellow); border-color: var(--fayat-yellow); color: var(--fayat-blue-dark); }
.action-live.principale:hover { background: var(--fayat-blue-dark); border-color: var(--fayat-blue-dark); color: #fff; }
@keyframes action-entree {
	0% { opacity: 0; transform: translateY(22px) scale(.92); }
	60% { opacity: 1; transform: translateY(-4px) scale(1.03); }
	100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .action-live { animation: none; } }

.sidebar { width: 380px; flex-shrink: 0; background: #fff; display: flex; flex-direction: column; overflow-y: auto; box-shadow: -5px 0 20px rgba(0,0,0,.3); z-index: 50; }
.sidebar-section-purple { background: var(--fayat-blue); color: #fff; padding: 40px 25px; flex: 1; }
.title-yellow { color: var(--fayat-yellow); font-weight: 800; font-size: 22px; margin-bottom: 30px; text-transform: uppercase; }
.timeline-side { position: relative; padding-left: 30px; }
.timeline-side::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: var(--fayat-yellow); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::after { content: ''; position: absolute; left: -34px; top: 6px; width: 10px; height: 10px; background: var(--fayat-blue); border: 3px solid var(--fayat-yellow); border-radius: 50%; }
.timeline-title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.timeline-title span { color: var(--fayat-yellow); }
.sidebar-footer { padding: 32px 25px; background: #fff; text-align: center; border-top: 1px solid #eee; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logo-side { width: 110px; display: block; }
.footer-copyright { font-size: 11px; color: #666; }

@media (max-width: 950px) {
	html.page-live, html.page-live body { overflow-y: auto; height: auto; }
	.app-wrapper { height: auto; }
	main.scene { flex-direction: column; overflow: visible; }
	.video-zone { max-height: none; }
	.sidebar { width: 100%; overflow: visible; }
}
@media (max-width: 560px) {
	header { padding: 0 16px; }
	.logo-top { height: 42px; margin-right: 14px; }
	.live-title { font-size: 12px; padding-left: 14px; }
	.actions-live { flex-direction: column; }
}
