/* ====================================================================
   LP Launcher · Lite Light
   Layout : hero image en fond → deux colonnes pleine hauteur
   Gauche : intro + sections  |  Droite : formulaire sticky
==================================================================== */

:root {
  --primary:           #22d3ee;
  --primary-dim:       #06b6d4;
  --primary-light:     rgba(34,211,238,.12);
  --secondary:         #7c3aed;
  --secondary-light:   rgba(124,58,237,.12);
  --gradient:          linear-gradient(135deg,var(--primary),var(--secondary));

  --bg:                #f8f9fb;
  --surface:           #ffffff;
  --surface-high:      #f1f3f7;
  --on-surface:        #1a1a2e;
  --on-surface-muted:  #6b7280;
  --outline:           #e2e5ec;
  --outline-soft:      #eceef3;

  --shadow-soft:       0 2px 12px rgba(0,0,0,.06);
  --shadow-md:         0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:         0 12px 48px rgba(0,0,0,.14);

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 999px;

  --nav-h: 3.75rem;

  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; }
.hp { display: none !important; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 1.15em; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  word-wrap: normal; font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  vertical-align: middle;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.nav__inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
}
.nav__logo        { height: 1.9rem; width: auto; }
.nav__logo-client { height: 1.7rem; width: auto; opacity: 1; transition: opacity .3s; }
.nav__links { list-style: none; display: flex; gap: 1.5rem; }
.nav__link  { font-size: .84rem; font-weight: 500; color: #4b5563; transition: color .2s; }
.nav__link:hover, .nav__link--active { color: #111827; }

.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--outline);
}
.nav.is-scrolled .nav__logo-client { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }

.nav__user {
  display: none; align-items: center; gap: .5rem;
  padding: .3rem .7rem; border-radius: var(--r-full);
  background: rgba(0,0,0,.06); cursor: pointer; font-size: .82rem; transition: background .2s;
}
.nav__user.is-visible { display: flex; }
.nav.is-scrolled .nav__user { background: var(--surface-high); }
.nav__user-avatar {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.nav__user-name   { color: var(--on-surface); }
.nav__user-logout { background: none; border: none; cursor: pointer; color: rgba(0,0,0,.4); padding: 0; display: flex; }

.nav__burger {
  display: none; background: none;
  border: 1px solid rgba(0,0,0,.2); border-radius: var(--r-sm);
  padding: .3rem; cursor: pointer; color: #374151;
  transition: border-color .2s;
}

.nav__drawer {
  position: fixed; inset: 0; z-index: 99;
  visibility: hidden; pointer-events: none;
  background: rgba(0,0,0,.4); transition: visibility 0s .3s, background .3s;
}
.nav__drawer.is-open {
  visibility: visible; pointer-events: auto;
  background: rgba(0,0,0,.45); transition: visibility 0s, background .3s;
}
.nav__drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px,90vw);
  background: var(--surface); border-left: 1px solid var(--outline);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1.25rem) 1.25rem 1.5rem; gap: .2rem;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.nav__drawer.is-open .nav__drawer-panel { transform: none; }
.nav__drawer-link { font-size: .9rem; font-weight: 500; color: var(--on-surface); padding: .75rem 1rem; border-radius: var(--r-md); transition: background .15s; }
.nav__drawer-link:hover { background: var(--surface-high); }
.nav__user--drawer { margin-top: auto; background: var(--surface-high); border-radius: var(--r-md); padding: .65rem 1rem; }
.nav__user--drawer .nav__user-name   { color: var(--on-surface); }
.nav__user--drawer .nav__user-logout { color: var(--on-surface-muted); }

.nav--always-on {
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 1px 0 var(--outline) !important;
}
.nav--always-on .nav__logo-client { opacity: 1 !important; }
.nav--always-on .nav__user        { background: var(--surface-high) !important; }


/* ── HERO BACKGROUND ── */
.page-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
}
/* Image sur ::before pour que l'opacité soit indépendante de l'overlay */
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center top;
  opacity: var(--hero-overlay-opacity, 0.55);
}
.page-hero-bg__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248,249,251,.15)  0%,
    rgba(248,249,251,.65)  58%,
    rgba(248,249,251,1)   100%
  );
  background-color: var(--hero-color-overlay, transparent);
  opacity: var(--hero-gradient-opacity, 1);
}


/* ── PAGE LAYOUT ── */
main { position: relative; z-index: 1; }

.page-layout {
  max-width: 1280px; margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 440px;
  grid-template-areas:
    "intro    form"
    "sections form";
  column-gap: 4.5rem;
}
.page-layout__intro    { grid-area: intro; min-width: 0; }
.page-layout__sections { grid-area: sections; min-width: 0; }
.page-layout__form {
  grid-area: form;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  align-self: start;
}


/* ── EVENT INTRO ── */
.event-intro { padding-bottom: 2.5rem; }

.event-intro__kicker {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.event-intro__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  color: var(--on-surface); line-height: 1.1; margin-bottom: 1.25rem;
}
.event-intro__title em { font-style: italic; color: var(--primary); }
.event-intro__meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.75rem; }

.intro-event-pill  { display: flex; align-items: center; gap: .65rem; font-size: .88rem; color: var(--on-surface-muted); }
.intro-event-pill .material-symbols-outlined { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

#introBody p  { color: var(--on-surface-muted); line-height: 1.8; margin-bottom: .9rem; font-size: .93rem; }
#introBody ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.25rem; }
#introBody li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--on-surface-muted); line-height: 1.6; }
#introBody li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; margin-top: .57rem; }


/* ── GLASS ── */
.glass {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.09); box-shadow: var(--shadow-md);
}


/* ── REG CARD ── */
.reg-card { border-radius: var(--r-2xl); padding: 1.75rem; }

.reg-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; background: var(--surface-high); border-radius: var(--r-lg); padding: .3rem; }
.reg-tab  { flex: 1; background: none; border: none; border-radius: var(--r-md); padding: .5rem .75rem; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--on-surface-muted); transition: background .18s, color .18s; }
.reg-tab--active { background: var(--surface); color: var(--on-surface); box-shadow: var(--shadow-soft); }
.reg-tab:hover:not(.reg-tab--active) { color: var(--on-surface); }

.reg-card__title { font-family: var(--font-headline); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.reg-card__sub   { font-size: .85rem; color: var(--on-surface-muted); margin-bottom: 1.25rem; line-height: 1.65; }

.reg-panel { transition: opacity .22s; }
.reg-panel--hidden { display: none; }
.reg-panel--out { opacity: 0; }
.reg-panel--in  { opacity: 0; }


/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--on-surface-muted); }
.form-input {
  background: var(--surface-high); border: 1.5px solid var(--outline);
  border-radius: var(--r-md); color: var(--on-surface);
  padding: .6rem .85rem; font-size: .9rem;
  outline: none; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,238,.14); }
.form-input::placeholder { color: var(--on-surface-muted); opacity: .55; }

.form-gdpr { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; font-size: .78rem; color: var(--on-surface-muted); line-height: 1.55; }
.form-gdpr input[type="checkbox"] { flex-shrink: 0; margin-top: .15rem; accent-color: var(--primary); }
.form-gdpr a { color: var(--primary); }

.form-status { font-size: .79rem; margin-top: .6rem; padding: .5rem .8rem; border-radius: var(--r-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status--ok   { background: rgba(16,185,129,.12); color: #065f46; }
.form-status--err  { background: rgba(239,68,68,.10);  color: #991b1b; }
.form-status--info { background: rgba(34,211,238,.12); color: #0369a1; }

.form-custom__field { margin-bottom: .75rem; }
.form-custom__label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: .35rem; display: block; }
.form-custom__options { display: flex; flex-direction: column; gap: .35rem; }
.form-custom__options--row { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.form-custom__option { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .85rem; }
.req { color: var(--primary); }


/* ── BUTTONS ── */
.btn-primary {
  width: 100%; padding: .85rem; border: none;
  border-radius: var(--r-lg); font-weight: 700; font-size: .92rem;
  cursor: pointer; color: #fff; background: var(--gradient);
  box-shadow: 0 4px 20px rgba(34,211,238,.2);
  transition: opacity .18s, transform .15s, box-shadow .18s;
}
.btn-primary:hover    { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(34,211,238,.3); }
.btn-primary:active   { transform: none; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#formLogin .btn-primary { margin-top: 1.25rem; }


/* ── REGISTERED CARD ── */
.registered-card { display: none; text-align: center; padding: 2rem 1.75rem; }
.registered-card.is-visible { display: block; }
.registered-card__icon { width: 4rem; height: 4rem; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; }
.registered-card__icon--pending { background: linear-gradient(135deg,#f59e0b,#d97706); }
.registered-card__title { font-family: var(--font-headline); font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.registered-card__sub   { font-size: .85rem; color: var(--on-surface-muted); line-height: 1.65; margin-bottom: 1.5rem; }

.countdown { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; }
.countdown__cell { text-align: center; min-width: 64px; background: var(--surface-high); border-radius: var(--r-lg); padding: .75rem .5rem; }
.countdown__cell span { display: block; font-family: var(--font-headline); font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--on-surface); }
.countdown__cell em   { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-surface-muted); margin-top: .25rem; display: block; }


/* ── SECTIONS ── */
.section { padding: 3.5rem 0; border-top: 1px solid var(--outline-soft); }
.section--col { display: flex; flex-direction: column; align-items: flex-start; }

.label { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; display: block; }
.section-heading { text-align: left; max-width: 100%; margin-bottom: 2rem; }
.section-heading h2 { font-family: var(--font-headline); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--on-surface); margin-bottom: .5rem; }

.about__title { font-family: var(--font-headline); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: var(--on-surface); line-height: 1.15; margin-bottom: 1.5rem; }
.about__title em { font-style: italic; color: var(--primary); }
.stats { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--outline); padding: .75rem 1.25rem; border-radius: var(--r-lg); }
.stat__number { font-family: var(--font-headline); font-size: 1.5rem; font-weight: 800; color: var(--on-surface); }
.about__text  { color: var(--on-surface-muted); line-height: 1.8; margin-bottom: 1rem; font-size: .93rem; }
.bullet-list  { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.bullet-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--on-surface-muted); }
.bullet-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; margin-top: .57rem; }

.timeline { width: 100%; max-width: 100%; display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 1.1rem; position: relative; }
.timeline__dot  { width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; margin-top: 1.1rem; position: relative; z-index: 1; }
.timeline__dot::after { display: none; }
.timeline__item:not(:last-child)::after { content: ''; position: absolute; top: calc(1.1rem + 14px); left: 5px; width: 2px; bottom: calc(-1.1rem - 6px); background: var(--outline); }
.timeline__card  { flex: 1; border-radius: var(--r-lg); padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--outline); }
.timeline__meta  { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.timeline__time  { font-size: .8rem; font-weight: 700; color: var(--primary); font-family: var(--font-headline); }
.timeline__sep   { width: 4px; height: 4px; border-radius: 50%; background: var(--outline); }
.timeline__title { font-size: .92rem; font-weight: 600; color: var(--on-surface); }
.timeline__desc  { font-size: .82rem; color: var(--on-surface-muted); }

.speakers-section__intro { font-size: .85rem; color: var(--on-surface-muted); margin-top: .5rem; }
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 1.25rem; width: 100%; }
.speaker-card { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--outline); transition: transform .2s, box-shadow .2s; }
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.speaker-card__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.speaker-card__body { padding: .9rem 1rem; }
.speaker-card__name    { font-size: .9rem; font-weight: 700; color: var(--on-surface); }
.speaker-card__role    { font-size: .78rem; color: var(--on-surface-muted); margin-top: .2rem; }
.speaker-card__company { font-size: .75rem; color: var(--primary); margin-top: .15rem; font-weight: 600; }

.venue__title { font-family: var(--font-headline); font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 800; color: var(--on-surface); margin-bottom: 1.25rem; }
.venue__info  { display: flex; flex-direction: column; gap: .75rem; }
.venue__block { border-radius: var(--r-lg); padding: 1rem 1.25rem; }
.venue__block-label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: .4rem; }
.venue__block-name, .venue__block-addr { font-size: .9rem; color: var(--on-surface); line-height: 1.6; }
.venue__access      { display: flex; flex-direction: column; gap: .75rem; }
.venue__access-item { display: flex; gap: .75rem; align-items: flex-start; }
.venue__access-item .material-symbols-outlined { color: var(--primary); font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.venue__access-title { font-weight: 600; font-size: .88rem; color: var(--on-surface); }
.venue__access-desc  { font-size: .8rem; color: var(--on-surface-muted); }
.venue__map { border-radius: var(--r-2xl); overflow: hidden; min-height: 260px; margin-top: 1.25rem; }
.venue__map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }


/* ── FOOTER ── */
.footer { background: var(--surface); border-top: 1px solid var(--outline); padding: 2rem 1.5rem; }
.footer__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__logo      { height: 1.9rem; width: auto; }
.footer__logo-text { font-weight: 700; font-size: .95rem; color: var(--on-surface); }
.footer__links     { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__link      { font-size: .8rem; color: var(--on-surface-muted); transition: color .2s; }
.footer__link:hover { color: var(--on-surface); }
.footer__copy      { font-size: .8rem; color: var(--on-surface-muted); }
.container         { max-width: 1240px; margin: 0 auto; }


/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 500;
  max-width: 480px; background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 1.25rem 1.5rem;
  transform: translateY(120%); transition: transform .4s cubic-bezier(.4,0,.2,1); pointer-events: none;
}
.cookie-banner.is-visible { transform: none; pointer-events: auto; }
.cookie-banner__inner   { display: flex; flex-direction: column; gap: .75rem; }
.cookie-banner__text    { font-size: .8rem; color: var(--on-surface-muted); line-height: 1.6; }
.cookie-banner__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cookie-banner__policy  { font-size: .78rem; color: var(--primary); margin-right: auto; }
.cookie-banner__btn { padding: .42rem .9rem; border-radius: var(--r-md); font-size: .78rem; font-weight: 600; cursor: pointer; border: 1px solid var(--outline); background: none; color: var(--on-surface-muted); transition: background .18s; }
.cookie-banner__btn--accept  { background: var(--gradient); border-color: transparent; color: #fff; }
.cookie-banner__btn--decline:hover { background: var(--surface-high); }


/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 600;
  background: var(--surface); color: var(--on-surface);
  border: 1px solid var(--outline);
  padding: .75rem 1.25rem; border-radius: var(--r-lg);
  font-size: .85rem; font-weight: 500; max-width: 360px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%); opacity: 0;
  transition: transform .3s, opacity .3s; pointer-events: none;
}
.toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.toast--ok   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.toast--err  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.toast--info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }


/* ── REVEAL ANIMATIONS ── */
[data-reveal]            { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1 !important; transform: none !important; }
[data-reveal]            { transform: translateY(22px); }
[data-reveal="left"]     { transform: translateX(-26px); }
[data-reveal="right"]    { transform: translateX(26px); }
[data-reveal="fade"]     { transform: translateY(14px); }
[data-reveal][style*="--reveal-delay"] { transition-delay: var(--reveal-delay,0ms); }

.stagger { opacity: 0; transition: opacity .5s ease; }
.stagger.is-visible { opacity: 1; }
.stagger.is-visible > * {
  opacity: 0; transform: translateY(16px);
  animation: staggerIn .48s ease forwards;
  animation-delay: calc(var(--i,0) * 75ms);
}
@keyframes staggerIn { to { opacity: 1; transform: none; } }


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr 400px; column-gap: 3rem; }
}
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "form"
      "sections";
    gap: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .page-layout__form { position: static; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 600px) {
  .page-layout { padding-top: calc(var(--nav-h) + 1.75rem); padding-bottom: 4rem; }
  .event-intro__title { font-size: 1.8rem; }
  .section { padding: 2.5rem 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
  .countdown { gap: .5rem; }
  .countdown__cell { min-width: 56px; }
  .reg-card { padding: 1.35rem; }
}


/* ── LIVE PAGE (live.html) ── */

.bg-mesh { min-height: 100vh; }

.blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3%, 5%) scale(1.06); }
}

.live-section {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 1.5rem) 2rem 2.5rem;
  max-width: 1280px; margin: 0 auto;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
}

.live-video {
  position: relative;
  align-self: start;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.live-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

.live-video__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  color: var(--on-surface-muted);
  background: var(--surface);
}
.live-video__placeholder .material-symbols-outlined { font-size: 3rem; }
.live-video__placeholder p { font-size: .88rem; }

.chat-slot {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-panel {
  flex: 1;
  min-height: 0;
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.chat-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
  flex-shrink: 0;
}
.chat-panel__title { font-size: .88rem; font-weight: 700; color: var(--on-surface); }
.chat-panel__live-dot {
  font-size: .72rem; font-weight: 700;
  background: rgba(239,68,68,.1); color: #dc2626;
  padding: .2rem .65rem; border-radius: var(--r-full);
}

.chat-messages {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 1rem; display: flex; flex-direction: column; gap: .6rem;
  scrollbar-width: thin; scrollbar-color: var(--outline) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--outline); border-radius: 2px; }

.msg {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--surface-high); border: 1px solid var(--outline);
  border-radius: var(--r-md); padding: .6rem .8rem;
  position: relative;
}
.msg--mine { background: var(--primary-light); border-color: rgba(34,211,238,.25); }
.msg__reply {
  font-size: .72rem; color: var(--on-surface-muted);
  border-left: 2px solid var(--primary); padding-left: .5rem;
  margin-bottom: .3rem; display: flex; flex-direction: column; gap: .1rem;
}
.msg__reply-author { font-weight: 700; color: var(--primary); }
.msg__reply-text   { opacity: .7; }
.msg__header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.msg__sender { font-size: .74rem; font-weight: 700; color: var(--on-surface); }
.msg__date   { font-size: .68rem; color: var(--on-surface-muted); }
.msg__body   { font-size: .83rem; color: var(--on-surface); line-height: 1.5; word-break: break-word; }
.msg__reply-btn {
  position: absolute; top: .45rem; right: .5rem;
  display: flex; align-items: center; gap: .2rem;
  padding: .18rem .45rem;
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--r-full); color: var(--on-surface-muted);
  font-size: .72rem; cursor: pointer;
  opacity: 0; transform: scale(.75) translateY(-2px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), background .15s;
  pointer-events: none;
}
.msg__reply-btn .material-symbols-outlined { font-size: .85rem; }
.msg:hover .msg__reply-btn { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.msg__reply-btn:hover { background: var(--outline); color: var(--on-surface); }

.chat-replyto { flex-shrink: 0; }
.chat-replyto.is-active { padding: .4rem 1rem; }
.reply-bar {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; background: var(--primary-light);
  border: 1px solid rgba(34,211,238,.2); border-radius: var(--r-sm);
  padding: .4rem .7rem;
}
.reply-bar__label { color: var(--on-surface-muted); flex-shrink: 0; }
.reply-bar__label strong { color: var(--primary); }
.reply-bar__quote {
  flex: 1; color: var(--on-surface-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem;
}
.reply-bar__close {
  background: none; border: none; cursor: pointer;
  color: var(--on-surface-muted); font-size: 1rem; line-height: 1; padding: 0 .15rem;
}

.chat-form {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid rgba(0,0,0,.07);
  flex-shrink: 0;
}
.chat-form textarea {
  flex: 1; min-width: 0;
  background: var(--surface-high); border: 1.5px solid var(--outline);
  border-radius: var(--r-lg); color: var(--on-surface);
  padding: .55rem .85rem; font-size: .84rem;
  resize: none; outline: none; line-height: 1.5;
  overflow-y: hidden; max-height: 7rem;
  transition: border-color .2s;
}
.chat-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.chat-form textarea::placeholder { color: var(--on-surface-muted); opacity: .55; }
.chat-form button[type="submit"] {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  background: var(--gradient); border: none; border-radius: var(--r-lg);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .18s;
}
.chat-form button[type="submit"]:hover { opacity: .85; }
.chat-form button[type="submit"] .material-symbols-outlined { font-size: 1rem; }

/* Sections programme / intervenants dans live.html */
.bg-mesh .section { max-width: 1280px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }

@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; align-items: start; }
  .chat-slot { display: block; }
  .chat-panel { max-height: 480px; }
}
@media (max-width: 600px) {
  .live-section { padding-left: 1rem; padding-right: 1rem; }
  .bg-mesh .section { padding-left: 1rem; padding-right: 1rem; }
}
