/* =============================================
   PAGE MATINALE — CSS
   #283c90 (bleu marine), #74c9e5 (bleu ciel), #FCDB16 (jaune), #020203 (quasi noir)
   ============================================= */

/* ── BASE & RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', 'Poppins', sans-serif; overflow-x: hidden; }
a { text-decoration: none !important; color: inherit; }

/* ── NAVBAR ────────────────────────────────────────────────────────── */
#navbar {
  width: 100%;
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: fixed; top: 0; left: 0; z-index: 999;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#navbar.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.07);
  background: rgba(243, 243, 243, 0.97);
}
#navbar .nav_container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; height: 80px;
  opacity: 0; transform: translateY(-100%);
  transition: opacity 0.3s ease 0.3s, transform 0.4s ease 0.2s;
}
#navbar .nav_container.loaded { opacity: 1; transform: translateY(0); }
#navbar .nav_container .logo img { height: 45px; object-fit: contain; }

/* ── LOGO : masquer le logo blanc sur fond clair ───────────────────── */
#navbar .logo .logo_white { display: none; }
#navbar .logo .logo_color { display: block; }

#navbar .nav_container ul { display: flex; align-items: center; list-style: none; gap: 2px; }
#navbar .nav_container ul li a {
  color: #888; font-size: 14px; font-weight: 500;
  padding: 7px 16px; border-radius: 50px; display: block; position: relative;
}
#navbar .nav_container ul li a:hover { color: #020203; background: rgba(2, 2, 3, 0.05); }
#navbar .nav_container ul li a.active { color: #283c90; font-weight: 700; background: transparent; }
#navbar .nav_container ul li a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: #FCDB16; border-radius: 2px;
}
#navbar .burger {
  display: none; background: none;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 8px;
  padding: 7px 11px; cursor: pointer; font-size: 18px; color: #020203;
}
#navbar .burger:hover { background: rgba(0,0,0,0.05); }
@media (max-width: 768px) {
  #navbar .nav_container { flex-wrap: wrap; height: auto; padding: 15px 5%; gap: 10px; }
  #navbar .nav_container ul { display: none; flex-direction: column; width: 100%; gap: 4px; padding: 8px 0 12px; }
  #navbar .nav_container ul.open { display: flex; }
  #navbar .nav_container ul li a { border-radius: 10px; padding: 10px 16px; }
  #navbar .nav_container ul li a.active::after { bottom: 7px; }
  #navbar .burger { display: block; }
}

body.matinale-page { background: #f3f3f3; }

.nav_cta { background: #FCDB16 !important; color: #020203 !important; border-radius: 8px !important; font-weight: 700 !important; }

/* ── NAV USER — bouton de déconnexion ──────────────────────────────── */
.nav_user {
  display: inline-flex !important; align-items: center; gap: 7px;
}
/* Icône déconnexion et label masqués par défaut */
.nav_user .nav_user_icon_logout  { display: none; }
.nav_user .nav_user_logout_label { display: none; font-weight: 600; }
/* Hover : fond rouge doux + icône power-off + texte déconnexion */
#navbar .nav_container ul li a.nav_user:hover {
  background: rgba(220, 38, 38, 0.10) !important;
  color: #dc2626 !important;
}
.nav_user:hover .nav_user_icon_default { display: none; }
.nav_user:hover .nav_user_icon_logout  { display: inline-flex; }
.nav_user:hover .nav_user_name         { display: none; }
.nav_user:hover .nav_user_logout_label { display: inline; }

/* ============================================================
   HEADER A/B
   ============================================================ */
header {
  padding-top: 90px;
  padding-bottom: 100px;
  width: 90%;
  margin: auto;
}
@media (max-width: 1024px) { header { padding-bottom: 50px; } }
@media (max-width: 768px)  { header { padding-top: 120px; padding-bottom: 25px; } }

header #header_container {
  min-height: 80vh;
  width: 100%;
  border-radius: 25px;
  display: flex;
  align-items: center;
  padding: 50px 0;
}
@media (max-width: 1280px) { header #header_container { flex-direction: column; gap: 50px; } }
@media (max-width: 1024px) { header #header_container { min-height: auto; padding: 50px; } }
@media (max-width: 768px)  { header #header_container { padding: 25px; } }

header #header_container .header_content {
  width: 50%; margin: 0 2.5% 0 5%;
  display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 1440px) { header #header_container .header_content { width: 70%; } }
@media (max-width: 1280px) { header #header_container .header_content { width: 80%; margin: auto; align-items: center; } }
@media (max-width: 1024px) { header #header_container .header_content { width: 100%; } }

header #header_container .header_content h1 { color: #fff; font-weight: bold; margin-bottom: 20px; }

.mat_badges { display: flex; gap: 10px; flex-wrap: wrap; }
.mat_badges span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.badge_theme  { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(5px); }
.badge_type   { background: #FCDB16; color: #020203; }
.badge_type.live   { background: #ff444473;
    color: #fff;
    border: 1px solid #ff4444;}
.badge_type.replay { background: rgba(255,255,255,0); color: #fff; }

.mat_meta { display: flex; gap: 20px; flex-wrap: wrap; }
.mat_meta span { color: rgba(255,255,255,0.75); font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* ---- Questions / pills dans le header ---- */
.mat_questions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mat_question_pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px; padding: 9px 18px;
  color: #fff; font-size: 14px; font-weight: 500; line-height: 1.45;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  max-width: fit-content;
  transition: background 0.2s, border-color 0.2s;
}
.mat_question_pill:hover { background: rgba(255,255,255,0.16); border-color: rgba(252,219,22,0.5); }

header .preview {
  position: relative; width: 50%; margin: 0 5% 0 2.5%;
  min-width: 400px; max-width: 800px;
}
@media (max-width: 1280px) { header .preview { width: 100%; min-width: initial; margin: auto; } }

/* ---- FORMULAIRE ---- */
header .preview #registrationForm {
  max-width: 460px; margin: auto;
  background: rgba(10,12,30,0.55);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Bandeau date en tête du formulaire */
header .preview #registrationForm::before {
  content: '';
  display: block;
  height: 3px;
}

.bloc_form_section { padding: 26px 26px 0; }

header .preview #registrationForm h2 {
  color: #fff; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
header .preview #registrationForm h2::before {
  content: ''; display: inline-block; width: 14px; height: 3px;
  background: #FCDB16; border-radius: 2px; flex-shrink: 0;
}

/* Inputs */
header .preview #registrationForm input[type="text"],
header .preview #registrationForm input[type="email"],
header .preview #registrationForm input[type="tel"] {
  width: 100%; padding: 12px 15px; font-size: 13px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
header .preview #registrationForm input:focus {
  border-color: #FCDB16;
  background: rgba(255,255,255,0.13);
  box-shadow: 0 0 0 3px rgba(252,219,22,0.15);
}
header .preview #registrationForm input::placeholder { color: rgba(255,255,255,0.38); font-weight: 400; }

header .preview #registrationForm .registration-content { display: flex; flex-direction: column; gap: 9px; }
header .preview #registrationForm .registration-content .double { display: flex; gap: 9px; }
header .preview #registrationForm .registration-content .double input,
header .preview #registrationForm .registration-content .double select { width: 50%; }
@media (max-width: 600px) {
  header .preview #registrationForm .registration-content .double { flex-direction: column; }
  header .preview #registrationForm .registration-content .double input,
  header .preview #registrationForm .registration-content .double select { width: 100%; }
}

/* ── SELECT (glassmorphism — identique aux inputs) ─────────────────── */
header .preview #registrationForm select {
  width: 100%; padding: 12px 15px; font-size: 13px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
header .preview #registrationForm select:focus {
  border-color: #FCDB16;
  background-color: rgba(255,255,255,0.13);
  box-shadow: 0 0 0 3px rgba(252,219,22,0.15);
}
header .preview #registrationForm select option {
  background: #1a1f3e;
  color: #fff;
}

/* ── SÉPARATEUR DE SECTIONS FORMULAIRE ─────────────────────────────── */
.form_section_sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 2px 0;
}

.privacy_label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin-top: 2px; }
.privacy_label input[type="checkbox"] { width: 13px; height: 13px; margin-top: 3px; flex-shrink: 0; accent-color: #FCDB16; }
.privacy_label span { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.55; }

header .preview #registrationForm label:not(.privacy_label) {
  font-size: 12px; color: rgba(255,255,255,0.55); display: block; margin-bottom: 10px; line-height: 1.6;
}

header div#connexion, header div#connect { display: flex; flex-wrap: nowrap; justify-content: stretch; }

/* Boutons */
header .preview #registrationForm button[type="submit"] {
  background: #FCDB16;
  border: none; padding: 14px 28px; border-radius: 12px;
  color: #020203; font-weight: 800; font-size: 14px; letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; cursor: pointer; margin-top: 12px;
  font-family: 'Inter', sans-serif;
}
header .preview #registrationForm button[type="submit"]:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(252,219,22,0.35);
}

/* Séparateur "ou" */
.devider { display: flex; align-items: center; gap: 14px; padding: 18px 26px; }
.devider hr { flex: 1; border: none; border-top: 1px solid rgba(255,255,255,0.1); }
.devider p {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.3); white-space: nowrap;
}

#bloc_connect { padding: 0 26px 26px; }
.form_error { color: #ffb3b3; font-size: 12px; margin-top: 4px; }

/* Confirmation inscription */
header .preview #issend {
  width: 100%; height: 100%; margin: auto;
  background: rgba(10,12,30,0.92); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 999; padding: 2rem; border-radius: 24px;
}
header .preview #issend span { font-size: 3.5rem; color: #FCDB16; margin-bottom: 12px; }
header .preview #issend .content { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
header .preview #issend .content h2 { color: #fff; margin-bottom: 4px; font-size: 18px; }
header .preview #issend .content p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; }

/* Carte de bienvenue (connecté, avant live) */
.welcome_card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 20px;
  padding: 32px 28px; color: #fff; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px; max-width: 460px; margin: auto;
  box-shadow: 0 16px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.welcome_card i { font-size: 46px; color: #FCDB16; }
.welcome_card h3 { font-size: 20px; font-weight: 700; }
.welcome_card p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0; }
.welcome_card .welcome_hint { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; }
.header_countdown { display: flex; flex-direction: column; gap: 10px; }
.countdown_label  { color: rgba(255,255,255,0.8); font-size: 14px; }

/* ============================================================
   ÉTAT C : LIVE — design glassmorphism moderne
   ============================================================ */
body#live #videoBoard {
  background: linear-gradient(135deg, #06102e 0%, #0f2260 45%, #0a3d6e 100%);
  border-radius: 28px;
  margin: 0 5%;
  padding: 22px;
  position: relative;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(10,20,80,0.35);
  overflow: hidden;
}
/* Grain subtil en fond */
body#live #videoBoard::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(116,201,229,0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(40,60,144,0.12) 0%, transparent 50%);
  pointer-events: none;
}
@media (max-width: 1024px) { body#live #videoBoard { width: 100%; margin: 0; padding: 16px; border-radius: 0; } }

body#live #videoBoard #mainVideo {
  width: 100%; height: 100%;
  display: flex; gap: 20px;
  position: relative; z-index: 1;
  overflow: hidden;
}
@media (max-width: 1440px) { body#live #videoBoard #mainVideo { flex-direction: column; gap: 16px; } }

body#live #videoBoard #mainVideo #videoLive {
  width: 75%; height: 100%;
  border-radius: 18px;
  aspect-ratio: 16/9;
  border: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
@media (max-width: 1440px) { body#live #videoBoard #mainVideo #videoLive { width: 100%; } }

/* ============================================================
   ÉTAT D : REPLAY — nouveau design moderne
   ============================================================ */

/* Wrapper global */
.replay_page_wrap {
  padding-top: 80px;
  background: #f3f3f3;
  min-height: 100vh;
}

/* ── Bandeau titre ──────────────────────────────────────────── */
.replay_banner {
  position: relative;
  background: #211E31 center / cover no-repeat;
  padding: 56px 5% 60px;
  overflow: hidden;
}
.replay_banner_overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,20,0.96) 0%, rgba(8,8,20,0.80) 55%, rgba(8,8,20,0.45) 100%),
    linear-gradient(to top,   rgba(8,8,20,0.70) 0%, transparent 50%);
}
.replay_banner_content {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.replay_banner_content h1 {
  color: #fff;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900; line-height: 1.2; margin: 0;
  max-width: 820px;
}

/* ── Corps : vidéo + sidebar ────────────────────────────────── */
.replay_body {
  max-width: 1300px; margin: 0 auto;
  padding: 44px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1100px) { .replay_body { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .replay_body { padding: 28px 5% 60px; gap: 24px; } }

/* Vidéo */
.replay_video_wrap {
  position: sticky; top: 92px;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
.replay_video_wrap iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.video_placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 14px;
}
@media (max-width: 1100px) { .replay_video_wrap { position: static; } }

/* Sidebar */
.replay_sidebar {
  display: flex; flex-direction: column; gap: 18px;
}
.replay_sidebar_block {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.sidebar_block_title {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: #283c90; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar_block_title::before {
  content: ''; display: inline-block;
  width: 14px; height: 3px;
  background: #FCDB16; border-radius: 2px; flex-shrink: 0;
}
.replay_edito_text {
  font-size: 13px; color: #555; line-height: 1.8; margin: 0;
}

/* Speakers dans la sidebar */
.replay_speakers_list { display: flex; flex-direction: column; gap: 14px; }
.replay_sp_row { display: flex; align-items: center; gap: 12px; }
.replay_sp_avatar {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #283c90, #74c9e5);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #f3f3f3;
  box-shadow: 0 2px 8px rgba(40,60,144,0.16);
}
.replay_sp_avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.replay_sp_avatar span { font-size: 12px; font-weight: 800; color: #fff; }
.replay_sp_info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.replay_sp_name { font-size: 13px; font-weight: 700; color: #020203; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay_sp_role { font-size: 11px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay_sp_company { font-size: 10px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

p.mat_edito { color: white; }

/* ============================================================
   CHAT — glassmorphism (live)
   ============================================================ */
#liveChat {
  width: 24%;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  padding: 0 18px;
  display: flex; justify-content: space-evenly; flex-direction: column;
  position: absolute; top: 0; right: 0; bottom: 0;
  min-width: 310px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.18);
}
@media (max-width: 1440px) { #liveChat { position: relative; min-height: 520px; min-width: initial; width: 100%; } }

/* En-tête chat */
#liveChat #ChatInLive {
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#liveChat #ChatInLive h3 {
  font-size: 13px; font-weight: 700; margin: 0;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 8px;
}
#liveChat #ChatInLive h3::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 0 3px rgba(255,68,68,0.25);
  animation: live_dot 1.4s ease infinite;
}
@keyframes live_dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
#liveChat #ChatInLive #openSettings {
  background: none; border: none;
  color: rgba(255,255,255,0.4); outline: none;
  position: absolute; right: 0; padding: 0.75rem;
  cursor: pointer; transition: color 0.2s;
}
#liveChat #ChatInLive #openSettings:hover { color: rgba(255,255,255,0.75); }

/* Zone messages */
#liveChat #chat-box {
  height: calc(100% - 160px); overflow-y: auto;
  scroll-behavior: initial;
  scrollbar-color: transparent transparent;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
#liveChat #chat-box:hover { scrollbar-color: rgba(255,255,255,0.2) transparent; }
#liveChat #chat-box .user-messages { padding: 10px 12px; }
#liveChat #chat-box .user-messages:nth-child(even) { background: rgba(255,255,255,0.04); }
#liveChat #chat-box .user-messages strong { text-transform: capitalize; color: #FCDB16; font-size: 12px; }
#liveChat #chat-box .user-messages .message { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; }
#liveChat #chat-box .user-messages .message-date { font-size: 11px; color: rgba(255,255,255,0.35); margin-left: 4px; }

/* Zone saisie */
#liveChat #frm_chat_message {
  height: auto;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
#liveChat #frm_chat_message textarea {
  flex: 1; height: auto; min-height: 42px; max-height: 120px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2); resize: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff; font-size: 13px;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
#liveChat #frm_chat_message textarea::placeholder { color: rgba(255,255,255,0.38); }
#liveChat #frm_chat_message textarea:focus { border-color: rgba(252,219,22,0.5); background: rgba(255,255,255,0.14); }
#liveChat #frm_chat_message button {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.65);
  outline: none; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
#liveChat #frm_chat_message button:hover {
  background: rgba(252,219,22,0.18);
  border-color: rgba(252,219,22,0.45);
  color: #FCDB16;
  box-shadow: none;
}
#liveChat emoji-picker { position: absolute; bottom: 65px; right: 20px; left: 20px; z-index: 1000; border-radius: 12px; overflow: hidden; }
#liveChat #backToScroll { position: absolute; background: rgba(0,0,0,0.5); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; bottom: 90px; right: 20px; left: 20px; font-size: 13px; text-align: center; backdrop-filter: blur(8px); }

/* ============================================================
   CHAT — overrides pour le mode REPLAY
   ============================================================ */
.replay-board #liveChat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 0 16px; min-width: 0; }
.replay-board #liveChat #ChatInLive { height: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 4px; }
.replay-board #liveChat #ChatInLive h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; color: rgba(255,255,255,0.85); text-transform: uppercase; }
.replay-board #liveChat #ChatInLive #openSettings { color: rgba(255,255,255,0.45); padding: 0.75rem; transition: color 0.2s; }
.replay-board #liveChat #ChatInLive #openSettings:hover { color: rgba(255,255,255,0.75); }
.replay-board #liveChat #chat-box { background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.replay-board #liveChat #chat-box .user-messages strong { color: rgba(255,255,255,0.9); }
.replay-board #liveChat #chat-box .user-messages .message-date { color: rgba(255,255,255,0.4); }
.replay-board #liveChat #chat-box .user-messages { color: rgba(255,255,255,0.75); }
.replay-board #liveChat #frm_chat_message { height: auto; align-items: center; gap: 8px; margin-bottom: 14px; }
.replay-board #liveChat #frm_chat_message textarea { width: calc(100% - 96px); min-height: 40px; max-height: 100px; padding: 9px 12px; font-size: 13px; border-radius: 8px; background: rgba(255,255,255,0.92); color: #020203; }
.replay-board #liveChat #frm_chat_message button { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.70); font-size: 15px; transition: background 0.2s, border-color 0.2s; }
.replay-board #liveChat #frm_chat_message button:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.28); box-shadow: none; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.container_counter { display: flex; margin: 0; margin-bottom: 20px; gap: 15px; width: fit-content; }
@media (max-width: 768px) { .container_counter { width: auto; gap: 10px; } }
.container_counter .flip-card * { text-align: center !important; }
.container_counter .flip-card { position: relative; display: inline-flex; flex-direction: column; box-shadow: 0 2px 3px rgba(0,0,0,0.2); border-radius: 0.1em; }
.container_counter .top, .container_counter .bottom,
.container_counter .flip-card .top-flip, .container_counter .flip-card .bottom-flip { height: 0.75em; line-height: 1; padding: 0.25em; overflow: hidden; font-size: 50px; box-sizing: border-box; width: 60px; }
@media (max-width: 768px) { .container_counter .top, .container_counter .bottom, .container_counter .flip-card .top-flip, .container_counter .flip-card .bottom-flip { font-size: 7vw; width: 8vw; } }
.container_counter .top, .container_counter .flip-card .top-flip { background-color: #f7f7f7; border-top-right-radius: 0.1em; border-top-left-radius: 0.1em; }
.container_counter .bottom, .container_counter .flip-card .bottom-flip { background-color: white; display: flex; align-items: flex-end; border-bottom-right-radius: 0.1em; border-bottom-left-radius: 0.1em; justify-content: center; }
.container_counter .flip-card .top-flip { position: absolute; width: 100%; animation: flip-top 250ms ease-in; transform-origin: bottom; }
@keyframes flip-top { 100% { transform: rotateX(90deg); } }
.container_counter .flip-card .bottom-flip { position: absolute; bottom: 0; width: 100%; animation: flip-bottom 250ms ease-out 250ms; transform-origin: top; transform: rotateX(90deg); }
@keyframes flip-bottom { 100% { transform: rotateX(0deg); } }
.container_counter .container-segment { display: flex; flex-direction: column; gap: 0.1em; align-items: center; }
.container_counter .segment { display: flex; gap: 0.1em; }
.container_counter .segment-title { font-size: 1rem; color: #fff; }
.container_counter .hide { display: none; }

/* ============================================================
   MAIN
   ============================================================ */
.mat_main { width: 90%; max-width: 1300px; margin: 0 auto; padding-bottom: 80px; }
@media (max-width: 768px) { .mat_main { width: 95%; } }
#theme, #intervenant, #agenda, #partners { padding: 70px 0 40px; }
.section_title { font-weight: bold; color: #020203; margin-bottom: 50px; }
.section_title::after { content: ''; display: block; width: 40px; height: 3px; background: #FCDB16; margin-top: 8px; border-radius: 2px; }
.theme_text p { font-size: 16px; color: #444; line-height: 1.8; margin-bottom: 14px; }
.theme_text p:last-child { margin-bottom: 0; }

/* ============================================================
   INTERVENANTS
   ============================================================ */
.speakers_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 48px 30px; margin-top: 40px; }
@media (max-width: 768px) { .speakers_grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (max-width: 500px) { .speakers_grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.speaker_card { display: flex; flex-direction: column; align-items: flex-start; }
.speaker_photo_wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; background: #e0e0e0; margin-bottom: 14px; }
.speaker_photo_wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.speaker_initials_sq { width: 100%; height: 100%; background: linear-gradient(135deg, #283c90 0%, #74c9e5 100%); display: flex; align-items: center; justify-content: center; font-size: clamp(26px, 4.5vw, 46px); font-weight: 900; color: #fff; }
.speaker_info { display: flex; flex-direction: column; gap: 0; }
.speaker_info .sp_name { font-size: 13px; font-weight: 800; color: #020203; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.speaker_info .sp_poste { font-size: 12px; color: #444; line-height: 1.45; }
.speaker_info .sp_company { font-size: 11px; color: #888; margin-top: 2px; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda_list { display: flex; flex-direction: column; position: relative; padding: 0; }
.agenda_list::before {
  content: ''; position: absolute; top: 44px; bottom: 44px;
  left: 112px; width: 2px;
  background: linear-gradient(to bottom, transparent 0%, #e4e6f0 6%, #e4e6f0 94%, transparent 100%);
  z-index: 0;
}
.agenda_item { display: grid; grid-template-columns: 80px 24px 1fr; column-gap: 20px; align-items: start; padding: 5px 0; position: relative; }
.agenda_time { display: flex; align-items: flex-start; justify-content: flex-end; padding-top: 18px; }
.agenda_time span { font-size: 11px; font-weight: 700; color: #283c90; background: rgba(40,60,144,0.08); padding: 4px 11px; border-radius: 50px; white-space: nowrap; letter-spacing: 0.3px; display: inline-block; }
.agenda_simple .agenda_time { padding-top: 4px; }
.agenda_simple .agenda_time span { background: transparent; color: #bbb; font-weight: 500; padding: 4px 0; }
.agenda_dot { width: 16px; height: 16px; background: #FCDB16; border-radius: 50%; border: 3px solid #f3f3f3; box-shadow: 0 0 0 2px rgba(252,219,22,0.35); position: relative; z-index: 1; justify-self: center; flex-shrink: 0; margin-top: 21px; }
.agenda_simple .agenda_dot { width: 8px; height: 8px; background: #d4d7e3; border: 2px solid #f3f3f3; box-shadow: none; margin-top: 6px; }
.agenda_content { background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 2px 14px rgba(0,0,0,0.055); border-left: 3px solid #74c9e5; margin: 4px 0 8px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s; }
.agenda_content:hover { transform: translateX(6px); box-shadow: 0 8px 32px rgba(40,60,144,0.1); border-color: #FCDB14; }
.agenda_content h4 { font-size: 15px; font-weight: 700; color: #020203; margin-bottom: 6px; line-height: 1.4; }
.agenda_content p { font-size: 13px; color: #666; line-height: 1.65; margin: 0; }
.agenda_simple .agenda_content { background: transparent; box-shadow: none; padding: 3px 0; border-left: none; margin: 2px 0; }
.agenda_simple .agenda_content:hover { transform: none; box-shadow: none; }
.agenda_simple .agenda_content h4 { font-size: 13px; font-weight: 500; color: #aaa; margin: 0; font-style: italic; }

/* ── Speakers dans l'agenda — chips avec photo ronde ──────────────── */
.agenda_speakers { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.agenda_speaker_chip { display: inline-flex; align-items: center; gap: 7px; }
.agenda_speaker_avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(40,60,144,0.20); background: linear-gradient(135deg, #283c90 0%, #74c9e5 100%); display: flex; align-items: center; justify-content: center; }
.agenda_speaker_avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.agenda_avatar_initials { font-size: 10px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: 0.3px; user-select: none; }
.agenda_speaker_name { font-size: 12px; font-weight: 600; color: #555; white-space: nowrap; }
@media (max-width: 600px) {
  .agenda_list::before { left: 82px; }
  .agenda_item { grid-template-columns: 56px 24px 1fr; column-gap: 14px; }
  .agenda_time { padding-top: 14px; }
  .agenda_time span { font-size: 10px; padding: 3px 8px; }
  .agenda_speaker_name { font-size: 11px; }
  .agenda_speaker_avatar { width: 26px; height: 26px; }
}

/* ============================================================
   PARTENAIRES
   ============================================================ */
#partners { padding: 70px 0 60px; background: transparent; border-radius: 0; }
#partners .partners_container { background: #fff; border-radius: 25px; padding: 70px 70px 60px; }
@media (max-width: 1024px) { #partners .partners_container { padding: 50px 40px; } }
@media (max-width: 768px)  { #partners .partners_container { padding: 40px 24px; } }
.partners_head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 55px; }
.partners_head .section_title { margin-bottom: 0; }
.mat_partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
@media (max-width: 600px) { .mat_partners { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.mat_partner_logo { background: #f8f9fc; border-radius: 22px; padding: 44px 30px 30px; display: flex; flex-direction: column; align-items: center; gap: 20px; border: 1.5px solid #eef0f6; cursor: default; position: relative; overflow: hidden; opacity: 0; transform: translateY(32px); transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.mat_partner_logo::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, #FCDB16, #74c9e5); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; border-radius: 22px 22px 0 0; }
.mat_partner_logo.in-view { opacity: 1; transform: translateY(0); }
.mat_partner_logo:hover { border-color: rgba(116,201,229,0.5); box-shadow: 0 18px 50px rgba(40,60,144,0.1); transform: translateY(-7px); background: #fff; }
.mat_partner_logo:hover::before { transform: scaleX(1); }
.partner_logo_area { width: 100%; height: 70px; display: flex; align-items: center; justify-content: center; }
.mat_partner_logo img { max-height: 60px; max-width: 160px; width: 100%; object-fit: contain; transition: transform 0.3s; }
.mat_partner_logo:hover img { transform: scale(1.04); }
.partner_sep { width: 32px; height: 2px; background: #eee; border-radius: 2px; transition: background 0.3s, width 0.3s; }
.mat_partner_logo:hover .partner_sep { background: #FCDB16; width: 48px; }

/* ============================================================
   REPLAY — wrapper .fullscreen (legacy, conservé)
   ============================================================ */
.replay-board #mainVideo .fullscreen { width: 75%; flex-shrink: 0; position: relative; border-radius: 25px; overflow: hidden; aspect-ratio: 16/9; align-self: flex-start; }
@media (max-width: 1440px) { .replay-board #mainVideo .fullscreen { width: 100%; } }
.replay-board #mainVideo .fullscreen #videoLive { width: 100%; height: 100%; border: none; display: block; position: absolute; top: 0; left: 0; }

/* ============================================================
   BOUTON PLEIN ÉCRAN
   ============================================================ */
#unified-fullscreen-btn { position: absolute; bottom: 50px; right: 10px; z-index: 10; background: rgba(0,0,0,0.55); border: none; border-radius: 8px; width: 36px; height: 36px; color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; backdrop-filter: blur(4px); }
#unified-fullscreen-btn:hover { background: rgba(0,0,0,0.80); }

/* ============================================================
   FULLSCREEN MODE
   ============================================================ */
body.fullscreen-mode { overflow: hidden; }
body.fullscreen-mode > nav, body.fullscreen-mode > div[style*="height:90px"], body.fullscreen-mode > main, body.fullscreen-mode > section, body.fullscreen-mode > footer { display: none !important; }
body.fullscreen-mode #videoBoard { position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; width: 100vw !important; height: 100vh !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; z-index: 99990; background: #000 !important; display: flex !important; align-items: stretch !important; min-height: 0 !important; }
body.fullscreen-mode #mainVideo { width: 100% !important; height: 100% !important; flex-direction: row !important; gap: 0 !important; overflow: visible !important; }
body.fullscreen-mode .fullscreen { flex: 1 !important; width: auto !important; height: 100% !important; aspect-ratio: unset !important; border-radius: 0 !important; align-self: stretch !important; }
body.fullscreen-mode .fullscreen #videoLive { width: 100% !important; height: 100% !important; }
body.fullscreen-mode #liveChat { display: none !important; }
body.fullscreen-mode .minimal-chat-overlay { position: fixed; bottom: 20px; right: 20px; width: 320px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body.fullscreen-mode .minimal-chat-overlay * { pointer-events: auto; }
body.fullscreen-mode .chat-messages-area { overflow: hidden; }
body.fullscreen-mode .messages-container { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: hidden; }
body.fullscreen-mode .messages-container .list-group-item { background: rgba(0,0,0,0.72); border-radius: 8px; padding: 8px 12px; color: #fff; font-size: 13px; transition: opacity 0.3s; border: none; }
body.fullscreen-mode .messages-container .list-group-item .sender { margin-bottom: 3px; }
body.fullscreen-mode .messages-container .list-group-item .sender strong { color: #FCDB16; font-size: 12px; text-transform: capitalize; }
body.fullscreen-mode .messages-container .list-group-item .sender .message-date { color: rgba(255,255,255,0.4); font-size: 11px; margin-left: 4px; }
body.fullscreen-mode .messages-container .list-group-item .message { font-size: 13px; line-height: 1.5; }
body.fullscreen-mode .messages-container .list-group-item.exiting { opacity: 0; }
body.fullscreen-mode .chat-controls-container { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.65); border-radius: 10px; padding: 8px; backdrop-filter: blur(10px); }
body.fullscreen-mode .overlay-chat-form { flex: 1; min-width: 0; }
body.fullscreen-mode .overlay-chat-form .input-group { display: flex; gap: 6px; align-items: center; }
body.fullscreen-mode .emoji-picker-container { margin: 0; padding: 0; }
body.fullscreen-mode #overlay-message { width: 100%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; color: #fff; padding: 6px 10px; font-size: 13px; resize: none; outline: none; box-sizing: border-box; }
body.fullscreen-mode #overlay-message::placeholder { color: rgba(255,255,255,0.5); }
body.fullscreen-mode .send-btn, body.fullscreen-mode .control-btn { background: rgba(255,255,255,0.15); border: none; color: #fff; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
body.fullscreen-mode .send-btn:hover, body.fullscreen-mode .control-btn:hover { background: rgba(255,255,255,0.28); }
#unified-fullscreen-container { display: flex; align-items: center; }
#unified-fullscreen-container #unified-fullscreen-btn { position: static; width: 32px; height: 32px; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer { background: #283c90; width: 100%; padding: 35px 5%; display: flex; align-items: center; justify-content: center; }
footer p { color: rgba(255,255,255,0.5); font-size: 13px; text-align: center; }
