/* Compte et connexion de l'application : mêmes couleurs, polices et formes que vektalo.com et AutoSave
   (graphite, surface, signal ; IBM Plex). Les boutons Google et Microsoft suivent leurs chartes officielles. */
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --graphite: #1e1e2e; --surface: #252536; --grid: #353548; --rule: #636379;
  --paper: #ffffff; --muted: #a9a9bd; --signal: #4cc9f0; --brand: #4361ee;
  --highlight: #ff9f1c; --validated: #00d26a; --danger: #ff6b6b;
}
/* Light theme, set by /assets/theme.js (same values as vektalo.com). */
:root[data-theme="light"] {
  --graphite: #f3f4f8; --surface: #ffffff; --grid: #dfe2ec; --rule: #6e7489;
  --paper: #161824; --muted: #3e4759; --signal: #0a6a93; --brand: #3049d8;
  --highlight: #9a4f00; --validated: #1e7a3c; --danger: #b3261e;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--graphite); color: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
a { color: var(--signal); }
.topbar { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-bottom: 1px solid var(--grid); padding: 12px 20px; }
.logo { height: 32px; display: block; }
.brand { display: flex; justify-content: center; margin: 40px 0 8px; }
.brand .logo { height: 36px; }
.lang button { margin-left: 8px; }
.lang { display: flex; align-items: center; }
/* Theme button added by /assets/theme.js (System, Light, Dark). */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); background: transparent; color: var(--paper); cursor: pointer; }
.theme-switch:hover { color: var(--signal); border-color: var(--signal); filter: none; }
.lang .theme-switch { margin-left: 0; }
.theme-switch--corner { position: fixed; top: 12px; right: 12px; }
main { width: 100%; max-width: 720px; margin: 24px auto; padding: 0 16px; flex: 1; }
body.center main.narrow { max-width: 460px; }

.card {
  background: var(--surface); border: 1px solid var(--grid); border-radius: 12px;
  padding: 28px; margin-bottom: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
h1 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
p { margin: 8px 0; }
.kicker { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; color: var(--signal); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }

label { display: block; margin: 14px 0; color: var(--muted); font-size: 13px; }
input, select {
  display: block; width: 100%; padding: 11px 12px; margin-top: 6px;
  background: var(--graphite); color: var(--paper);
  border: 1px solid var(--rule); border-radius: 8px; font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--signal); }

button {
  padding: 11px 22px; background: var(--signal); color: var(--graphite);
  border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: default; }
button.secondary { background: transparent; color: var(--paper); border: 1px solid var(--rule); }
button.link { background: transparent; color: var(--signal); border: 0; padding: 0; font-weight: 400; text-decoration: underline; }
form button[type="submit"] { width: 100%; margin-top: 6px; }

/* Official sign-in buttons: white, brand logo on the left, « Continuer avec … ». */
.providers { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 4px; }
button.provider {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  background: #ffffff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600;
}
button.provider svg { width: 20px; height: 20px; flex: none; }
button.provider:hover { background: #f2f2f2; filter: none; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--grid); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.row input, .row select { flex: 1; min-width: 160px; width: auto; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.list li:last-child { border-bottom: 0; }
.list li span { word-break: break-word; }
.hint { color: var(--muted); font-size: 13px; }
.device { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; }
.error:empty { display: none; }
.error small { display: block; color: var(--rule); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 11px; margin-top: 2px; }
.ok { color: var(--validated); }
.switch { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.hidden { display: none !important; }
footer { text-align: center; font-size: 12px; color: var(--muted); padding: 18px; }

@media (max-width: 480px) {
  .card { padding: 20px; }
  .brand { margin-top: 20px; }
}

/* Purchase card (C2-suite, 10 Nov. 2026): two plans side by side, stacked on a phone. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 12px 0; }
.plan { border: 1px solid var(--rule); border-radius: 8px; padding: 14px; }
.plan h3 { margin: 0 0 6px; }
.plan .price { font-weight: 600; margin: 0 0 6px; }
.plan input[type="number"] { width: 5.5em; }
[hidden] { display: none !important; }
/* Site header and footer around the portal (19 nov. 2026: a page of vektalo.com, not a bare test page). */
.topbar { gap: 16px; flex-wrap: wrap; }
.site-brand { display: block; }
.site-nav { display: flex; gap: 20px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.site-nav a, .site-footer-links a { color: var(--paper); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-footer-links a:hover, .site-footer-links a:focus-visible { color: var(--signal); text-decoration: underline; }
.site-footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
@media (max-width: 560px) { .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; } }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 0.92rem; line-height: 1.45; }
.consent input { margin-top: 3px; flex: none; width: auto; }
