:root { --navy:#253471; --sky:#009DDA; --slate:#678597; --bg:#F4F6FA; --white:#fff; --err:#b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin:0; background:var(--bg); color:var(--navy); font-family:'Montserrat','Segoe UI',Arial,sans-serif; }
header.topbar { display:flex; align-items:center; gap:16px; background:var(--navy); color:var(--white);
  padding:12px 24px; box-shadow:0 2px 8px rgba(37,52,113,.18); }
header.topbar img.logo { height:44px; width:auto; }
header.topbar .subtitle { font-weight:400; font-size:14px; color:#9FD8F0; border-left:1px solid rgba(255,255,255,.35); padding-left:14px; }
.tagline { margin:0 0 18px; color:var(--navy); }
.tagline strong { display:block; font-size:22px; font-weight:700; }
.tagline span { color:#009DDA; font-size:15px; }
header.topbar .title { font-weight:600; font-size:18px; letter-spacing:.3px; }
header.topbar .user { font-weight:300; font-size:13px; color:#c9d3ee; }
header.topbar a.signout { color:var(--white); font-size:13px; text-decoration:none; border:1px solid rgba(255,255,255,.4);
  padding:6px 12px; border-radius:6px; }
header.topbar a.signout:hover { background:rgba(255,255,255,.1); }
.spacer { flex:1; }
nav.toolbar { display:flex; align-items:center; gap:10px; padding:12px 24px; background:var(--white); border-bottom:1px solid #e1e6f0; }
nav.toolbar select { font-family:inherit; padding:7px 10px; border:1px solid #c8d1e3; border-radius:6px; min-width:240px; color:var(--navy); }
nav.toolbar .meta { color:var(--slate); font-size:13px; }
button { font-family:inherit; font-weight:600; border:0; border-radius:8px; padding:9px 16px; cursor:pointer; }
button.primary { background:var(--sky); color:var(--white); }
button.primary:hover { background:#0089bf; }
button.secondary { background:var(--white); color:var(--navy); border:1px solid var(--navy); }
button:disabled { opacity:.5; cursor:default; }
main { padding:16px 24px; }
.panel { background:var(--white); border:1px solid #e1e6f0; border-radius:10px; padding:12px 16px; margin-bottom:16px; }
.panel h3 { margin:0 0 8px; font-weight:600; font-size:15px; }
table.runs { width:100%; border-collapse:collapse; font-size:13px; }
table.runs th { text-align:left; color:var(--slate); font-weight:600; border-bottom:1px solid #e1e6f0; padding:6px; }
table.runs td { padding:6px; border-bottom:1px solid #f0f2f7; vertical-align:top; }
table.runs td.msg { max-width:420px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; background:#e8edf7; }
.badge.ok { background:#e2f4ea; color:#1e6b3a; } .badge.ko { background:#fbe7e6; color:var(--err); }
#reportContainer { height:calc(100vh - 330px); min-height:480px; border:1px solid #e1e6f0; border-radius:10px; overflow:hidden; background:var(--white); }
#reportContainer iframe { border:0; }
.state { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:12px; min-height:50vh; }
.state.small { min-height:200px; }
.state .ring { width:46px; height:46px; border-radius:50%; border:4px solid #d8e0f0; border-top-color:var(--sky); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.state h2 { margin:0; font-weight:600; }
.state p { margin:0; color:var(--slate); max-width:520px; }
.state.error h2 { color:var(--err); }
footer { padding:10px 24px; color:var(--slate); font-size:12px; }
footer b { color:var(--navy); }

/* ---- 0.3.0 : inscription + administration ---- */
.wrap { max-width:1180px; margin:0 auto; }
.card { background:var(--white); border:1px solid #e1e6f0; border-radius:12px; padding:20px 24px; margin-bottom:16px; }
.card h2 { margin:0 0 6px; font-size:20px; } .card h3 { margin:0 0 10px; font-size:16px; }
.muted { color:var(--slate); font-size:13px; }
.steps { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.steps li { flex:1 1 130px; padding:10px 12px; border-radius:10px; background:#eef2f9; color:var(--slate); font-size:13px; border:1px solid #e1e6f0; }
.steps li b { display:block; color:var(--navy); font-size:13px; margin-bottom:2px; }
.steps li.done { background:#e2f4ea; border-color:#bfe3cc; } .steps li.done b::before { content:"✓ "; color:#1e6b3a; }
.steps li.current { background:#e3f4fb; border-color:var(--sky); } .steps li.current b { color:var(--sky); }
.steps li.error { background:#fbe7e6; border-color:#f0b9b5; } .steps li.error b { color:var(--err); }
form.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px 16px; align-items:end; }
form.grid label, .field label { display:block; font-size:12px; font-weight:600; color:var(--slate); margin-bottom:4px; }
input[type=text], input[type=email], input[type=number], select.in { width:100%; font-family:inherit; padding:8px 10px; border:1px solid #c8d1e3; border-radius:6px; color:var(--navy); }
.check { display:flex; gap:8px; align-items:flex-start; font-size:13px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.alert { padding:10px 14px; border-radius:8px; font-size:13px; margin:10px 0; } .alert.err { background:#fbe7e6; color:var(--err); } .alert.ok { background:#e2f4ea; color:#1e6b3a; } .alert.info { background:#e3f4fb; color:var(--navy); }
.code { font-family:Consolas,monospace; font-size:20px; letter-spacing:2px; background:#eef2f9; padding:8px 14px; border-radius:8px; display:inline-block; }
.tabs { display:flex; gap:4px; border-bottom:2px solid #e1e6f0; margin-bottom:16px; flex-wrap:wrap; }
.tabs button { background:transparent; color:var(--slate); border-radius:8px 8px 0 0; padding:10px 16px; }
.tabs button.active { background:var(--white); color:var(--navy); border:1px solid #e1e6f0; border-bottom:2px solid var(--white); margin-bottom:-2px; }
table.data { width:100%; border-collapse:collapse; font-size:13px; } table.data th { text-align:left; color:var(--slate); font-weight:600; border-bottom:1px solid #e1e6f0; padding:7px 6px; white-space:nowrap; }
table.data td { padding:7px 6px; border-bottom:1px solid #f0f2f7; vertical-align:middle; } table.data td.num { text-align:right; font-variant-numeric:tabular-nums; }
button.small { padding:5px 10px; font-size:12px; } button.danger { background:var(--white); color:var(--err); border:1px solid var(--err); }
.grade { display:inline-block; width:24px; text-align:center; border-radius:6px; font-weight:700; color:#fff; }
.grade.A { background:#1e8e3e; } .grade.B { background:#7cb342; } .grade.C { background:#f9a825; } .grade.D { background:#ef6c00; } .grade.E { background:#c62828; }
.bar { position:relative; height:8px; background:#eef2f9; border-radius:4px; min-width:90px; } .bar span { position:absolute; left:0; top:0; bottom:0; background:var(--sky); border-radius:4px; }
.heat { text-align:center; font-weight:600; border-radius:4px; }
.full { grid-column:1/-1; }
.mt { margin-top:18px; }

/* ---- 0.4.0 : portail client — Utilisateurs / Mon abonnement ---- */
nav.ctabs { padding:0 24px; margin:0; background:var(--white); }
.kv { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px 16px; font-size:13px; margin-bottom:12px; }
.kv div b { display:block; color:var(--slate); font-size:12px; font-weight:600; }
.offer { border:2px solid var(--sky); background:#e3f4fb; border-radius:10px; padding:12px 16px; margin:8px 0; font-size:14px; }
.offer .price { font-size:20px; font-weight:700; }
table.grid-prices td.cur, table.grid-prices tr.cur td { background:#e3f4fb; }
table.grid-prices td.cur { outline:2px solid var(--sky); font-weight:700; }
a.button { display:inline-block; text-decoration:none; font-weight:600; border-radius:8px; padding:9px 16px; background:var(--sky); color:var(--white); }
