/* =============================================
   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; overflow-x: clip; }
body { font-family: 'Inter', 'Poppins', sans-serif; overflow-x: clip; overflow-wrap: break-word; word-break: break-word; }
a { text-decoration: none !important; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR (aligné sur la home) ────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0 5%; height: 72px;
  display: flex; align-items: center; justify-content: space-between;

  /* Glass — variante "sur fond sombre" (hero), même teinte que le dropdown */
  background: linear-gradient(180deg, rgba(20, 20, 32, 0.42) 0%, rgba(20, 20, 32, 0.32) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  transition: background .45s ease, box-shadow .45s ease, border-color .45s ease;
}
#navbar.light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07),
              inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
#navbar .logo img { height: 42px; object-fit: contain; transition: opacity .35s ease; }
#navbar .logo .logo_white { display: block; }
#navbar .logo .logo_color { display: none; }
#navbar.light .logo .logo_white { display: none; }
#navbar.light .logo .logo_color { display: block; }

#navbar ul { display: flex; align-items: center; list-style: none; gap: 4px; }
#navbar ul li { position: relative; }
#navbar ul li a {
  font-size: 15px; font-weight: 500; padding: 7px 18px; border-radius: 50px;
  color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .15);
  transition: color .25s, background .25s; margin: 0 10px 0 0;
}
#navbar ul li a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
#navbar ul li a.active { color: #fff; font-weight: 700; }
#navbar.light ul li a { color: #666; background: transparent; }
#navbar.light ul li a:hover { color: #020203; background: rgba(0, 0, 0, 0.05); }
#navbar.light ul li a.active { color: #283c90; font-weight: 700; background: transparent; }

#navbar .nav_right { display: flex; align-items: center; gap: 12px; }
#navbar .btn_nav_cta { background: #FCDB16; color: #0c0c0e; font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 50px; transition: background .2s, transform .2s; white-space: nowrap; display: inline-flex; align-items: center; }
#navbar .btn_nav_cta:hover { background: #fff; transform: scale(1.03); }
#navbar.light .btn_nav_cta { color: #020203; }

#navbar .burger {
  display: none;
  background: none; border: none;
  padding: 12px; margin-right: -12px;
  cursor: pointer; font-size: 20px; line-height: 1;
  color: #fff;
  transition: color .25s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
#navbar.light .burger { color: #020203; }
#navbar .burger:hover { background: transparent; transform: scale(1.08); }
#navbar .burger.open { transform: rotate(90deg); }

#navbar ul .nav_cta_mobile { display: none; }
#navbar ul .nav_cta_mobile .btn_nav_cta { display: inline-flex; width: 100%; justify-content: center; border-radius: 10px; padding: 11px 20px; background: #FCDB16 !important; color: #0c0c0e !important; }

@media (max-width: 900px) {
  #navbar .burger    { display: block; }
  #navbar .nav_right { display: none; }

  /* Dropdown : même teinte glass que la nav, mais opacité renforcée
     car le backdrop-filter du parent (#navbar) ne se cumule pas avec celui du child */
  #navbar ul {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0; width: 100%;
    padding: 8px 20px 22px; gap: 0;

    /* Glass sombre — opacité ~0.85 pour rester lisible sans backdrop-blur effectif */
    background: linear-gradient(180deg, rgba(20, 20, 32, 0.88) 0%, rgba(20, 20, 32, 0.82) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Animation */
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .35s ease,
                transform .45s cubic-bezier(.22,.61,.36,1),
                visibility .35s,
                background .35s ease,
                border-color .35s ease;
  }
  #navbar ul.open {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Items — texte blanc par défaut (hero sombre) */
  #navbar ul li { width: 100%; }
  #navbar ul li a {
    display: flex; align-items: center; width: 100%;
    padding: 17px 4px; margin: 0;
    font-size: 15.5px; font-weight: 500; letter-spacing: .1px;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding-left .25s ease, color .2s ease, border-color .25s ease;
  }
  #navbar ul li:last-child a { border-bottom: none; }
  #navbar ul li a:hover,
  #navbar ul li a:active,
  #navbar ul li a.active {
    color: #FCDB16 !important;
    padding-left: 10px;
  }

  /* Variante glass clair quand on a scrollé sous le hero */
  #navbar.light ul {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  #navbar.light ul li a {
    color: #1a1a1a !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  #navbar.light ul li a:hover,
  #navbar.light ul li a:active,
  #navbar.light ul li a.active {
    color: #283c90 !important;
  }

  /* CTA mobile (S'inscrire / Se déconnecter) — bouton plein, identique sur les deux variantes */
  #navbar ul .nav_cta_mobile { display: block; margin-top: 16px; }
  #navbar ul .nav_cta_mobile a {
    border-bottom: none !important;
    background: #FCDB16 !important; color: #0c0c0e !important;
    font-weight: 700 !important;
    text-align: center; justify-content: center;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 22px rgba(252, 219, 22, 0.28);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease, padding-left .25s ease;
  }
  #navbar ul .nav_cta_mobile a:hover {
    background: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(252, 219, 22, 0.35);
    padding-left: 20px;
  }
}
@media (max-width: 480px) {
  #navbar { padding: 0 16px; }
  #navbar .logo img { height: 38px; }
  #navbar ul { padding: 6px 14px 18px; }
}

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

/* ── NAV USER — bouton de déconnexion ──────────────────────────────── */
.nav_user { display: inline-flex !important; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; color: #444; background: rgba(0,0,0,0.04); transition: background .2s, color .2s; }
.nav_user .nav_user_icon_logout  { display: none; }
.nav_user .nav_user_logout_label { display: none; font-weight: 600; }
.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: 0; padding-bottom: 30px; width: 100%; } }
@media (max-width: 480px)  { header { padding-bottom: 24px; } }

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: 40px; } }
@media (max-width: 1024px) { header #header_container { min-height: auto; padding: 50px; } }
@media (max-width: 768px)  { header #header_container { padding: 80px 5% 32px; border-radius: 0; gap: 24px; } }
@media (max-width: 480px)  { header #header_container { padding: 72px 4% 24px; gap: 20px; } }

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%; } }
@media (max-width: 768px)  { header #header_container .header_content { width: 100%; margin: 0; align-items: flex-start; gap: 16px; } }
@media (max-width: 480px)  { header #header_container .header_content { gap: 14px; } }

header #header_container .header_content h1 { color: #fff; font-weight: bold; margin-bottom: 20px; font-size: clamp(22px, 8vw, 37px); line-height: 1.15; }
@media (max-width: 768px) { header #header_container .header_content h1 { margin-bottom: 12px; } }

.mat_badges { display: flex; gap: 8px; 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;
}
@media (max-width: 480px) { .mat_badges span { font-size: 10px; padding: 4px 11px; } }
.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: #fcdb162b;
    color: #fff;
    border: 1px solid #fcdb1678; }

.mat_meta { display: flex; gap: 14px; flex-wrap: wrap; }
.mat_meta span { color: rgba(255,255,255,0.75); font-size: 14px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 480px) { .mat_meta span { font-size: 13px; } }

/* ---- 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); }
@media (max-width: 480px) {
  .mat_question_pill { font-size: 13px; padding: 8px 14px; gap: 8px; }
}

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; } }
@media (max-width: 768px)  { header .preview { width: 100%; margin: 0; padding: 0 0 8px; } }

/* ---- 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);
}
@media (max-width: 768px) {
  header .preview #registrationForm { max-width: 100%; border-radius: 20px; }
}
@media (max-width: 480px) {
  header .preview #registrationForm { border-radius: 18px; }
}

.bloc_form_section { padding: 26px 26px 0; }
@media (max-width: 480px) { .bloc_form_section { padding: 20px 18px 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%; }
}

/* ── Inscription : trigger mobile + collapse ─────────────────────────── */
#bloc_register .mobile_register_trigger { display: none; }

@media (max-width: 900px) {
  /* Trigger visible quand le formulaire est replié */
  #bloc_register .mobile_register_trigger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 14px; padding: 14px 22px;
    background: #FCDB16; color: #0c0c0e;
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  #bloc_register .mobile_register_trigger:hover {
    background: #fff; transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(252,219,22,.25);
  }
  /* Chevron : rotation 180° quand le formulaire est déployé */
  #bloc_register .mobile_register_trigger .trigger_icon {
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    font-size: 13px;
  }
  #bloc_register.expanded .mobile_register_trigger .trigger_icon {
    transform: rotate(180deg);
  }

  /* Form replié par défaut sur mobile */
  #bloc_register .registration-content {
    max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: max-height .55s cubic-bezier(.22,.61,.36,1),
                opacity .35s ease,
                margin-top .35s ease;
  }
  #bloc_register.expanded .registration-content {
    max-height: 1400px; opacity: 1; margin-top: 14px;
  }
}

/* ── 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; }
@media (max-width: 480px) { #bloc_connect { padding: 0 18px 20px; } }
.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);
}
@media (max-width: 768px) {
  .welcome_card { padding: 22px 20px; gap: 10px; border-radius: 16px; max-width: 100%; }
}
@media (max-width: 480px) {
  .welcome_card { padding: 18px 16px; gap: 8px; }
}
.welcome_card i { font-size: 46px; color: #FCDB16; }
@media (max-width: 480px) { .welcome_card i { font-size: 34px; } }
.welcome_card h3 { font-size: 22px; font-weight: 700; }
@media (max-width: 480px) { .welcome_card h3 { font-size: 17px; } }
.welcome_card p { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0; }
@media (max-width: 480px) { .welcome_card p { font-size: 13px; line-height: 1.55; } }
.welcome_card .welcome_hint { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; }
@media (max-width: 480px) { .welcome_card .welcome_hint { font-size: 11px; } }

/* ============================================================
   É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 {
  background: #f3f3f3;
  min-height: 100vh;
}

/* ── Bandeau titre ──────────────────────────────────────────── */
.replay_banner {
  position: relative;
  background: #211E31 center / cover no-repeat;
  padding: 100px 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; overflow: hidden; }
.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: 12px; width: fit-content; }
@media (max-width: 768px) { .container_counter { width: auto; gap: 8px; margin-bottom: 12px; } }
@media (max-width: 480px) { .container_counter { gap: 6px; } }
.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: 28px; width: 34px; } }
@media (max-width: 480px) { .container_counter .top, .container_counter .bottom, .container_counter .flip-card .top-flip, .container_counter .flip-card .bottom-flip { font-size: 22px; width: 28px; } }
.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; }
@media (max-width: 768px) { .container_counter .segment-title { font-size: 0.7rem; } }
@media (max-width: 480px) { .container_counter .segment-title { font-size: 0.6rem; } }
.container_counter .hide { display: none; }

/* Countdown wrapper */
.header_countdown { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 768px) { .header_countdown { gap: 6px; } }
.countdown_label  { color: rgba(255,255,255,0.8); font-size: 14px; display: none; }
@media (max-width: 480px) { .countdown_label { font-size: 12px; } }

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

/* ── ACCORDÉON THÈME (lire plus / lire moins) ── */
.theme_text_wrap {
  position: relative;
}
.theme_text_wrap.collapsed .theme_text_inner {
  max-height: 120px;
  overflow: hidden;
}
.theme_text_wrap.collapsed .theme_text_fade {
  display: block;
}
.theme_text_fade {
  display: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #f3f3f3);
  pointer-events: none;
}
.theme_read_more {
  display: none;
  background: none;
  border: 1.5px solid rgba(40,60,144,0.2);
  color: #283c90;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 14px;
  transition: background .2s, color .2s, border-color .2s;
  font-family: 'Inter', 'Poppins', sans-serif;
}
.theme_read_more:hover { background: #283c90; color: #fff; border-color: #283c90; }
@media (max-width: 768px) { .theme_read_more { display: inline-flex; align-items: center; gap: 6px; } }

/* ============================================================
   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: 28px 16px; margin-top: 28px; } }
@media (max-width: 500px) { .speakers_grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }
@media (max-width: 360px) { .speakers_grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }
.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; }

/* ── Chapter label ─────────────────────────────────────────────────── */
.agenda_chapter_label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #283c90;
  background: rgba(40, 60, 144, 0.07);
  border-left: 3px solid #FCDB16;
  padding: 6px 14px 6px 12px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0 8px 134px; /* aligne avec agenda_content */
  display: inline-block;
}
@media (max-width: 600px) {
  .agenda_chapter_label { margin-left: 94px; }
}

/* ── 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: 72px; }
  .agenda_item { grid-template-columns: 48px 20px 1fr; column-gap: 12px; }
  .agenda_time { padding-top: 14px; }
  .agenda_time span { font-size: 10px; padding: 3px 7px; }
  .agenda_speaker_name { font-size: 11px; }
  .agenda_speaker_avatar { width: 26px; height: 26px; }
  .agenda_content { padding: 14px 16px; border-radius: 12px; }
  .agenda_content h4 { font-size: 13px; }
  .agenda_content p  { font-size: 12px; }
  .agenda_chapter_label { margin-left: 80px; font-size: 10px; padding: 5px 12px 5px 10px; }
}
@media (max-width: 400px) {
  .agenda_list::before { left: 64px; }
  .agenda_item { grid-template-columns: 44px 18px 1fr; column-gap: 10px; }
  .agenda_time span { font-size: 9px; padding: 3px 6px; }
  .agenda_content { padding: 12px 13px; }
  .agenda_content h4 { font-size: 12px; }
}

/* ============================================================
   PARTENAIRES
   ============================================================ */
/* inline style retiré du PHP — tout géré ici */
#partners {
  padding: 70px 0 60px;
  background: transparent; border-radius: 0;
  width: 90%; max-width: 1300px; margin: 0 auto;
}
@media (max-width: 768px) { #partners { padding: 40px 0 32px; width: 96%; } }
@media (max-width: 480px) { #partners { padding: 32px 0 24px; width: 96%; } }
#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: 36px 24px; border-radius: 20px; width: 92%; } }
@media (max-width: 480px)  { #partners .partners_container { padding: 28px 18px; border-radius: 16px; width: 92%; } }
.partners_head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 55px; }
.partners_head .section_title { margin-bottom: 0; }
@media (max-width: 768px) { .partners_head { margin-bottom: 32px; } }
@media (max-width: 480px) { .partners_head { margin-bottom: 24px; } }
.mat_partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
@media (max-width: 900px)  { .mat_partners { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 768px)  { .mat_partners { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .mat_partners { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.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; }
@media (max-width: 768px) { .mat_partner_logo { padding: 28px 20px 22px; border-radius: 16px; gap: 14px; } }
@media (max-width: 480px) { .mat_partner_logo { padding: 22px 14px 18px; border-radius: 14px; gap: 10px; } }
.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 (aligné sur la home) ────────────────────────────────────── */
footer { background: #0f1835; padding: 60px 5% 0; }
@media (max-width: 480px) { footer { padding: 48px 5% 0; } }

.footer_inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
@media (max-width: 900px) { .footer_inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .footer_inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; } }

.footer_logo { height: 36px; object-fit: contain; margin-bottom: 14px; display: block; }
.footer_baseline { font-size: 13px; color: rgba(255, 255, 255, .45); line-height: 1.65; max-width: 260px; margin: 0; }

.footer_nav { display: flex; gap: 48px; }
@media (max-width: 900px) { .footer_nav { gap: 32px; } }
@media (max-width: 600px) { .footer_nav { gap: 24px; } }
@media (max-width: 380px) { .footer_nav { flex-direction: column; gap: 20px; } }
.footer_nav_col { display: flex; flex-direction: column; gap: 10px; }
.footer_nav_title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, .35); margin-bottom: 4px; }
.footer_nav_col a { font-size: 13px; color: rgba(255, 255, 255, .6); transition: color .2s; }
.footer_nav_col a:hover { color: #FCDB16; }

.footer_social { display: flex; flex-direction: column; gap: 14px; }
.footer_social_links { display: flex; gap: 10px; }
.footer_social_links a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.footer_social_links a:hover { background: #FCDB16; color: #0c0c0e; border-color: #FCDB16; }

.footer_bottom { max-width: 1300px; margin: 0 auto; padding: 20px 0 24px; }
.footer_bottom p { color: rgba(255, 255, 255, .25); font-size: 12px; }

/* ============================================================
   MOBILE — OVERFLOW FIX + ESPACEMENT PRO (ui-ux-pro-max)
   ============================================================ */

/* ── 1. Isolation overflow sur tous les conteneurs clés ─────── */
/* ⚠ replay_page_wrap exclu : overflow-x: clip casse position:sticky sur la vidéo */
header,
.mat_main { overflow-x: clip; }

/* ── 0. HEADER MOBILE — refonte complète de la hiérarchie ───── */

/* Masquer l'édito dans le header sur mobile : il est déjà dans #theme */
@media (max-width: 768px) {
  header .mat_edito { display: none; }
}

/* Header — plein écran 100svh + aération mobile */
@media (max-width: 768px) {
  header                                    { padding-bottom: 0; min-height: 100svh; min-height: 100vh; }
  header #header_container                  {
    min-height: 100svh; min-height: 100vh;
    padding: 92px 5% 48px;
    justify-content: center;
    gap: 36px;
  }
  header #header_container .header_content  { gap: 14px; }
  header #header_container .header_content h1 { margin-bottom: 8px; }
}
@media (max-width: 480px) {
  header #header_container                  { padding: 84px 4% 40px; gap: 28px; }
  header #header_container .header_content  { gap: 12px; }
}

/* Badges — plus compacts */
@media (max-width: 480px) {
  .mat_badges { gap: 6px; }
  .mat_badges span { font-size: 12px; padding: 4px 10px; letter-spacing: 0.8px; }
}

/* Meta info — réduire gap sur mobile */
@media (max-width: 480px) {
  .mat_meta { gap: 8px; }
  .mat_meta span { font-size: 14px; gap: 10px; }
}

/* Countdown — marge bottom réduite + segment-title plus subtil */
@media (max-width: 768px) {
  .header_countdown              { gap: 4px; margin-top: 4px; }
  .countdown_label               { font-size: 11px; color: rgba(255,255,255,0.65); display: none; }
  .container_counter             { gap: 6px; margin-bottom: 8px; }
  .container_counter .segment-title { font-size: 0.6rem; color: rgba(255,255,255,0.55); }
}
@media (max-width: 480px) {
  .container_counter             { gap: 5px; }
  .container_counter .segment-title { font-size: 0.55rem; letter-spacing: 0; }
}

/* Welcome card — plus compact et aéré sur mobile */
@media (max-width: 768px) {
  .welcome_card                  { padding: 20px 18px; gap: 8px; border-radius: 14px; max-width: 100%; }
  .welcome_card i                { font-size: 28px; }
  .welcome_card h3               { font-size: 16px; }
  .welcome_card p                { font-size: 13px; line-height: 1.5; }
  .welcome_card .welcome_hint    { font-size: 14px; }
}
@media (max-width: 480px) {
  .welcome_card                  { padding: 16px 16px; gap: 7px; border-radius: 12px; }
  .welcome_card i                { font-size: 24px; }
  .welcome_card h3               { font-size: 17px; }
  .welcome_card p                { font-size: 16px; }
}

/* Formulaire d'inscription — padding top et form section réduits */
@media (max-width: 768px) {
  header .preview                { padding: 0; }
  header .preview #registrationForm { border-radius: 16px; }
}

/* Preview section — enlever le padding-bottom superflu */
@media (max-width: 768px) {
  header .preview                { padding-bottom: 0; }
}

/* ── 2. Replay banner — respiration mobile ──────────────────── */
@media (max-width: 768px) {
  .replay_banner          { padding: 36px 5% 44px; }
  .replay_banner_content  { gap: 13px; padding-top: 70px;}
  .replay_banner_content .mat_badges { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 480px) {
  .replay_banner          { padding: 28px 4% 36px; }
  .replay_banner_content h1 { font-size: clamp(17px, 5.5vw, 26px); line-height: 1.25; }
  .replay_banner_content .mat_meta span { font-size: 12px; }
}

/* ── 3. Replay body — layout et padding mobile ──────────────── */
@media (max-width: 768px) {
  .replay_body { padding: 24px 5% 52px; gap: 20px; }
}
@media (max-width: 480px) {
  .replay_body { padding: 20px 4% 40px; gap: 16px; }
}

/* ── 4. Replay sidebar — padding et radius mobile ───────────── */
@media (max-width: 768px) {
  .replay_sidebar         { gap: 14px; }
  .replay_sidebar_block   { padding: 18px 20px; border-radius: 14px; }
  .sidebar_block_title    { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 12px; }
  .replay_edito_text      { font-size: 13px; line-height: 1.75; }
  .replay_sp_row          { gap: 10px; }
  .replay_sp_avatar       { width: 40px; height: 40px; }
  .replay_sp_name         { font-size: 13px; }
  .replay_sp_role         { font-size: 11px; }
  .replay_sp_company      { font-size: 10px; }
}
@media (max-width: 480px) {
  .replay_sidebar_block   { padding: 16px 16px; border-radius: 12px; }
  .replay_edito_text      { font-size: 12px; }
  .replay_sp_avatar       { width: 36px; height: 36px; }
  .replay_sp_name         { font-size: 12px; }
}

/* ── 5. Mat_main — largeur légèrement plus généreuse ────────── */
@media (max-width: 768px) { .mat_main { width: 96%; } }
@media (max-width: 480px) { .mat_main { width: 100%; padding-left: 4%; padding-right: 4%; } }

/* ── 6. Sections — espacement vertical petits écrans ────────── */
@media (max-width: 360px) {
  #theme, #intervenant, #agenda, #partners { padding: 32px 0 20px; }
  .section_title { font-size: 18px !important; margin-bottom: 20px; }
}

/* ── 7. Partners — supprimer la double contrainte width mobile ─ */
@media (max-width: 768px) {
  #partners                  { width: 100%; }
  #partners .partners_container { width: 100%; }
}
@media (max-width: 480px) {
  #partners                  { padding: 32px 0 24px; }
  #partners .partners_container { padding: 24px 16px; border-radius: 16px; }
  .partners_head             { margin-bottom: 20px; }
  .mat_partner_logo          { padding: 18px 12px 14px; border-radius: 12px; gap: 8px; }
  .partner_logo_area         { height: 50px; }
  .mat_partner_logo img      { max-height: 44px; }
}

/* ── 8. Texte — anti-overflow sur tout le contenu ───────────── */
.theme_text p,
.agenda_content p,
.agenda_content h4,
.replay_edito_text,
.mat_question_pill,
.mat_badges span,
.mat_meta span { overflow-wrap: break-word; word-break: break-word; }

/* ── 9. Agenda — petits écrans < 360px ─────────────────────── */
@media (max-width: 360px) {
  .agenda_list::before       { left: 56px; }
  .agenda_item               { grid-template-columns: 40px 16px 1fr; column-gap: 8px; }
  .agenda_time span          { font-size: 9px; padding: 3px 5px; }
  .agenda_chapter_label      { margin-left: 64px; font-size: 9px; padding: 4px 10px 4px 8px; }
  .agenda_content            { padding: 10px 12px; border-radius: 10px; }
  .agenda_content h4         { font-size: 12px; }
  .agenda_content p          { font-size: 11px; }
  .agenda_speaker_avatar     { width: 22px; height: 22px; }
  .agenda_speaker_name       { display: none; }
}

/* ── 10. Formulaire — micro-écrans ─────────────────────────── */
@media (max-width: 380px) {
  .bloc_form_section         { padding: 16px 14px 0; }
  #bloc_connect              { padding: 0 14px 16px; }
  .devider                   { padding: 14px 14px; }
  header .preview #registrationForm input[type="text"],
  header .preview #registrationForm input[type="email"],
  header .preview #registrationForm input[type="tel"],
  header .preview #registrationForm select { font-size: 14px; padding: 11px 12px; }
  header .preview #registrationForm button[type="submit"] { font-size: 13px; padding: 13px 20px; }
}

/* ── 11. Navbar — micro-écrans ─────────────────────────────── */
@media (max-width: 360px) {
  #navbar .nav_container     { padding: 10px 3.5%; }
  #navbar .nav_container ul li a { font-size: 14px; padding: 9px 12px; }
  #navbar .nav_container .logo img { height: 34px; }
}

/* ── 12. Speakers — micro-écrans ───────────────────────────── */
@media (max-width: 360px) {
  .speakers_grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .speaker_info .sp_name   { font-size: 11px; }
  .speaker_info .sp_poste  { font-size: 11px; }
  .speaker_info .sp_company{ font-size: 10px; }
}

/* ── 13. Welcome card — micro-écrans ───────────────────────── */
@media (max-width: 380px) {
  .welcome_card { padding: 16px 14px; gap: 8px; border-radius: 14px; }
  .welcome_card i   { font-size: 28px; }
  .welcome_card h3  { font-size: 15px; }
  .welcome_card p   { font-size: 12px; }
}
