* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f6f8fa;
  color: #1f2328;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 36px; padding-bottom: 40px; }

/* Barre du site */
.topbar { background: #fff; border-bottom: 1px solid #d1d9e0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font-weight: 700; font-size: 1.15rem; }
.demo { font-size: .8rem; color: #59636e; }
nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
nav span { color: #59636e; }

h1 { margin: 0 0 8px; font-size: 1.6rem; }
h2 { margin: 0 0 16px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.lead { margin: 0 0 28px; color: #59636e; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.box { background: #fff; border: 1px solid #d1d9e0; border-radius: 8px; padding: 24px; min-width: 0; }

.tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tag-http { background: #ffebe9; color: #b42318; }
.tag-https { background: #dafbe1; color: #1a7f37; }
.count { font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #0969da; color: #fff; }

form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
label { font-size: .875rem; font-weight: 600; margin-top: 6px; }
input { padding: 8px 10px; font: inherit; border: 1px solid #d1d9e0; border-radius: 6px; }
input:focus { outline: 2px solid #0969da; outline-offset: -1px; border-color: #0969da; }

button {
  margin-top: 12px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer;
  color: #fff; background: #1f883d; border: 1px solid #1a7f37; border-radius: 6px;
}
button:hover { background: #1a7f37; }
button:disabled { opacity: .6; cursor: progress; }
button.secondary { color: #1f2328; background: #f6f8fa; border-color: #d1d9e0; }
button.secondary:hover { background: #eef1f4; }

code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-variant-ligatures: none; }
code { font-size: .85em; background: #f6f8fa; padding: 1px 4px; border-radius: 4px; }
pre {
  margin: 0 0 12px; padding: 12px; font-size: .8rem; line-height: 1.45;
  white-space: pre-wrap; word-break: break-all;
  background: #f6f8fa; border: 1px solid #d1d9e0; border-radius: 6px;
}

.notes { margin: 0; padding-left: 18px; font-size: .875rem; color: #59636e; }
.notes li + li { margin-top: 4px; }

.plan-b { margin-top: 16px; padding: 12px; border: 1px solid #ffcecb; background: #fff8f7; border-radius: 6px; font-size: .875rem; }
.plan-b p { margin: 0 0 10px; }

/* Page d'accueil */
.via { margin-bottom: 24px; padding: 12px 16px; border-radius: 6px; font-size: .9rem; }
.via-http { background: #ffebe9; border: 1px solid #ffcecb; color: #82071e; }
.via-https { background: #dafbe1; border: 1px solid #aceebb; color: #116329; }
.list { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f4; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list span { color: #59636e; white-space: nowrap; }

footer { margin-top: 28px; font-size: .85rem; color: #59636e; }
a { color: #0969da; }

@media (max-width: 760px) {
  .columns, .grid { grid-template-columns: 1fr; }
  .demo { display: none; }
}
