@import url('/app/fonts/fonts.css');

:root {
  --bg: #f4f3ee; --surface: #ffffff; --sunk: #ecebe4; --line: #e0ded5; --line-strong: #cfcdc2;
  --ink: #141511; --ink-2: #4a4b44; --muted: #85857b;
  --accent: #3d63ff; --accent-ink: #ffffff;
  --btn: #141511; --btn-ink: #f4f3ee;
  --ok: #1f9d55; --warn: #e8a33d; --down: #d8452f; --idle: #b9b8ae;
  --display: 'Bricolage', 'Instrument', system-ui, sans-serif;
  --sans: 'Instrument', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e0b; --surface: #14150f; --sunk: #1a1b15; --line: #24261e; --line-strong: #34372c;
    --ink: #eeefe8; --ink-2: #b9baaf; --muted: #7d7e73;
    --accent: #5b7cff;
    --btn: var(--accent); --btn-ink: var(--accent-ink);
    --ok: #3ccf7a; --warn: #f0b454; --down: #f0634b; --idle: #4a4c42;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.shell.bare { grid-template-columns: 1fr; }
.shell.bare main { padding: 0; max-width: none; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.02em; padding: 0 8px; }
.mark path { stroke: var(--accent); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: #141511; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side nav a svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.side nav a:hover { background: var(--sunk); color: var(--ink); }
.side nav a.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.side nav a.active svg { opacity: 1; }
.side nav .count { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--muted); }
.side nav .count.alert { color: #fff; background: var(--down); padding: 3px 6px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.side-foot .org { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side-foot .org { min-width: 0; }

/* Sélecteur de langue FR / EN */
.lang-switch { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
.lang-switch button { font: 600 10px/1 var(--mono); letter-spacing: .08em; padding: 4px 6px; border: 0; border-radius: 4px; background: none; color: var(--muted); }
.lang-switch button:hover { color: var(--ink); background: var(--sunk); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: var(--sunk); box-shadow: inset 0 -1.5px 0 var(--accent); cursor: default; }
.chip { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.chip.dim { background: var(--sunk); color: var(--ink-2); }

main { padding: 36px 44px 80px; max-width: 1180px; width: 100%; min-width: 0; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 5; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .logo span:last-child { display: none; }
  .side nav { display: flex; }
  .side nav a { white-space: nowrap; padding: 7px 9px; }
  .side nav a svg { display: none; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 8px; }
  .side-foot .org, .side-foot .chip { display: none; }
  main { padding: 24px 16px 64px; }
}

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
h1 { font: 800 34px/1.05 var(--display); letter-spacing: -0.035em; margin: 0; overflow-wrap: anywhere; }
h2 { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 44px 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
h2 small { font-weight: 400; color: var(--muted); letter-spacing: .04em; text-transform: none; }
.lede { color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; }

/* ---------- Buttons ---------- */
button, .btn { font: 600 13.5px/1 var(--sans); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: transform .08s ease, background .15s ease; }
button:hover, .btn:hover { background: var(--sunk); }
button:active, .btn:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover, button.primary:hover { filter: brightness(1.12); background: var(--btn); }
button.danger { color: var(--down); }
button.ghost { background: none; border-color: transparent; color: var(--ink-2); padding: 6px 8px; }
button.ghost:hover { color: var(--ink); background: var(--sunk); }
button:disabled { opacity: .55; cursor: progress; }
.kbd { font: 500 11px/1 var(--mono); opacity: .6; }

/* ---------- Summary strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.strip > div { padding: 16px 20px 18px 0; }
.strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.strip label { display: block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.strip b { font: 700 30px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.strip b small { font: 500 14px/1 var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.strip b.down { color: var(--down); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(3) { padding-left: 0; border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Monitor list ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list-head, .mon { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(150px, 1.6fr) 90px 90px 24px; gap: 20px; align-items: center; padding: 0 20px; }
.list-head { height: 38px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg); }
.list-head .num, .mon .num { text-align: right; }
.mon { min-height: 72px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .12s ease; }
.mon:last-child { border-bottom: 0; }
.mon:hover { background: var(--sunk); }
.mon:hover .go { transform: translateX(3px); color: var(--ink); }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who > div { min-width: 0; }
.who .name { font-weight: 600; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .target { font: 12px/1.4 var(--mono); color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.num.down { color: var(--down); }
.go { color: var(--muted); transition: transform .15s ease; }

/* Indicateur d'état : forme + couleur, jamais la couleur seule */
.sig { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--idle)); position: relative; flex: none; }
.sig.up { --c: var(--ok); }
.sig.down { --c: var(--down); border-radius: 3px; transform: rotate(45deg); width: 11px; height: 11px; }
.sig.down::after { content: ''; position: absolute; inset: -5px; border-radius: 4px; border: 2px solid var(--down); opacity: .0; animation: alarm 1.6s ease-out infinite; }
.sig.paused { --c: transparent; box-shadow: inset 0 0 0 2px var(--idle); }
@keyframes alarm { 0% { opacity: .6; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .sig.down::after { animation: none; } }

.beats { display: flex; gap: 2px; align-items: flex-end; height: 26px; }
.beats i { flex: 1; max-width: 5px; height: 100%; border-radius: 1.5px; background: var(--ok); opacity: .85; }
.beats i.ko { background: var(--down); opacity: 1; }
.beats i.na { background: var(--line); opacity: 1; }

@media (max-width: 760px) {
  .list-head { display: none; }
  .mon { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; padding: 14px 16px; }
  .mon .beats { grid-column: 1 / -1; order: 3; }
  .mon .num.lat, .mon .go { display: none; }
}

/* ---------- Status pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px 7px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Detail ---------- */
.detail-stats { grid-template-columns: repeat(4, 1fr); }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px; position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.chart-head span { font: 12px/1 var(--mono); color: var(--muted); }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text, .chart .axis text { fill: var(--muted); font: 10.5px var(--mono); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .22; }
.chart .fail { fill: var(--down); }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hover-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font: 500 12px/1.45 var(--mono); padding: 8px 10px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -12px; }
.tip b { font-weight: 700; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: table; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap .table { border: 0; border-radius: 0; }
.table th { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: left; padding: 13px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.mono { font-size: 12.5px; }
.table .empty-row td { color: var(--muted); padding: 22px 16px; }
.res { display: inline-flex; align-items: center; gap: 8px; }
.ongoing { color: var(--down); font-weight: 600; }

/* ---------- Forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
form { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 13px; }
label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
label > input, label > select, label > textarea, label > .swatch-row { display: flex; margin-top: 7px; }
input, select, textarea { font: 400 14px/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input.mono { font: 13px/1.4 var(--mono); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
input:disabled { opacity: .5; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--down); margin: 0; font-weight: 500; }
.err:empty { display: none; }
details.settings { margin-top: 44px; }
details.settings summary { cursor: pointer; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 14px 0; border-top: 1.5px solid var(--ink); list-style: none; display: flex; justify-content: space-between; }
details.settings summary::-webkit-details-marker { display: none; }
details.settings summary::after { content: '+'; font-size: 16px; }
details.settings[open] summary::after { content: '−'; }

/* Segmented control (type de monitor / de canal) */
.seg { justify-self: start; display: inline-flex; background: var(--sunk); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: block; cursor: pointer; padding: 8px 14px; border-radius: 7px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }

.swatch-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatch-row input[type=color] { width: 44px; height: 40px; padding: 3px; cursor: pointer; }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.channel.off { opacity: .6; }
.channel-top { display: flex; align-items: center; gap: 12px; }
.channel-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); flex: none; }
.channel-ico svg { width: 18px; height: 18px; }
.channel .name { font-weight: 600; }
.channel .kind { font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.channel .dest { font: 12px/1.4 var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel .actions { justify-content: space-between; }

/* ---------- Status pages ---------- */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.page-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.page-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.page-card .preview { height: 118px; background: #141511; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #eeefe8; }
.page-card .preview .t { font: 800 22px/1.05 var(--display); letter-spacing: -0.03em; }
.page-card .preview .mini { display: flex; gap: 2px; height: 16px; }
.page-card .preview .mini i { flex: 1; background: var(--pc); border-radius: 1px; opacity: .9; }
.page-card .meta { padding: 14px 18px; display: grid; gap: 4px; }
.page-card .meta .url { font: 12px/1.4 var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Empty ---------- */
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 48px 24px; display: grid; justify-items: start; gap: 14px; }
.empty h3 { font: 800 24px/1.1 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 22ch; }
.empty p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: #0d0e0b; color: #eeefe8; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.auth-art .logo { padding: 0; color: #eeefe8; }
.auth-art h2 { all: unset; display: block; font: 800 clamp(34px, 4.2vw, 54px)/1.02 var(--display); letter-spacing: -0.04em; max-width: 13ch; position: relative; z-index: 1; }
.auth-art { --accent: #5b7cff; }
.auth-art h2 em { font-style: normal; color: var(--accent); }
.auth-art .trace { display: block; width: calc(100% + 96px); margin: 0 -48px; height: 150px; }
.auth-art .trace path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.2s cubic-bezier(.6,.1,.3,1) .2s forwards; }
.auth-art .trace .base { stroke: #26281f; stroke-width: 1; stroke-dasharray: 4 6; animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .auth-art .trace path { animation: none; stroke-dashoffset: 0; } }
.auth-art .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font: 12px/1.5 var(--mono); color: #7d7e73; position: relative; z-index: 1; }
.auth-art .facts b { display: block; color: #eeefe8; font: 700 18px/1.2 var(--display); margin-bottom: 4px; letter-spacing: -0.02em; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; position: relative; }
.auth-form .lang-switch { position: absolute; top: 20px; right: 24px; }
.auth-form > div { width: 100%; max-width: 360px; }
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form .lede { margin: 0 0 28px; }
.auth-form button.primary { width: 100%; justify-content: center; padding: 13px; font-size: 14.5px; }
.auth-form .switch { margin-top: 20px; color: var(--muted); }
.auth-form .switch a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px 24px; } .auth-art .trace { height: 90px; width: calc(100% + 48px); margin: 0 -24px; } .auth-art .facts { display: none; } }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); font: 500 13px/1.3 var(--mono); padding: 12px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
#toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
#toast.bad::before { background: var(--down); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Chargement */
.loading { height: 3px; width: 120px; background: linear-gradient(90deg, transparent, var(--ink), transparent); background-size: 200% 100%; animation: load 1s linear infinite; border-radius: 2px; margin-top: 40px; }
@keyframes load { from { background-position: 100% 0; } to { background-position: -100% 0; } }
button.ghost.danger { color: var(--down); }
.check > input { margin-top: 0; display: inline-block; }
.sig.down { margin: 0 3px; }

/* ---------- Abonnement ---------- */
a.chip { text-decoration: none; }
.notice { border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--r); padding: 14px 18px; margin-bottom: 20px; }
.notice.ok { border-left-color: var(--ok); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.plan-card { padding: 24px 22px 22px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.plan-card:first-child { border-left: 0; }
.plan-card.is-current { box-shadow: inset 0 3px 0 var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.plan-card h3 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.plan-card .price { margin: 16px 0 18px; display: flex; align-items: baseline; gap: 8px; }
.plan-card .price b { font: 800 38px/1 var(--display); letter-spacing: -0.04em; }
.plan-card .price span { color: var(--muted); }
.plan-card dl { margin: 0 0 22px; }
.plan-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); }
.plan-card dt { color: var(--ink-2); } .plan-card dd { margin: 0; font: 500 12.5px/1.6 var(--mono); }
.plan-action { margin-top: auto; min-height: 38px; display: flex; align-items: center; }
.plan-action button { width: 100%; }
.plan-action .current { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.fine-print { font-size: 13px; margin-top: 16px; }
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { border-left: 0; border-top: 1px solid var(--line); }
  .plan-card:first-child { border-top: 0; }
}

/* ---------- Annonces ---------- */
.ann { margin-top: 56px; }
.ann-head h2 { font: 800 28px/1.1 var(--display); display: block; letter-spacing: -0.03em; margin: 8px 0 6px; text-transform: none; }
.ann-head p { margin: 0 0 20px; max-width: 60ch; }
.ann-new { display: grid; gap: 16px; margin-bottom: 24px; }
.ann-new .seg { display: inline-flex; justify-self: start; background: var(--sunk); border-radius: 9px; padding: 3px; gap: 2px; }
.ann-new .seg label { display: block; cursor: pointer; padding: 0; }
.ann-new .seg input { position: absolute; opacity: 0; pointer-events: none; }
.ann-new .seg span { display: block; padding: 7px 14px; border-radius: 7px; font-weight: 600; color: var(--ink-2); }
.ann-new .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.ann-new .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ann-list { display: grid; gap: 12px; }
.ann-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.ann-item.done { opacity: .72; }
.ann-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ann-top [data-del] { margin-left: auto; }
.ann-badge { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 5px; color: #fff; }
.ann-badge.down { background: var(--down); } .ann-badge.warn { background: var(--warn); color: #141511; } .ann-badge.maint { background: var(--accent); color: var(--accent-ink); }
.ann-done { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.ann-item h3 { font: 700 18px/1.3 var(--display); margin: 10px 0 8px; }
.ann-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ann-updates li { font-size: 14px; }
.ann-updates b { margin-left: 6px; }
.ann-updates p { margin: 2px 0 0; color: var(--ink-2); white-space: pre-line; }
.ann-update { display: grid; grid-template-columns: 190px 1fr auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
button.small { height: 30px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 700px) { .ann-update { grid-template-columns: 1fr; } }

/* ---------- SSL ---------- */
.ssl { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.ssl.ok svg { color: var(--ok); } .ssl.warn { color: #9a6200; } .ssl.warn svg { color: var(--warn); } .ssl.down { color: var(--down); }
@media (prefers-color-scheme: dark) { .ssl.warn { color: var(--warn); } }

/* ---------- Badges ---------- */
.badges { margin-top: 56px; }
.badges h2 { text-transform: none; }
.badge-list { display: grid; gap: 22px; }
.badge-row { display: grid; gap: 8px; }
.badge-row + .badge-row { border-top: 1px dashed var(--line); padding-top: 20px; }
.badge-prev { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 13px; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy input { font-size: 12px; color: var(--ink-2); }
.copy button { min-width: 104px; justify-content: center; }

/* ---------- Mot de passe oublié ---------- */
.pw-label .forgot { float: right; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.pw-label .forgot:hover { color: var(--accent); }

/* ---------- Équipe ---------- */
.table.team td { vertical-align: middle; }
.table.team select { width: auto; padding: 6px 30px 6px 10px; }
.table .right { text-align: right; }
.table tr.pending td { color: var(--ink-2); }
.invite { display: grid; gap: 14px; }
