/* SHCG Formations — couleurs reprises du logo et du site SHCG */
:root {
  --navy-900: #071a33; --navy-800: #0b2545; --navy-700: #12345e; --blue-600: #0e4c7d;
  --orange-500: #e8692a; --orange-600: #c2531a; --sun-400: #f5b82e; --green-500: #4c9a3f; --green-600: #2f7a2a;
  --red-600: #b42318; --wa: #1f9d55;
  --ink: #0f1c2e; --ink-soft: #46546a; --line: #e3e8ef;
  --surface: #fff; --surface-2: #f5f7fa; --surface-3: #eef3f8;
  --radius: 14px; --shadow: 0 1px 2px rgba(11,37,69,.06), 0 4px 14px rgba(11,37,69,.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface-2); line-height: 1.5; }
a { color: var(--blue-600); }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .4em 0 .3em; color: var(--navy-800); }
h2 { font-size: 1.2rem; margin: 1.6em 0 .7em; color: var(--navy-800); }
h2 a { font-weight: 400; margin-left: 8px; }
h3 { font-size: 1.02rem; margin: .3em 0 .4em; }
h4 { font-size: .9rem; margin: 1em 0 .3em; color: var(--navy-700); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); } .small { font-size: .88rem; } .center { text-align: center; }
.warn-text { color: #8a5a00; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; font-size: .95em; }

/* ---------- en-tête ---------- */
.top { background: #fff; border-bottom: 3px solid var(--orange-500); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(11,37,69,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-sub { font-weight: 700; color: var(--orange-600); border-left: 2px solid var(--line); padding-left: 10px; }
.top nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a, .top nav .link { color: var(--navy-800); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.top nav a:hover, .top nav .link:hover { background: var(--surface-3); }
.top nav form { margin: 0; }
.top nav .link { color: var(--ink-soft); font-weight: 400; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange-600); color: #fff; font-size: .75rem; text-align: center; }
.burger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--navy-800); padding: 4px 10px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .top-in { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  #menu:checked ~ nav { display: flex; }
  .brand img { height: 38px; }
}
.foot { color: var(--ink-soft); font-size: .8rem; padding: 40px 16px 24px; text-align: center; display: flex; gap: 8px; align-items: center; justify-content: center; }

/* ---------- accueil / connexion ---------- */
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.w-photo { background: var(--navy-900) center / cover no-repeat; position: relative; min-height: 260px; }
.w-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,51,0) 55%, rgba(7,26,51,.85)); }
.w-quote { position: absolute; left: 32px; right: 32px; bottom: 32px; color: #fff; font-size: 1.15rem; font-weight: 600; z-index: 1; max-width: 520px; }
.w-side { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.w-in { width: 100%; max-width: 440px; }
.w-logo { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto 18px; }
.vision { display: flex; gap: 12px; background: linear-gradient(135deg, #fff7ef, #f2f8ef); border: 1px solid #f3dcc7; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }
.vision-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; }
.vision b { color: var(--navy-800); }
.vision p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }
.welcome h1 { font-size: 1.5rem; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .w-photo { min-height: 220px; }
  .w-quote { font-size: .85rem; left: 16px; right: 16px; bottom: 12px; }
}
.welcome-band { border-radius: var(--radius); padding: 28px; margin: 18px 0 6px; color: #fff; background-size: cover; background-position: center; }
.welcome-band h1 { color: #fff; margin-top: 0; }
.welcome-band p { margin: 0; max-width: 620px; color: #e4ecf5; }
.welcome-preview { height: 160px; border-radius: 10px; background: center / cover no-repeat; margin-bottom: 10px; border: 1px solid var(--line); }

/* ---------- cartes et mise en page ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.narrow { max-width: 600px; }
.card.empty { text-align: center; color: var(--ink-soft); border-style: dashed; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.grid > .card { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-top: 18px; text-decoration: none; color: var(--ink-soft); font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 1.8rem; color: var(--navy-800); }
.stat span { color: var(--ink-soft); font-size: .88rem; }
.stat.alert b { color: var(--orange-600); }
a.stat:hover { border-color: var(--blue-600); }

.fcard { display: flex; flex-direction: column; gap: 4px; }
.fcard h2 { margin: .4em 0 .1em; }
.fcard > .btn { margin-top: auto; align-self: flex-start; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fline { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }
.fline:hover { border-color: var(--blue-600); }
.fline > span { font-size: 1.6rem; color: var(--ink-soft); }

.hero { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; border-radius: var(--radius); padding: 26px; margin: 12px 0 14px; }
.hero h1 { color: #fff; }
.hero p { color: #dce6f2; margin: 0; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; position: sticky; top: 73px; background: var(--surface-2); padding: 8px 0; z-index: 5; }
.tabs.flat { position: static; margin-bottom: 10px; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--navy-800); font-size: .9rem; }
.tabs a:hover, .tabs a.on { border-color: var(--blue-600); background: var(--surface-3); }
section[id] { scroll-margin-top: 140px; }

/* ---------- contenus, documents ---------- */
.res h3 { display: flex; gap: 10px; align-items: center; }
.ico { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border-radius: 8px; background: var(--surface-3); font-size: .9rem; }
.resline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.resline form { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.docs { list-style: none; padding: 0; margin: 6px 0; }
.doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; }
.doc form { margin: 0; }
.upload { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.upload input { flex: 1 1 160px; padding: 6px 8px; font-size: .85rem; }
.live.is-live { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.annonce { border-left: 4px solid var(--orange-500); }
.msg.unread { border-left: 4px solid var(--blue-600); }
.pending { border-left: 4px solid var(--sun-400); }
.cert-item { display: flex; align-items: center; gap: 14px; }
.cert-item.off { opacity: .7; box-shadow: none; }
.cert-ic { font-size: 1.8rem; }
.exam-form { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.exam-form select, .exam-form input { width: auto; padding: 5px 6px; font-size: .82rem; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); }
.badge.ok { background: #e6f4e3; color: var(--green-600); }
.badge.warn { background: #fff3dc; color: #8a5a00; }
.badge.danger { background: #fde8e6; color: var(--red-600); }
.badge.live { background: var(--red-600); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .7; } }

/* ---------- formulaires ---------- */
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; color: var(--navy-800); }
label small { font-weight: 400; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
label.check input { width: auto; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #cdd6e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=file] { padding: 7px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 0; border-color: transparent; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
form.inline, .card.inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
form.inline input, .card.inline input { width: auto; padding: 6px 8px; }
.card.inline { margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem;
  padding: 10px 16px; border-radius: 10px; border: 1px solid #cdd6e2; background: #fff; color: var(--navy-800); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--navy-700); }
.btn.primary { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.btn.primary:hover { background: #a94512; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: #17834a; }
.btn.danger { color: var(--red-600); border-color: #f1b8b2; }
.btn.warn { color: #8a5a00; }
.btn.small { padding: 6px 10px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--blue-600); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--ink-soft); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td form { margin: 0; }
tr:last-child td { border-bottom: 0; }
td.actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) {
  table, thead, tbody, tr, td { display: block; } thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; } td { border: 0; padding: 4px 0; }
}

.flash { display: block; padding: 12px 16px; border-radius: 10px; margin: 16px 0; background: var(--surface-3); color: inherit; text-decoration: none; }
.flash.ok { background: #e6f4e3; color: var(--green-600); }
.flash.warn { background: #fff3dc; color: #7a4f00; }
.flash.danger { background: #fde8e6; color: var(--red-600); }
.invite-box { border-color: var(--green-600); background: #f6fbf5; }
.invite { font-family: inherit; font-size: .9rem; margin: 8px 0 10px; }
.danger-zone { border-color: #f1b8b2; }

/* ---------- rôles, réseaux sociaux ---------- */
.role-tag { font-size: .75rem; font-weight: 700; color: var(--green-600); background: #e6f4e3; padding: 3px 10px; border-radius: 999px; margin: 0 6px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.soc { --c: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--c); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.soc:hover { filter: brightness(1.12); }
.soc.soon { background: #fff; color: var(--ink-soft); border: 1px dashed #cdd6e2; }
.soc.soon svg { color: #d62976; }
.socials.small .soc { padding: 5px 10px; font-size: .78rem; }
.w-social { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.w-social p { margin: 0 0 8px; }
.foot { flex-direction: column; }
.center-row { justify-content: center; }
.mt0 { margin-top: 0; }
.money { font-size: 1.3rem !important; }
.grid-form.two { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; margin: 6px 0; }
details summary { cursor: pointer; color: var(--blue-600); margin: 6px 0; }

/* ---------- paiements ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 4px 0; min-width: 90px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-500), var(--green-500)); border-radius: inherit; }
.progress.big { height: 14px; }
.pay-mini { display: block; text-decoration: none; color: inherit; margin: 4px 0; }
td.pay { min-width: 170px; }
.big-note { font-size: 2.2rem; font-weight: 800; color: var(--navy-800); margin: 4px 0; }
.big-note.inline { font-size: 1.4rem; }
.pay-summary .big-note { margin-bottom: 0; }
.receipt { background: #fff; max-width: 760px; margin: 0 auto; padding: 36px; border-top: 8px solid var(--orange-500); box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); }
.receipt h1 { margin: 0; letter-spacing: .2em; }
.receipt .right { text-align: right; }
.r-logo { height: 70px; }
.receipt th { width: 38%; text-transform: none; font-size: .9rem; letter-spacing: 0; }
.r-amount { font-size: 1.4rem; font-weight: 800; color: var(--orange-600); }
.r-foot { margin-top: 40px; align-items: flex-end; }
@media print { .receipt { box-shadow: none; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- quiz ---------- */
.quiz-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-line h3 { margin: 6px 0 2px; }
.quiz-line form { margin: 0; }
.authorize { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--orange-500); }
.authorize form { margin: 0; }
.qitem.editing { outline: 2px solid var(--blue-600); }
.qitem form { margin: 0; }
.opts { list-style: none; padding: 0; margin: 6px 0; }
.opts li { padding: 6px 10px; border-radius: 8px; margin: 3px 0; background: var(--surface-2); }
.opts li.good { background: #e6f4e3; color: var(--green-600); font-weight: 600; }
.opts li.good::after { content: " ✓"; }
.opts li.bad { background: #fde8e6; color: var(--red-600); text-decoration: line-through; }
.opt { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; cursor: pointer; color: var(--ink); }
.opt:hover { border-color: var(--blue-600); }
.opt input { width: auto; }
.stars { display: flex; gap: 8px; }
.stars label { display: block; }
.stars input { position: absolute; opacity: 0; width: 1px; }
.stars span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid #cdd6e2; font-size: 1.1rem; cursor: pointer; }
.stars input:checked + span { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.stars input:focus-visible + span { outline: 2px solid var(--blue-600); }
.timer { position: sticky; top: 76px; z-index: 6; float: right; background: var(--navy-800); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 1.1rem; }
.timer.urgent { background: var(--red-600); animation: pulse 1s infinite; }
.answer { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.answers { padding-left: 18px; } .answers li { margin: 6px 0; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.inline-label input { width: 90px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 200px) 1fr 40px; gap: 10px; align-items: center; font-size: .9rem; margin: 4px 0; }
.bar { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue-600); }
.score { text-align: center; } .score.ok { border-color: var(--green-600); } .score.ko { border-color: var(--red-600); }

/* ---------- boutons Retour / Continuer ---------- */
.pagenav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; }
.pagenav .nav-next { margin-left: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.ghost { background: transparent; border-color: #cdd6e2; color: var(--navy-800); }
.btn.ghost:hover { background: #fff; }
.back { display: none; } /* remplacé par le bouton « ← Retour » */
@media print { .pagenav { display: none; } }

.presence-note { background: #e6f4e3; border: 1px solid #b9dcb0; border-radius: 10px; padding: 8px 10px; font-size: .86rem; margin: 6px 0; }

/* ---------- master class et réunions ---------- */
.badge.kind-masterclass { background: #f3e8ff; color: #6b21a8; }
.badge.kind-reunion { background: #e0f2fe; color: #075985; }
.badge.kind-formation { background: var(--surface-3); color: var(--navy-800); }
.event-when { font-weight: 600; color: var(--navy-800); margin: 2px 0 6px; }
.hero .event-when { color: #fff; }
.event-card form { margin: 0; }
.public-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; }

/* ---------- travail en groupes pendant le live ---------- */
.bk-staff { background: #f2f8ef; border: 1px solid #cfe5c8; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.bk-staff summary { color: var(--green-600); }
.bk-staff form { margin: 6px 0 0; }
.bk-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.bk-group { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.bk-group ul { margin: 4px 0 8px; padding-left: 18px; }
.bk-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy-800); background: #fff; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); }
.bk-timer.urgent { color: #fff; background: var(--red-600); border-color: var(--red-600); }
.bk-part { border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.bk-part.on { background: #fff3dc; border: 2px solid var(--sun-400); }
.bk-part.off { background: #e6f4e3; border: 2px solid var(--green-500); }
.bk-part .btn { margin-top: 6px; }
.flash-me .btn { animation: pulse .8s infinite; box-shadow: 0 0 0 4px rgba(194,83,26,.25); }

/* Pause (chrono géré par les formateurs) */
.pause-staff { background: #fff8ec; border: 1px solid #f3dcae; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.pause-staff summary { color: var(--orange-600); cursor: pointer; }
.pause-staff form { margin: 6px 0 0; align-items: flex-end; }
.pause-staff label { font-size: .85rem; }
.pause-banner { background: #fff3dc; border: 2px solid var(--sun-400); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.pause-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy-800); background: #fff; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); }
.pause-timer.big { font-size: 1.2rem; }
.pause-timer.urgent { color: #fff; background: var(--red-600); border-color: var(--red-600); }
body.pause-screen { margin: 0; min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, var(--navy-700), var(--navy-900)); color: #fff; text-align: center; font-family: var(--font); }
.pause-screen main { padding: 24px 16px; }
.ps-logo { height: 64px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.ps-title { opacity: .8; margin: 18px 0 0; }
.pause-screen h1 { font-size: clamp(1.6rem, 5vw, 3rem); margin: 18px 0 6px; color: var(--sun-400); }
.ps-timer { font-size: clamp(5rem, 22vw, 14rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.ps-timer.urgent { color: var(--sun-400); animation: pulse 1s infinite; }
.ps-note { font-size: clamp(1rem, 3vw, 1.6rem); opacity: .9; }

/* Discussion de la classe */
.class-chat { margin-top: 16px; }
.class-chat h3 { margin: 0; }
.cc-log { height: 300px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.cc-msg { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font-size: .9rem; max-width: 92%; overflow-wrap: anywhere; }
.cc-msg.mine { align-self: flex-end; background: #eaf2fb; border-color: #cfe0f3; }
.cc-msg.staff { border-left: 3px solid var(--orange-500); }
.cc-tag { font-size: .7rem; font-weight: 700; color: var(--orange-600); background: #fff1e8; border-radius: 999px; padding: 1px 6px; }
.cc-form { display: flex; gap: 6px; }
.cc-form input { flex: 1; min-width: 0; }

/* Enregistrements et aide du live */
.rec video, .rec audio { width: 100%; border-radius: 10px; background: #000; }
.rec-admin { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 6px; }
.rec-admin progress { width: 100%; }
.live-help { margin-top: 8px; }
.live-help summary { cursor: pointer; color: var(--blue-600); }
.live-help ul { padding-left: 18px; margin: 6px 0 0; }

/* ---------- inscription : frais, places ---------- */
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { font-weight: 700; color: var(--navy-800); padding: 0 6px; font-size: .92rem; }
.su-pay { background: #fff7ef; border-color: #f3dcc7; }
.su-info { background: var(--surface-3); padding: 8px 10px; border-radius: 8px; margin: -4px 0 0; }
.seat-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange-500);
  border-radius: 10px; padding: 10px 14px; margin: 6px 0 10px; font-size: .9rem; }
.reg-box { background: #fff7ef; border: 1px solid #f3dcc7; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.reg-box h3 { margin-top: 0; }

/* ---------- convertisseur en dollars ---------- */
.converter { border-left: 4px solid var(--green-500); }
.conv-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.conv-row label { flex: 1 1 160px; }
.conv-eq { font-size: 1.4rem; padding-bottom: 8px; color: var(--ink-soft); }

/* ---------- questions & réponses ---------- */
.topic.open { border-left: 4px solid var(--sun-400); }
.topic form { margin: 0; }
.q-body { font-size: 1rem; margin: 8px 0; }
.who { font-weight: 700; font-size: .9rem; color: var(--navy-800); }
.who.staff { color: var(--green-600); }
.who.ai { color: var(--blue-600); }
.replies { margin: 8px 0 4px 14px; border-left: 2px solid var(--line); padding-left: 12px; }
.reply { padding: 8px 10px; border-radius: 10px; margin: 6px 0; background: var(--surface-2); }
.reply.staff { background: #eef7ec; }
.reply.ai { background: #eef4fb; }
.inline-check { display: inline-flex; margin-left: 10px; font-weight: 400; }

/* ---------- assistant (messagerie instantanée) ---------- */
.ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500)); color: #fff; font-size: 1.6rem; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); }
.ai-fab:hover { transform: scale(1.05); }
.ai-panel { position: fixed; right: 18px; bottom: 88px; z-index: 50; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(7,26,51,.55); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.ai-panel[hidden] { display: none; }
.ai-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--navy-800); color: #fff; }
.ai-panel header span { font-size: .78rem; color: #c9d6e6; }
.ai-panel header button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.me { background: var(--blue-600); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.err { border-color: #f1b8b2; color: var(--red-600); }
.ai-msg.wait { color: var(--ink-soft); animation: pulse 1s infinite; }
.ai-panel form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-panel textarea { resize: none; font-size: .9rem; padding: 8px 10px; }
.ai-note { font-size: .7rem; color: var(--ink-soft); margin: 0; padding: 0 10px 8px; }
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* ---------- certificat (impression A4 paysage) ---------- */
.cert-page { background: #e9edf2; padding: 20px 12px; }
.cert-actions { text-align: center; margin-bottom: 16px; }
.cert { background: #fff; max-width: 1050px; margin: 0 auto; aspect-ratio: 297 / 210; padding: 18px;
  background-image: linear-gradient(90deg, var(--orange-500), var(--sun-400), var(--green-500), var(--blue-600)); box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.cert-in { background: #fff; height: 100%; border: 2px solid var(--navy-800); outline: 1px solid var(--navy-800); outline-offset: -8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3% 6%; }
.cert-logo { height: 15%; min-height: 50px; width: auto; }
.cert-kicker { font-size: clamp(1.1rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-800); margin: 2% 0 1%; }
.cert-lead { margin: .4% 0; color: var(--ink-soft); font-size: clamp(.8rem, 1.6vw, 1.05rem); }
.cert-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 4.5vw, 3rem); color: var(--orange-600); margin: 1% 0; border-bottom: 2px solid var(--sun-400); padding: 0 20px 4px; }
.cert-title { font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--navy-800); margin: 1% 0; }
.cert-meta { color: var(--ink-soft); font-size: clamp(.75rem, 1.4vw, .95rem); margin: .5% 0 2%; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; margin-top: auto; text-align: left; font-size: clamp(.7rem, 1.3vw, .92rem); gap: 20px; }
.cert-foot p { margin: 2px 0; }
.cert-sign { text-align: center; min-width: 30%; }
.sign-line { border-bottom: 1px solid var(--ink); height: 40px; margin-bottom: 6px; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .cert-page { background: #fff; padding: 0; }
  .cert-actions { display: none; }
  .cert { max-width: none; width: 297mm; height: 210mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert-kicker { font-size: 26pt; } .cert-name { font-size: 34pt; } .cert-title { font-size: 18pt; } .cert-lead { font-size: 12pt; } .cert-meta, .cert-foot { font-size: 10pt; }
}
