:root {
  /* ====== Couleurs officielles ADESIS (extraites du logo) ====== */
  --bg: #0c1426;            /* fond bleu nuit dérivé du marine ADESIS */
  --card: #14203a;
  --card-2: #1c2c4d;
  --text: #eaf0fb;
  --muted: #93a3c2;
  --primary: #3274B9;       /* bleu "ADE" du logo */
  --primary-2: #285e98;     /* variante foncée (survol) */
  --navy: #343C5B;          /* marine "SIS" / baseline */
  --accent: #80A8D2;        /* bleu clair du logo */
  --green: #16a34a;
  --red: #dc2626;
  --border: #28385c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid #e3e8f0;
  position: sticky; top: 0; background: #ffffff; z-index: 10;
  box-shadow: 0 2px 10px rgba(12,20,38,.18);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.topbar nav a { margin-left: 18px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar nav a:hover { color: var(--primary); }

.container { max-width: 920px; margin: 0 auto; padding: 28px 20px 60px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px; }

h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 20px; }
.muted { color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash.error { background: #3a1620; color: #ffb4c0; border: 1px solid #5e2030; }
.flash.success { background: #14301f; color: #9be8b8; border: 1px solid #1f5236; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; text-decoration: none; color: inherit; display: block;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card .price { color: var(--primary); font-weight: 700; font-size: 18px; margin-top: 8px; }
.card .date { color: var(--muted); font-size: 13px; }
.card-cover {
  display: block; width: calc(100% + 36px); margin: -18px -18px 14px;
  height: 150px; object-fit: cover;
  border-radius: 16px 16px 0 0; background: var(--border);
}
.event-cover {
  display: block; width: 100%; max-height: 320px; object-fit: cover;
  border-radius: 16px; margin: 14px 0; background: var(--border);
}

.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-top: 22px;
}

label { display: block; font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }

.providers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.providers label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-2); cursor: pointer; color: var(--text);
}
.providers input { width: auto; }
.providers label:has(input:checked) { border-color: var(--primary); background: #16244a; }

.brand-logo { height: 40px; display: block; }

.btn {
  display: inline-block; background: var(--primary); color: #fff; border: none;
  padding: 14px 22px; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; margin-top: 18px; width: 100%;
  text-align: center;
}
.btn:hover { background: var(--primary-2); }
.btn.secondary { background: var(--card-2); border: 1px solid var(--border); }
.btn.danger { background: var(--red); }
.btn.green { background: var(--green); }
.btn.inline { width: auto; }

.code-badge {
  font-size: 26px; letter-spacing: 4px; font-weight: 700;
  background: var(--card-2); padding: 14px 18px; border-radius: 12px;
  display: inline-block; border: 1px dashed var(--primary);
}

.video-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; margin-top: 18px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.tag { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag.paid { background: #14301f; color: #9be8b8; }
.tag.pending { background: #332a12; color: #f0d18a; }
.tag.failed { background: #3a1620; color: #ffb4c0; }

.spinner {
  width: 38px; height: 38px; border: 4px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero { background: var(--navy); border-bottom: 3px solid var(--primary); border-radius: 18px; padding: 38px 30px; margin-top: 6px; }
.hero .eyebrow { display: inline-block; font-size: 11px; letter-spacing: 1.5px; color: var(--accent); border: 1px solid var(--primary); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.hero h1 { font-size: 30px; line-height: 1.2; max-width: 580px; margin: 0; }
.hero p { color: #b9c6e0; max-width: 560px; margin: 12px 0 0; font-size: 15px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }
.badge.live { background: #14301f; color: #9be8b8; }
.badge.soon { background: #332a12; color: #f0d18a; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #11203c 0%, #0c1426 70%); border: 1px solid var(--border); border-radius: 18px; padding: 54px 34px; margin-top: 6px; }
.hero .eyebrow { display: inline-block; font-size: 11px; letter-spacing: 3px; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -0.5px; max-width: 560px; margin: 0; color: #fff; }
.hero h1 .accent { color: var(--primary); }
.hero p { color: #c3cfe6; max-width: 460px; margin: 16px 0 0; font-size: 15px; }
.hero .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .cta .btn { width: auto; margin: 0; }
@media (max-width: 560px) { .hero { padding: 36px 22px; } .hero h1 { font-size: 30px; } }
.reassure { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 4px; padding: 14px 4px; font-size: 12px; color: var(--muted); letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.badge.live { background: #5ee0a0; color: #0a1120; }
.badge.soon { background: #f0c060; color: #0a1120; }
.badge.replay { background: #80A8D2; color: #0a1120; }
.card-film { position: relative; display: block; height: 230px; border-radius: 16px; overflow: hidden; background: var(--card-2); color: inherit; text-decoration: none; border: 1px solid var(--border); transition: transform .15s ease, border-color .15s ease; }
.card-film:hover { transform: translateY(-4px); border-color: var(--primary); }
.film-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-film .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.film-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 16px 16px; background: linear-gradient(to top, rgba(10,17,32,.97), rgba(10,17,32,.78) 55%, rgba(10,17,32,0)); }
.film-title { font-size: 16px; font-weight: 700; color: #fff; }
.film-date { font-size: 12px; color: #9fb0d0; margin-top: 3px; }
.film-price { font-size: 17px; font-weight: 700; color: var(--accent); margin-top: 7px; }

html { scroll-behavior: smooth; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.film-cover { transition: transform .45s ease; }
.card-film:hover .film-cover { transform: scale(1.07); }
@keyframes adesisPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.badge.live { animation: adesisPulse 1.6s ease-in-out infinite; }

.badge { white-space: nowrap; }
.hero-film { background: linear-gradient(135deg, #11203c 0%, #0c1426 78%); border: 1px solid var(--border); border-radius: 20px; padding: 46px 36px 26px; margin-top: 6px; }
.hero-film-title { text-align: center; padding: 26px 0 42px; }
.hero-film-title h1 { font-family: 'Poppins', sans-serif; font-size: 64px; font-weight: 700; line-height: 0.98; letter-spacing: -1.5px; color: #fff; margin: 0; }
.hero-film-title h1 .accent { color: var(--accent); }
.hero-film-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; flex-wrap: wrap; }
.hero-film-bar p { color: #aebbd6; max-width: 340px; margin: 0; font-size: 14px; line-height: 1.6; }
.hero-film-pay { display: flex; align-items: center; gap: 14px; }
.hero-film-pay .lbl { display: block; font-size: 10px; letter-spacing: 1px; color: var(--accent); text-align: right; }
.hero-film-pay .val { display: block; font-size: 14px; font-weight: 600; color: #fff; text-align: right; }
.round-btn { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; flex-shrink: 0; transition: background .15s ease; }
.round-btn:hover { background: var(--primary-2); }
.steps { margin-top: 36px; }
.steps-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--accent); margin-bottom: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; }
.step-t { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 12px; }
.step-d { font-size: 13px; color: var(--muted); }
.section-title { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 700; margin-top: 40px; color: #fff; }
@media (max-width: 560px) { .hero-film-title h1 { font-size: 40px; } .steps-grid { grid-template-columns: 1fr; gap: 14px; } .section-title { font-size: 26px; } }

.chat { margin-top: 24px; }
.chat-messages { background: var(--card); border: 1px solid var(--border); border-radius: 12px; height: 280px; overflow-y: auto; padding: 12px; }
.chat-msg { font-size: 14px; margin-bottom: 8px; line-height: 1.45; word-break: break-word; }
.chat-author { font-weight: 700; color: var(--accent); margin-right: 4px; }
.chat-msg.staff { background: #16244a; border-left: 3px solid var(--primary); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.chat-msg.staff .chat-author { color: #fff; }
.chat-msg.staff .chat-author::before { content: "🎤 "; }
.chat-hide { font-size: 11px; color: var(--muted); margin-left: 6px; text-decoration: underline; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; }
.chat-form .btn { width: auto; margin: 0; }

/* ===== Hero LIVE refonte design 2026-07 ===== */
.hero-film { position: relative; overflow: hidden; }
.hero-film::before { content:""; position:absolute; top:-46%; left:50%; transform:translateX(-50%); width:720px; height:500px; border-radius:50%; pointer-events:none; background:radial-gradient(closest-side, rgba(50,116,185,.30), transparent 72%); }
.hero-film-title { position: relative; padding: 14px 0 38px; }
.hero-eyebrow { display:inline-block; font-size:11px; letter-spacing:2.5px; font-weight:600; color:var(--accent); text-transform:uppercase; margin-bottom:18px; padding:6px 15px; border:1px solid var(--border); border-radius:30px; background:rgba(128,168,210,.07); }
.hero-film-title h1 { font-size: clamp(34px, 5.6vw, 52px); line-height:1.02; letter-spacing:-1px; }
.hero-film-bar { position: relative; padding-top: 20px; }
.hero-film-pay { padding:7px 7px 7px 18px; border:1px solid var(--border); border-radius:40px; background:rgba(255,255,255,.03); }
.round-btn { width:46px; height:46px; box-shadow:0 6px 18px rgba(50,116,185,.45); transition:background .15s ease, transform .15s ease; }
.round-btn:hover { transform: translateY(-2px); }
.steps-grid { gap: 16px; }
.step { padding:18px 18px 20px; border:1px solid var(--border); border-radius:14px; background:var(--card); transition:border-color .2s ease, transform .2s ease; }
.step:hover { border-color:var(--primary); transform:translateY(-3px); }
.step-num { width:40px; height:40px; box-shadow:0 4px 12px rgba(50,116,185,.4); }
.section-title { font-size: clamp(26px, 4vw, 34px); }
@media (max-width: 560px) { .hero-film { padding: 30px 22px 20px; } .hero-film-title { padding: 6px 0 26px; } .hero-film-title h1 { font-size: 44px; } }

