/* ═══════════════════════════════════════════════════════
   tools.e-voir.fr — Shared stylesheet
   Accent color: set --ac on :root in each page
   ═══════════════════════════════════════════════════════ */

:root { --ac: #10b981; }
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-size: 15px; }
code { font-family: 'Courier New', monospace; }

/* ── Background ────────────────────────────────────────── */
.lx-bg {
  flex: 1;
  background: linear-gradient(135deg, #050d0a 0%, #0a1a12 40%, #0d0b1a 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 50px 20px 80px;
  position: relative; overflow: hidden;
}
.lx-bg::after {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.50), transparent),
    radial-gradient(1.5px 1.5px at 25% 70%, rgba(255,255,255,.40), transparent),
    radial-gradient(1px 1px at 42% 8%,  rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 58% 52%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px at 73% 20%, rgba(255,255,255,.40), transparent),
    radial-gradient(1.5px 1.5px at 87% 65%, rgba(255,255,255,.50), transparent),
    radial-gradient(1px 1px at 6%  82%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 91% 12%, rgba(255,255,255,.32), transparent),
    radial-gradient(1.5px 1.5px at 80% 42%, rgba(255,255,255,.40), transparent),
    radial-gradient(1px 1px at 33% 35%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 60% 88%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,.25), transparent);
}
.lx-orb { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.lx-orb1 { width: 540px; height: 540px; top: -130px; left: -150px; background: radial-gradient(circle, #065f46, transparent 70%); opacity: .6; }
.lx-orb2 { width: 460px; height: 460px; bottom: -110px; right: -110px; background: radial-gradient(circle, #4c1d95, transparent 70%); opacity: .55; }
.lx-orb3 { width: 340px; height: 340px; top: 35%; left: 50%; background: radial-gradient(circle, #0f766e, transparent 70%); opacity: .30; }

/* ── Layout ─────────────────────────────────────────────── */
.lx-wrap { position: relative; z-index: 10; width: 100%; max-width: 860px; }
.lx-wrap-wide { max-width: 1100px; }

/* ── Animation ──────────────────────────────────────────── */
@keyframes lx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lx-pulse-ac {
  0%,100% { box-shadow: 0 6px 22px color-mix(in srgb, var(--ac) 35%, transparent); }
  50%      { box-shadow: 0 6px 32px color-mix(in srgb, var(--ac) 55%, transparent), 0 0 40px color-mix(in srgb, var(--ac) 20%, transparent); }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.lx-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #3d7a60;
  margin-bottom: 30px;
  animation: lx-up .5s ease both;
}
.lx-breadcrumb a { color: #3d7a60; text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .15s; }
.lx-breadcrumb a:hover { color: #6ee7b7; }
.lx-breadcrumb .sep { font-size: 10px; color: #2d5443; }

/* ── Card ────────────────────────────────────────────────── */
.lx-card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  padding: 44px 48px 40px;
  backdrop-filter: blur(32px);
  box-shadow: 0 32px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  animation: lx-up .7s cubic-bezier(.34,1.2,.64,1) both .08s;
}
.lx-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ac), #7c3aed, color-mix(in srgb, var(--ac) 60%, #0f766e));
  pointer-events: none; z-index: 2;
}
.lx-card::after {
  content: ''; position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 8%, transparent), transparent 70%);
  pointer-events: none;
}

/* ── Tool header ─────────────────────────────────────────── */
.lx-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.lx-head-icon {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 40%, #7c3aed));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ac) 35%, transparent);
}
.lx-head-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ac);
  background: color-mix(in srgb, var(--ac) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac) 22%, transparent);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.lx-head-title    { font-size: 26px; font-weight: 800; color: #f0fdf4; letter-spacing: -.025em; line-height: 1.1; }
.lx-head-title-fr { font-size: 15px; color: #4b7c6a; font-weight: 500; margin-top: 4px; font-style: italic; }
.lx-head-sub-en   { font-size: 15px; color: #94a3b8; margin-top: 8px; line-height: 1.55; }
.lx-head-sub-fr   { font-size: 13px; color: #3d5c51; margin-top: 4px; line-height: 1.5; font-style: italic; }

/* ── Form ────────────────────────────────────────────────── */
.lx-form { display: flex; flex-direction: column; gap: 20px; }
.lx-field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}
.lx-field-label i { font-size: 12px; color: var(--ac); }
.lx-field-label .fr { font-style: italic; color: #3d5c51; font-weight: 500; text-transform: none; letter-spacing: 0; }

.lx-input-row { display: flex; gap: 10px; }
.lx-input-row input,
.lx-input-solo {
  flex: 1; padding: 13px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  color: #e2e8f0; font-size: 15px; font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.lx-input-row input::placeholder,
.lx-input-solo::placeholder { color: #2d4a3e; }
.lx-input-row input:focus,
.lx-input-solo:focus {
  border-color: color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 10%, transparent);
}

.lx-btn {
  padding: 13px 22px;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 75%, #000));
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ac) 35%, transparent);
  transition: filter .15s; font-family: inherit; white-space: nowrap;
  animation: lx-pulse-ac 2.8s ease-in-out infinite;
}
.lx-btn:hover { filter: brightness(1.10); }
.lx-btn:disabled { opacity: .55; cursor: default; animation: none; }

/* ── Results zone ────────────────────────────────────────── */
.lx-results { margin-top: 24px; display: none; }

.lx-rbox { border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.lx-rbox-ok   { background: rgba(16,185,129,.07);  border: 1px solid rgba(16,185,129,.20); }
.lx-rbox-warn { background: rgba(245,158,11,.07);  border: 1px solid rgba(245,158,11,.20); }
.lx-rbox-err  { background: rgba(239,68,68,.08);   border: 1px solid rgba(239,68,68,.18); }
.lx-rbox-info { background: rgba(99,102,241,.07);  border: 1px solid rgba(99,102,241,.18); }

.lx-rbox-header { display: flex; align-items: center; gap: 12px; }
.lx-rbox-header > i { font-size: 22px; flex-shrink: 0; }
.lx-rbox-ok   .lx-rbox-header > i { color: #34d399; }
.lx-rbox-warn .lx-rbox-header > i { color: #fbbf24; }
.lx-rbox-err  .lx-rbox-header > i { color: #f87171; }
.lx-rbox-info .lx-rbox-header > i { color: #818cf8; }

.lx-rbox-title-en { font-size: 17px; font-weight: 800; color: #f1f5f9; letter-spacing: -.01em; }
.lx-rbox-title-fr { font-size: 13px; color: #6b7280; margin-top: 2px; font-style: italic; }
.lx-rbox-sub-en   { font-size: 14px; color: #94a3b8; margin-top: 4px; line-height: 1.55; }
.lx-rbox-sub-fr   { font-size: 13px; color: #4b7c6a; margin-top: 2px; font-style: italic; line-height: 1.5; }

/* ── Badges ──────────────────────────────────────────────── */
.lx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.lx-badge-ok     { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.25); }
.lx-badge-warn   { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.lx-badge-err    { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.22); }
.lx-badge-info   { background: rgba(96,165,250,.12); color: #93c5fd; border: 1px solid rgba(96,165,250,.22); }
.lx-badge-neutral{ background: rgba(255,255,255,.06);color: #94a3b8; border: 1px solid rgba(255,255,255,.10); }

/* ── Chips ───────────────────────────────────────────────── */
.lx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: 'Courier New', monospace;
}
.lx-chip-plain  { background: rgba(239,68,68,.13);  color: #fca5a5; border: 1px solid rgba(239,68,68,.22); }
.lx-chip-obfus  { background: rgba(245,158,11,.10); color: #fcd34d; border: 1px solid rgba(245,158,11,.20); }
.lx-chip-ok     { background: rgba(16,185,129,.10); color: #6ee7b7; border: 1px solid rgba(16,185,129,.20); }
.lx-chip-info   { background: rgba(96,165,250,.10); color: #93c5fd; border: 1px solid rgba(96,165,250,.18); }
.lx-chip-neutral{ background: rgba(255,255,255,.05);color: #94a3b8; border: 1px solid rgba(255,255,255,.08); }
.lx-chip-group  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ── Key-value fields ────────────────────────────────────── */
.lx-fields { display: flex; flex-direction: column; gap: 6px; }
.lx-field-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 14px; border-radius: 8px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.lx-field-key { color: #64748b; font-weight: 600; min-width: 140px; flex-shrink: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.lx-field-val { color: #e2e8f0; word-break: break-all; }
.lx-mono { font-family: 'Courier New', monospace; font-size: 13px; }

/* ── Section title inside results ────────────────────────── */
.lx-section-title {
  font-size: 13px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: .09em;
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 10px;
}
.lx-section-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.05); }

/* ── Checklist ───────────────────────────────────────────── */
.lx-checks { display: flex; flex-direction: column; gap: 7px; }
.lx-check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
}
.lx-check-item .ci-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.lx-check-item .ci-icon.ok   { color: #34d399; }
.lx-check-item .ci-icon.warn { color: #fbbf24; }
.lx-check-item .ci-icon.err  { color: #f87171; }
.lx-check-item .ci-icon.info { color: #93c5fd; }
.lx-check-item .ci-name-en { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.lx-check-item .ci-name-fr { font-size: 13px; color: #4b7c6a; font-style: italic; margin-top: 2px; }
.lx-check-item .ci-detail  { font-size: 13px; color: #64748b; margin-top: 3px; font-family: 'Courier New', monospace; word-break: break-all; }

/* ── Redirect chain ──────────────────────────────────────── */
.lx-chain { display: flex; flex-direction: column; gap: 4px; }
.lx-chain-step {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.lx-chain-code {
  flex-shrink: 0; width: 44px; text-align: center;
  font-weight: 800; font-size: 14px; border-radius: 6px; padding: 2px 6px;
}
.lx-chain-code.c2 { background: rgba(16,185,129,.15);  color: #34d399; }
.lx-chain-code.c3 { background: rgba(245,158,11,.15);  color: #fbbf24; }
.lx-chain-code.c4 { background: rgba(239,68,68,.15);   color: #f87171; }
.lx-chain-url  { color: #94a3b8; word-break: break-all; flex: 1; }
.lx-chain-final { border-color: rgba(16,185,129,.25); }
.lx-chain-arrow { text-align: center; color: #2d4a3e; font-size: 13px; }

/* ── Timing bars ─────────────────────────────────────────── */
.lx-bars { display: flex; flex-direction: column; gap: 8px; }
.lx-bar { display: flex; align-items: center; gap: 10px; }
.lx-bar-label { font-size: 13px; color: #64748b; font-weight: 600; min-width: 44px; text-align: right; }
.lx-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.lx-bar-fill  { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.34,1,.64,1); min-width: 4px; background: var(--ac); }
.lx-bar-val   { font-size: 13px; color: #94a3b8; font-weight: 600; min-width: 50px; font-family: 'Courier New', monospace; }

/* ── DNS records ─────────────────────────────────────────── */
.lx-dns-type {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 5px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em;
  background: rgba(96,165,250,.12); color: #93c5fd; border: 1px solid rgba(96,165,250,.20);
  flex-shrink: 0;
}
.lx-dns-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
  font-size: 13px; color: #94a3b8; flex-wrap: wrap;
}
.lx-dns-val { color: #e2e8f0; font-family: 'Courier New', monospace; word-break: break-all; }
.lx-dns-meta { color: #475569; font-size: 12px; }

/* ── Meta preview ────────────────────────────────────────── */
.lx-preview-google {
  background: #fff; border-radius: 12px; padding: 16px 18px;
  font-family: Arial, sans-serif;
}
.lx-pg-url   { font-size: 13px; color: #202124; margin-bottom: 2px; }
.lx-pg-title { font-size: 20px; color: #1a0dab; font-weight: 400; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lx-pg-desc  { font-size: 15px; color: #4d5156; line-height: 1.5; }

.lx-preview-social {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.lx-ps-img {
  width: 100%; height: 180px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: #475569; font-size: 32px; border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.lx-ps-img img { width: 100%; height: 100%; object-fit: cover; }
.lx-ps-body { padding: 14px 16px; }
.lx-ps-site  { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.lx-ps-title { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 5px; }
.lx-ps-desc  { font-size: 14px; color: #64748b; line-height: 1.45; }

/* ── Info section ────────────────────────────────────────── */
.lx-info {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 12px;
}
.lx-info-title {
  font-size: 13px; font-weight: 700; color: #3d7a60;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 4px;
}
.lx-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04);
}
.lx-info-item > i   { font-size: 15px; color: var(--ac); flex-shrink: 0; margin-top: 2px; }
.lx-info-item-en    { font-size: 14px; color: #64748b; line-height: 1.6; }
.lx-info-item-fr    { font-size: 13px; color: #2d4a3e; margin-top: 4px; font-style: italic; line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────── */
.lx-footer { margin-top: 28px; text-align: center; font-size: 13px; color: #2d5443; }
.lx-footer a { color: #3d7a60; text-decoration: none; transition: color .15s; }
.lx-footer a:hover { color: #6ee7b7; }

/* ── History chips ───────────────────────────────────────── */
.lx-hist-bar {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 8px;
}
.lx-hist-label { font-size: 11px; color: #3d7a60; flex-shrink: 0; }
.lx-hist-chip {
  font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.18);
  color: #4b9e78; cursor: pointer; transition: all .15s;
  font-family: inherit; white-space: nowrap; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis;
}
.lx-hist-chip:hover { background: rgba(16,185,129,.14); color: #6ee7b7; border-color: rgba(16,185,129,.4); }

/* ── Share result ─────────────────────────────────────────── */
.lx-share-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.lx-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc; cursor: pointer; transition: all .15s; font-family: inherit;
}
.lx-share-btn:hover { background: rgba(99,102,241,.2); color: #c7d2fe; }
.lx-share-link {
  font-size: 12px; color: #6ee7b7; font-family: monospace;
  background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.15);
  border-radius: 6px; padding: 4px 10px; word-break: break-all; flex: 1;
}
.lx-share-copy {
  padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7; cursor: pointer; transition: all .15s; font-family: inherit;
}
.lx-share-copy:hover { background: rgba(16,185,129,.2); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 540px) {
  .lx-card { padding: 28px 22px 26px; }
  .lx-input-row { flex-direction: column; }
  .lx-btn { width: 100%; justify-content: center; }
  .lx-field-row { flex-direction: column; gap: 3px; }
  .lx-field-key { min-width: unset; }
  .lx-chain-step { flex-wrap: wrap; }
}
