/* ==========================================================================
   NetTools FR — design system
   Thème clair/sombre, composants réutilisables, 100 % CSS natif (aucun build).
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #0891b2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --code-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -30px rgba(15, 23, 42, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 66px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1120;
  --bg-soft: #0d1526;
  --surface: #101a2e;
  --surface-2: #14203a;
  --border: #1e2c4a;
  --border-strong: #2c3f66;
  --text: #e8eefb;
  --text-soft: #c3cfe4;
  --muted: #8fa1c0;
  --primary: #3b82f6;
  --primary-strong: #60a5fa;
  --primary-soft: #16264a;
  --accent: #22d3ee;
  --success: #4ade80;
  --success-soft: #10291d;
  --warning: #fbbf24;
  --warning-soft: #2b2410;
  --danger: #f87171;
  --danger-soft: #2b1418;
  --code-bg: #0c1526;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 30px; height: 30px; display: block; }
.brand .brand-tag {
  display: none;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}
@media (min-width: 900px) { .brand .brand-tag { display: inline-block; } }

.nav-links { display: none; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }
.nav-links a {
  color: var(--text-soft);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-button:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-button svg { width: 18px; height: 18px; }

.nav-toggle { display: inline-flex; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-search-desktop { display: block; }
}
.nav-search-desktop { display: none; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 0 1.25rem;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu form { margin-top: 1rem; }

.search-inline { position: relative; }
.search-inline input {
  width: 220px;
  padding-left: 2.2rem;
}
.search-inline svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

/* --------------------------------- Boutons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------------------------------- Cartes --------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.card-title h2, .card-title h3 { margin: 0; }

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  height: 100%;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.tool-card .tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tool-card h3 { margin: 0; font-size: 1.02rem; }
.tool-card h3 a { color: var(--text); }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.tool-card .tool-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* --------------------------------- Badges --------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-pro { background: linear-gradient(135deg, #2563eb, #0891b2); color: #fff; border: none; }

/* ------------------------------- Formulaires ------------------------------ */

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

label, .label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.help-text { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.input, .select, .textarea, input[type="email"], input[type="password"], input[type="text"], input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 0.88rem; line-height: 1.5; }
.input-mono, input[type="text"].input-mono { font-family: var(--mono); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 0; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 0.15rem; }
.checkbox-row label { font-weight: 400; color: var(--text-soft); margin: 0; font-size: 0.9rem; }

/* --------------------------------- Alertes -------------------------------- */

.alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; }
.alert-info { background: var(--primary-soft); color: var(--text); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.alert-success { background: var(--success-soft); color: var(--text); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--text); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--text); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

/* --------------------------------- Tableaux ------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table td.mono, .table th.mono, .mono { font-family: var(--mono); font-size: 0.86rem; }

.result-rows { display: grid; gap: 0.35rem; }
.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.result-row dt { color: var(--muted); font-size: 0.85rem; margin: 0; font-weight: 500; }
.result-row dd { margin: 0; font-family: var(--mono); font-size: 0.9rem; font-weight: 600; word-break: break-word; text-align: right; }

pre.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
  white-space: pre;
}
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.code-head .label { margin: 0; }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60rem 22rem at 15% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent),
    radial-gradient(50rem 20rem at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
[data-theme="dark"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem); color: var(--text-soft); max-width: 62ch; }
.hero .btn-group { margin-top: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; }

.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 68ch; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ------------------------------ Outil : layout ---------------------------- */

.tool-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .tool-layout { grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); align-items: start; } }
.tool-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; list-style: none; padding: 0; }
.breadcrumbs li { display: flex; gap: 0.4rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--surface);
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq details[open] summary { margin-bottom: 0.5rem; color: var(--primary); }
.faq p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

.prose { color: var(--text-soft); font-size: 0.98rem; }
.prose h2 { margin-top: 1.6em; color: var(--text); }
.prose h3 { margin-top: 1.3em; color: var(--text); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--code-bg); padding: 0.12em 0.35em; border-radius: 5px; }
.prose pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; }
.prose th { background: var(--surface-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }

.toc { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.toc li { margin-bottom: 0.4rem; }

.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat {
  flex: 1 1 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat .stat-value { font-size: 1.5rem; font-weight: 800; font-family: var(--mono); }
.stat .stat-label { font-size: 0.8rem; color: var(--muted); }

/* -------------------------------- Pro / prix ------------------------------ */

.price-grid { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}
.price-card.highlight { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.price-card.highlight::before {
  content: "Recommandé";
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { color: var(--muted); font-size: 0.86rem; margin-top: -0.5rem; }
.price-features { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.5rem; }
.price-features li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-soft); }
.price-features svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.2rem; color: var(--success); }
.price-features li.muted svg { color: var(--muted); }

/* --------------------------------- Footer --------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-grid { display: grid; gap: 1.8rem; padding: 2.5rem 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--text-soft); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------------------------------- Divers -------------------------------- */

.ad-slot { margin: 1.4rem 0; text-align: center; }
.ad-slot .ad-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.ad-placeholder { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 0.9rem; color: var(--muted); font-size: 0.82rem; }
.adcash-zone { min-height: 60px; }
.adcash-zone:empty { min-height: 0; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; margin-bottom: 0.8rem; opacity: 0.7; }

.prose-inline { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 1.8rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.6rem; } .mb-2 { margin-bottom: 1.2rem; }
.hr { border: none; border-top: 1px solid var(--border); margin: 1.6rem 0; }

.copy-button { position: relative; }
.copy-feedback { color: var(--success); font-size: 0.8rem; font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 2.6rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.pagination .current { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 700; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-region[aria-busy="true"] { opacity: 0.55; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .btn, .tool-side { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #999; box-shadow: none; }
}

@media (max-width: 480px) {
  .container, .container-narrow { width: calc(100% - 1.6rem); }
  .card { padding: 1.05rem; }
  .btn { width: 100%; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .result-row dd { text-align: left; width: 100%; }
}

/* ------------------------------------------------------------------ Icônes */
/* Taille par défaut des icônes SVG inline : évite qu'un SVG sans contrainte
   ne prenne la taille de repli du navigateur (300x150) dans une liste ou un
   paragraphe. Les règles plus spécifiques (.btn svg, .badge svg…) restent
   prioritaires. */
.icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  vertical-align: -0.16em;
}

/* Listes de liens avec icônes (accès rapide, liens associés) */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.link-list li { margin: 0; }
.link-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.35;
}
.link-list a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.link-list a .icon { margin-top: 0.15em; }

/* ------------------------------------------------------- Navigation mobile */
/* Le bouton « Passer à Pro » et le menu compte s'affichent en version courte
   pour éviter tout débordement de la barre de navigation sur petit écran. */
.nav-pro-short { display: none; }

@media (max-width: 640px) {
  .nav { gap: 0.5rem; }
  .nav-actions { gap: 0.3rem; }
  .nav .btn { width: auto; }
  .nav .btn-sm { padding: 0.45rem 0.6rem; font-size: 0.88rem; }
  .nav .btn svg { width: 16px; height: 16px; }
  .nav-user-label { display: none; }
  .nav-pro-long { display: none; }
  .nav-pro-short { display: inline; }
  .brand { font-size: 0.98rem; }
  .icon-button { width: 34px; height: 34px; }
}
