/* CloudGamingPlatform — charte alignée sur cloud-rennais.fr
   (Archivo + JetBrains Mono auto-hébergées, accent #ec3013, thème sombre/clair) */

@font-face { font-family: "Archivo"; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/archivo-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: "Archivo"; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/archivo-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: "JetBrains Mono"; font-weight: 400 600; font-display: swap;
  src: url("/static/fonts/jetbrains-mono-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: "JetBrains Mono"; font-weight: 400 600; font-display: swap;
  src: url("/static/fonts/jetbrains-mono-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; }

:root {
  --accent: #ec3013;
  --accent-hover: #dd2b0f;
  --accent-active: #ae1800;
  --bg: #131110;
  --text: #f3f2f2;
  --muted: #b2acaa;
  --accent-text: #ff9783;
  --glass: rgba(38, 34, 32, .5);
  --glass-soft: rgba(40, 36, 34, .4);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 60px rgba(0, 0, 0, .45);
  --logo-filter: invert(1);
  --stripe-a: rgba(255, 255, 255, .08);
  --field-bg: rgba(0, 0, 0, .25);
  --ok: #7ee2a8;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f2f2;
  --text: #201e1d;
  --muted: #605d5d;
  --accent-text: #ae1800;
  --glass: rgba(255, 255, 255, .5);
  --glass-soft: rgba(255, 255, 255, .4);
  --glass-border: rgba(32, 30, 29, .14);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 50px rgba(32, 30, 29, .10);
  --logo-filter: none;
  --stripe-a: rgba(32, 30, 29, .08);
  --field-bg: rgba(255, 255, 255, .6);
  --ok: #17803f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--text); line-height: 1.5;
  transition: background .4s, color .4s;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono, code, kbd, .tag, .nav-inner, .field > span, .kv { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Fond animé (comme cloud-rennais.fr) */
.blobs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.blob-1 { left: 60%; top: -10%; width: 44vw; height: 44vw; background: oklch(0.66 0.21 32 / .5); animation: drift1 20s ease-in-out infinite; }
.blob-2 { left: -10%; top: 35%; width: 46vw; height: 46vw; background: oklch(0.78 0.14 60 / .4); animation: drift2 25s ease-in-out infinite; }
.blob-3 { left: 45%; top: 70%; width: 46vw; height: 46vw; background: oklch(0.62 0.2 20 / .5); animation: drift3 28s ease-in-out infinite; }
[data-theme="light"] .blob-1, [data-theme="light"] .blob-3 { background: oklch(0.66 0.21 32 / .55); }
[data-theme="light"] .blob-2 { background: oklch(0.78 0.14 60 / .45); }
@keyframes drift1 { 50% { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-14vw, 6vh) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(6vw, -10vh); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .blob, .live-dot { animation: none; } html { scroll-behavior: auto; } }

.page { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); flex: 1; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: var(--glass-soft);
  border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%); }
.nav-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 16px; padding: 14px clamp(20px, 4vw, 48px); font-size: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.brand:hover { color: var(--text); }
.brand-logo { height: 30px; width: auto; filter: var(--logo-filter); }
.brand-short { display: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(12px, 2vw, 24px); }
.nav-links > a { color: var(--text); }
.nav-links > a:hover { color: var(--accent); }
.nav-links form { display: inline; margin: 0; }
@media (max-width: 560px) { .brand-full { display: none; } .brand-short { display: inline; } }

/* Boutons */
.btn { font: inherit; font-size: 15px; cursor: pointer; border-radius: 10px; padding: 12px 18px;
  border: 1px solid transparent; white-space: nowrap; display: inline-block; text-align: center; }
.btn-accent { background: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-accent:active { background: var(--accent-active); }
.btn-glass { color: var(--text); background: var(--glass-soft); border-color: var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-weight: 600; }
.btn-glass:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost { font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 7px 11px; color: var(--text);
  border-color: var(--glass-border); background: var(--glass-soft); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { color: var(--accent-text); }
.btn-lg { font-size: 17px; padding: 15px 24px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Titres */
.tag { font-size: 14px; color: var(--accent-text); margin: 0; }
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6.5vw, 84px); line-height: .95; font-weight: 800;
  letter-spacing: -.04em; text-wrap: balance; }
.hero.compact { padding-top: clamp(28px, 4vw, 48px); }
.hero.compact h1 { font-size: clamp(34px, 4.6vw, 56px); }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 640px; text-wrap: pretty; }
h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 18px; font-weight: 800; }
.section { padding-bottom: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }

/* Panneau « terminal » */
.panel { border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--glass-border);
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }
.dot { width: 11px; height: 11px; border-radius: 9px; background: var(--stripe-a); flex: none; }
.dot-accent { background: var(--accent); }
.panel-title { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.panel-narrow { max-width: 460px; margin: clamp(24px, 6vw, 72px) auto; }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--accent-text); }
.live-dot { width: 8px; height: 8px; border-radius: 9px; background: var(--accent); animation: pulse 1.6s infinite; }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card { padding: 22px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; color: var(--muted); }
.card.accent { border-color: var(--accent); }
.step-num { font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 600; color: var(--accent-text); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field > span { font-size: 13px; }
.field input:not([type="checkbox"]) { font: inherit; font-size: 16px; color: var(--text); background: var(--field-bg);
  border: 1px solid var(--glass-border); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input::placeholder { color: var(--muted); opacity: .6; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.alert { background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid var(--accent);
  padding: 12px 16px; border-radius: 10px; }
.notice { border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent);
  padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }

/* Éléments */
code { background: var(--field-bg); border: 1px solid var(--glass-border); padding: 2px 7px; border-radius: 6px; font-size: .92em; }
code.pin, code.host { font-size: 1.35rem; padding: 8px 14px; letter-spacing: .08em; display: inline-block; }
kbd { background: var(--field-bg); border: 1px solid var(--glass-border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: .85rem; }
.badge { font-family: "JetBrains Mono", monospace; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.list li:last-child { border-bottom: 0; }
.row-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.footer { position: relative; z-index: 1; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 48px); display: flex;
  flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }
