/* whois.mancec.fr : reprend les couleurs et la police de mancec.fr (Inter auto-hébergée, OFL). */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.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 {
  --navy-950: #060d1c;
  --navy-900: #0b1730;
  --navy-800: #11234a;
  --accent: #2dd4bf;
  --accent-strong: #0f9488;
  --bg: #f5f7fb;
  --bg-alt: #eaeef6;
  --surface: #ffffff;
  --text: #0e1a2f;
  --muted: #55627a;
  --line: #dbe1ec;
  --link: #0b7f75;
  --hit: #e3f6f3;
  --warn-bg: #fdf0d5; --warn-text: #7a4a00;
  --no-bg: #fde3e3;   --no-text: #8a1c1c;
  --chk-bg: #e7e9ef;  --chk-text: #4a5468;
  --an-bg: #e6ecfa;   --an-text: #2f4a8a;
  --shadow: 0 1px 2px rgb(14 26 47 / .06), 0 8px 24px -12px rgb(14 26 47 / .18);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070e1d; --bg-alt: #0a1427; --surface: #0f1c35; --text: #e6ebf4; --muted: #97a3ba;
    --line: #1d2d4f; --link: #5eead4; --hit: #0f2f37;
    --warn-bg: #3a2a0a; --warn-text: #f5c77a;
    --no-bg: #3a1414;   --no-text: #f3a5a5;
    --chk-bg: #1d2a44;  --chk-text: #b4bfd3;
    --an-bg: #17264a;   --an-text: #a9bdf0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); font-feature-settings: "cv11", "ss01"; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; }

/* En-tête */
.hero { background: radial-gradient(120% 140% at 85% -20%, var(--navy-800), var(--navy-950) 60%); color: #e6ebf4; padding: 1.1rem 0 1.1rem; }
.hero a { color: var(--accent); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.hero h1 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; margin-bottom: .2rem; }
.lede { color: #c3cbdb; font-size: .9rem; margin: 0; }
.home { display: inline-flex; align-items: center; gap: .45rem; flex: none; font-weight: 600; font-size: .9rem; text-decoration: none; padding: .35rem .75rem; border: 1px solid #2a3d66; border-radius: 999px; }
.home img { border-radius: 4px; }
.home:hover { background: #11234a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { margin-top: .9rem; max-width: 36rem; }
.field { position: relative; }
.field .ico { position: absolute; left: .8rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; fill: none; stroke: #97a3ba; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; font: 500 1rem var(--font); padding: .6rem .9rem .6rem 2.5rem; border-radius: 10px; border: 1px solid #2a3d66; background: #0b1730; color: #fff; }
.search input::placeholder { color: #7d8aa5; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result:empty { display: none; }
.result { margin: .5rem 0 0; font-size: .9rem; color: #e6ebf4; }

/* Tableau */
main.wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; margin-bottom: 1rem; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.35; }
th, td { text-align: left; padding: .3rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { padding-top: .5rem; padding-bottom: .5rem; position: sticky; top: 0; background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:target, tbody tr.hit { background: var(--hit); }
/* Toute la ligne mène au whois du registre : le lien de la colonne s'étend sur la ligne */
tbody tr { position: relative; }
.row-link::after { content: ""; position: absolute; inset: 0; }
tbody tr:has(.row-link):hover { background: var(--hit); }
tbody tr:has(.row-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.row-link:focus-visible { outline: none; }
/* Liens secondaires (colonne IANA, fiche IANA) au-dessus du lien étiré de la ligne */
td.col-iana a, td.lien a:not(.row-link) { position: relative; z-index: 1; }
td.col-iana { font: .85rem var(--mono); white-space: nowrap; }
.tld { font: 600 .95rem var(--mono); color: var(--text); }
.fav { display: inline-block; width: 16px; height: 16px; margin-right: .55rem; vertical-align: -.2em; border-radius: 3px; }
th[scope="row"] { white-space: nowrap; }
td.lien { white-space: nowrap; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 0 .45rem; border-radius: 999px; white-space: nowrap; }
.badge-restreint { background: var(--warn-bg); color: var(--warn-text); }
.badge-aucun { background: var(--no-bg); color: var(--no-text); }
.badge-a-verifier { background: var(--chk-bg); color: var(--chk-text); }
.badge-analyse { background: var(--an-bg); color: var(--an-text); }
.vue { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; border: 0; margin: 0 0 .6rem; padding: 0; font-size: .9rem; font-weight: 600; }
.vue label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.vue input { accent-color: var(--accent-strong); width: 1rem; height: 1rem; margin: 0; }
tr[data-statut="analyse"] { color: var(--muted); }
.empty { padding: 1rem; text-align: center; }

/* Blocs de liens */
.cards { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.card p { font-size: .9rem; margin-bottom: .6rem; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { margin: .3rem 0; }

/* Pied de page */
.foot { font-size: .85rem; border-top: 1px solid var(--line); padding-top: 1.25rem; padding-bottom: 2rem; }
.stats-optout button { font: inherit; padding: .35rem .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
