/* Watchers v2 — charte Hitopic v39 : Figtree, encre, fond chaud, dégradé teal → sky. */
:root {
  --ink: #0a0a0a; --mute: #6f6f6c; --paper: #f7f7f5; --card: #ffffff; --hairline: #e8e6e2;
  --accent: #14b8a6; --accent-2: #0ea5e9; --accent-dark: #0f9488; --tint: #d5f3ef; --tint-text: #0f766e;
  --warn-bg: #fef3c7; --warn-text: #92400e;
  --grad: linear-gradient(115deg, #14b8a6, #0ea5e9);
  --font: 'Figtree', system-ui, sans-serif;
  --r-card: 16px; --r-btn: 12px;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; margin: 0; }
h1 { font-size: 40px; } h2 { font-size: 22px; }
a { color: inherit; }
p { margin: 0; }
dl { margin: 0; } dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* Mise en page */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hairline); background: rgba(247, 247, 245, 0.85); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand .word { font-size: 23px; font-weight: 600; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; }
.nav a { border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--tint); color: var(--tint-text); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search input { width: 160px; }
@media (min-width: 640px) { .search input { width: 256px; } }
main.container { padding-top: 32px; padding-bottom: 32px; }
footer.container { padding: 24px 32px 40px; font-size: 13px; color: var(--mute); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.end { align-items: flex-end; }
.baseline { align-items: baseline; }
.stack > * + * { margin-top: 8px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .px-5 { padding-left: 20px; padding-right: 20px; } .pt-5 { padding-top: 20px; } .pb-5 { padding-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(4, 1fr); } .cards3 { grid-template-columns: repeat(3, 1fr); } }
.muted { color: var(--mute); } .small { font-size: 13.5px; } .xs { font-size: 12.5px; } .strong { font-weight: 600; }
.tabular { font-variant-numeric: tabular-nums; }
.max-w { max-width: 42rem; }
.break { word-break: break-all; }
.scroll-x { overflow-x: auto; }
.center { text-align: center; }
.big-domain { font-size: 44px; } @media (min-width: 640px) { .big-domain { font-size: 56px; } }

/* Composants */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.card-accent { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; border-radius: var(--r-card); }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--mute); }
.kpi-value { margin-top: 4px; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.kpi-hint { margin-top: 8px; font-size: 13px; color: var(--mute); }
.score { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; background: var(--tint); color: var(--tint-text); }
.chip .cc { opacity: 0.7; }
.chip-mute { background: #efeeea; color: var(--mute); }
.chip-warn { background: var(--warn-bg); color: var(--warn-text); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint-text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-btn); padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; transition: background 160ms; }
.btn:hover { background: var(--paper); }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.05); background: var(--grad); }
.input, select.input { border-radius: var(--r-btn); border: 1px solid var(--hairline); background: var(--card); padding: 8px 12px; font: inherit; font-size: 15px; color: var(--ink); outline: none; min-width: 0; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--mute); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.link:hover { border-bottom-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; background: var(--card); }
.seg a, .seg button { border: 0; background: none; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--mute); text-decoration: none; cursor: pointer; }
.seg .on { background: var(--tint); color: var(--tint-text); }
.seg button[disabled] { cursor: not-allowed; opacity: 0.6; }
.empty { border: 1px dashed var(--hairline); border-radius: 12px; padding: 18px; color: var(--mute); font-size: 14.5px; background: var(--paper); }
.empty .strong { color: var(--ink); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.dl dt { color: var(--mute); } .dl dd { font-weight: 600; }
.list > li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.list > li:last-child { border-bottom: 0; }
.list .cc { display: inline-block; width: 28px; margin-right: 8px; font-size: 12px; font-weight: 700; color: var(--mute); }
.boxed { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar:hover { opacity: 0.85; }
details summary { cursor: pointer; user-select: none; }
.login { max-width: 400px; margin: 80px auto; }
.login .field { margin-top: 12px; }
.login input { width: 100%; }
.errorlist { color: var(--warn-text); font-size: 14px; margin: 8px 0 0; padding: 0; list-style: none; }

/* Classes de stack */
.chip-c1 { background: #efeeea; color: var(--mute); }
.chip-c2, .chip-c3 { background: var(--tint); color: var(--tint-text); }
.chip-c4 { background: var(--warn-bg); color: var(--warn-text); }
.chip-c5 { background: #e8e6f5; color: #4c3d99; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; padding: 6px 0; }
.bar-track { height: 8px; border-radius: 999px; background: #efeeea; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--grad); }

/* Lien sortant vers le site du domaine, à côté du titre */
.ext { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--mute); transition: color 160ms; }
.ext:hover { color: var(--accent-dark); }
.ext svg { width: 0.55em; height: 0.55em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
