:root { color-scheme: dark; }

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #070B18;
  --bg-elev:   #0D1430;
  --bg-elev-2: #101838;
  --line:      #1C2650;
  --line-soft: #161E40;
  --text:      #EEF1FA;
  --text-2:    #C6CEE8;
  --muted:     #8C96B4;
  --brand:     #2743D0;
  --brand-hi:  #3A55E6;
  --accent:    #6E8CFF;
  --accent-pale: #A9BBFF;
  --warn:      #F0B866;
  --radius:    16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font:        'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-titres: 'Space Grotesk', var(--font);
  --font-mono:   'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 34rem; margin: 0 auto; }

header.marque {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.ecusson { width: 1.7rem; height: 1.7rem; flex-shrink: 0; }
.el-wordmark {
  font-family: var(--font-titres);
  font-weight: 700;
  letter-spacing: -0.3px;
  font-size: 1.2rem;
  color: var(--text);
}
.el-wordmark b { font-weight: 700; color: var(--brand); }
.el-endorsement {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: var(--font-titres);
  font-weight: 600;
  letter-spacing: -0.5px;
  font-size: 1.5rem;
  margin: 1.25rem 0 .25rem;
}
h2 {
  font-family: var(--font-titres);
  font-weight: 500;
  letter-spacing: -0.3px;
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}

section {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem 1.25rem;
  margin-top: 1.25rem;
}

label { display: block; margin-top: .75rem; font-size: .85rem; color: var(--text-2); }
input, select, button {
  width: 100%;
  padding: .6rem .65rem;
  margin-top: .3rem;
  font: inherit;
  border-radius: var(--radius-xs);
}
input, select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}
input::placeholder { color: var(--muted); }
select { cursor: pointer; }

button {
  margin-top: 1.15rem;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  background: var(--brand);
  border: 1px solid var(--brand);
}
button:hover { background: var(--brand-hi); border-color: var(--brand-hi); }

a { color: var(--accent); }
a:hover { color: var(--accent-pale); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  padding: .6rem .65rem;
  margin: .5rem 0 0;
}
pre:empty { display: none; }
code {
  font-family: var(--font-mono);
  font-size: .82em;
  word-break: break-all;
  color: var(--text);
}

nav { margin-top: 2rem; font-size: .9rem; }
.etat { font-size: .85rem; min-height: 1.2em; color: var(--muted); }
.aide { font-size: .85rem; color: var(--muted); }
.avertissement {
  border-left: 3px solid var(--warn);
  background: var(--bg-elev-2);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: .55rem .8rem;
  margin: 1rem 0 0;
  font-size: .85rem;
  color: var(--text-2);
}
.avertissement strong { color: var(--text); }

/* Rail de recharge : ticket Monero (montant + adresse + QR + lien) et ticket carte. */
.ticket-zone { margin-top: .5rem; }
.ticket {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: .85rem .9rem 1rem;
}
.ticket-titre {
  font-family: var(--font-titres);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 .5rem;
  color: var(--text);
}
.ticket-cle {
  font-size: .72rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: .8rem 0 .15rem;
}
.ticket-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  word-break: break-all;
}
.ticket-code {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  padding: .5rem .55rem;
  margin: 0;
  word-break: break-all;
}
.ticket-aide {
  font-size: .8rem;
  color: var(--warn);
  margin: .85rem 0 0;
}
.ticket-erreur {
  border-left: 3px solid var(--warn);
  background: var(--bg-elev);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: .6rem .8rem;
  margin: 0;
  font-size: .9rem;
  color: var(--text);
}
button.copier {
  width: auto;
  min-height: 0;
  margin-top: .4rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent-pale);
  background: transparent;
  border: 1px solid var(--line);
}
button.copier:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--text);
}
.qr {
  display: block;
  width: 220px;
  max-width: 78%;
  height: auto;
  margin: .8rem 0 .2rem;
  border: 10px solid #ffffff;
  border-radius: var(--radius-xs);
  background: #ffffff;
  image-rendering: pixelated;
}
