/* Centre d'aide TarifPing : mêmes couleurs que l'application (sombre par défaut, clair selon le système) */
:root {
  --bg: #0b1220; --card: #131c2f; --line: #24304a; --text: #e8eefc; --muted: #93a1c0;
  --accent: #22d3a6; --accent-ink: #04130e; --tip: #1b2a24; --tip-line: #22d3a6; --warn: #2a2414; --warn-line: #f5b83d;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb; --card: #ffffff; --line: #dfe4ee; --text: #14203a; --muted: #5b6883;
    --accent: #0e8f72; --accent-ink: #ffffff; --tip: #e8f7f2; --tip-line: #12a383; --warn: #fff6e3; --warn-line: #d99a1a;
    --shadow: 0 10px 30px rgba(20, 32, 58, .10);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* en-tête */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--muted); font-weight: 600; }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-inline-start: auto; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 10px 18px; border-radius: 10px; text-decoration: none; }

/* contenu */
main { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
main.wide { max-width: 1120px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: 1.45rem; margin: 48px 0 10px; letter-spacing: -.01em; scroll-margin-top: 80px; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; }
.lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 24px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-inline-start: 46px; margin: 18px 0; }
ol.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }

figure { margin: 18px 0 26px; }
figure img { display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
figure.small img { max-width: 360px; }
figure.mid img { max-width: 620px; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }

.tip, .warn { border-inline-start: 4px solid var(--tip-line); background: var(--tip); padding: 12px 16px; border-radius: 10px; margin: 18px 0; }
.warn { border-color: var(--warn-line); background: var(--warn); }
.tip b:first-child, .warn b:first-child { display: block; margin-bottom: 2px; }
kbd, code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* accueil */
.hero { text-align: center; padding: 30px 0 10px; }
.hero .lead { max-width: 640px; margin: 0 auto 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .ico { font-size: 1.6rem; }
.card h2 { font-size: 1.1rem; margin: 8px 0 4px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.sites { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.sites span { font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--card); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 2px; color: var(--muted); }

.next { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 22px 16px; display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 640px) { body { font-size: 16px; } .top { position: static; } .top nav { margin-inline-start: 0; width: 100%; } }

/* langues : sélecteur dans l'en-tête, liste dans le pied de page ; écritures non latines et droite à gauche */
body { font-family: "Plus Jakarta Sans", "Noto Sans", "Noto Sans Hebrew", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }
footer .langs { display: flex; flex-wrap: wrap; gap: 4px 12px; width: 100%; font-size: .85rem; }
footer .langs a[aria-current] { color: var(--text); text-decoration: none; font-weight: 700; }
[dir="rtl"] figure img { direction: ltr; }
