:root {
  --navy: #1F4E78; --navy-dark: #163a5a; --accent: #2E86C1;
  --bg: #f4f6f9; --card: #ffffff; --text: #1f2933; --muted: #637381; --border: #dde3ea;
  --ok: #1e7e34; --ok-bg: #e6f4ea; --warn: #8a5a00; --warn-bg: #fff4e0; --err: #b02a37; --err-bg: #fdecee;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
header.top { background: var(--navy); color: #fff; }
header.top .in { max-width: 1100px; margin: auto; display: flex; align-items: center; gap: 24px; padding: 12px 16px; }
header.top .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header.top nav a, header.top nav button { color: #dbe7f3; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
header.top nav a:hover, header.top nav button:hover { color: #fff; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 1.6rem; margin: 0 0 16px; color: var(--navy); }
h2 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-dark); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.msg.success { background: var(--ok-bg); color: var(--ok); }
.msg.warning, .msg.info { background: var(--warn-bg); color: var(--warn); }
.msg.error { background: var(--err-bg); color: var(--err); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.module-card { display: flex; flex-direction: column; gap: 10px; }
.module-card img { width: 100%; height: 140px; object-fit: contain; background: #fff; border-radius: 6px; }
.module-card .title { font-weight: 600; }
.bar { height: 8px; background: #e7ecf2; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: #e7ecf2; color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--err-bg); color: var(--err); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps .icon { width: 28px; text-align: center; font-size: 1.1rem; }
.steps .locked { color: var(--muted); }
.steps .t { flex: 1; }
.steps li.section { background: #f0f4f8; color: var(--navy); padding: 10px 8px; margin-top: 6px; border-radius: 6px; }
.question { border-top: 1px solid var(--border); padding: 18px 0; }
.question:first-of-type { border-top: 0; }
.question .label { font-weight: 600; margin-bottom: 10px; white-space: pre-line; }
.question img { max-width: 100%; max-height: 360px; display: block; margin: 8px 0; border-radius: 6px; }
.question label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.gaps select { margin: 0 4px; font: inherit; padding: 2px 4px; }
.pairs td { padding: 6px 8px; vertical-align: middle; }
.pairs select, .order select { font: inherit; padding: 4px; max-width: 100%; }
.order td { padding: 6px 8px; }
textarea, input[type=text], input[type=email], input[type=password] { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.errorlist { color: var(--err); list-style: none; padding: 0; margin: 4px 0; }
.result { font-size: 1.3rem; font-weight: 700; }
.result.ok { color: var(--ok); } .result.ko { color: var(--err); }
.corr { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #f7f9fb; }
.corr.ok { border-left: 4px solid var(--ok); } .corr.partial { border-left: 4px solid #d39e00; } .corr.ko { border-left: 4px solid var(--err); }
.media video, .media iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; background: #000; }
.media iframe.doc { aspect-ratio: auto; height: 75vh; background: #fff; }
.placeholder { padding: 40px; text-align: center; background: #f7f9fb; border: 2px dashed var(--border); border-radius: 8px; color: var(--muted); }
.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.auth { max-width: 420px; margin: 40px auto; }
.stars { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { header.top .in { flex-wrap: wrap; } main { margin-top: 16px; } .card { padding: 16px; } }
.slides { position: relative; user-select: none; }
.slides .slide { display: none; width: 100%; border-radius: 8px; border: 1px solid var(--border); background: #fff; pointer-events: none; }
.slides .slide.active { display: block; }
.slides-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.intro-img { max-width: 100%; max-height: 420px; display: block; margin: 0 auto 16px; border-radius: 8px; }
.step-text { white-space: normal; }

/* Espace manager */
table.mgr { width: 100%; border-collapse: collapse; }
table.mgr th, table.mgr td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.mgr th { font-size: .82rem; color: var(--muted); font-weight: 600; }
table.mgr .bar { width: 120px; margin-top: 6px; }
select, input[type=number] { font: inherit; padding: 8px; border: 1px solid var(--border); border-radius: 8px; max-width: 100%; }
.checklist ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.checklist label { font-weight: normal; display: flex; gap: 8px; align-items: center; }
/* Catalogue public et achat */
footer.foot { border-top: 1px solid var(--border); margin-top: 48px; background: #fff; }
footer.foot .in { max-width: 1100px; margin: auto; padding: 16px; display: flex; gap: 20px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
footer.foot a { color: var(--muted); }
.cat-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.cat-filter input[type=search] { flex: 1; min-width: 220px; font: inherit; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; }
a.module-card { color: inherit; text-decoration: none; transition: box-shadow .15s; }
a.module-card:hover { box-shadow: 0 4px 14px rgba(16, 42, 67, .12); }
.module-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 700; color: var(--navy); }
.price.big { font-size: 1.8rem; }
h3.sub { font-size: 1rem; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }
.mod-head { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .mod-head { grid-template-columns: 1fr; } }
.mod-head img { max-width: 100%; max-height: 260px; display: block; border-radius: 8px; background: #fff; margin-bottom: 12px; }
.buy-box { position: sticky; top: 16px; }
.buy-box input[type=range] { width: 100%; }
.buy-box .days { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.buy-box .days input[type=number] { width: 90px; }
.recap td { padding: 6px 8px 6px 0; vertical-align: top; }
.recap td:first-child { color: var(--muted); white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: normal; }
.check input { margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.legal h2 { margin-top: 24px; }
.legal p { white-space: pre-line; }
.demo-banner { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
