/* Laptek Tools — design system partagé (site laptek-informatique.fr) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --lt-bg: #0a0a0f;
  --lt-bg2: #0f0f18;
  --lt-bg3: #111118;
  --lt-surface: rgba(255, 255, 255, 0.03);
  --lt-border: rgba(220, 38, 38, 0.12);
  --lt-border-strong: rgba(220, 38, 38, 0.25);
  --lt-gold: #dc2626;
  --lt-gold-light: #f87171;
  --lt-gold-dim: rgba(220, 38, 38, 0.1);
  --lt-metal: #94a3b8;
  --lt-metal-light: #cbd5e1;
  --lt-cyan: #22d3ee;
  --lt-text: #f5f3ee;
  --lt-muted: #b0b0c4;
  --lt-muted2: #7a7a8e;
  --lt-ok: #4ade80;
  --lt-warn: #f87171;
  --lt-bad: #fb7185;
  --lt-nav-h: 56px;
  --lt-radius: 12px;
  --lt-radius-lg: 16px;
  --lt-touch: 44px;
  --lt-font: "Montserrat", system-ui, sans-serif;
  --lt-display: "Cormorant Garamond", Georgia, serif;
  --lt-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --lt-safe-b: env(safe-area-inset-bottom, 0px);
  --lt-safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body.lt-body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--lt-font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lt-muted);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(220, 38, 38, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 10% 100%, rgba(34, 211, 238, 0.04), transparent),
    var(--lt-bg);
  padding-bottom: calc(var(--lt-safe-b) + 72px);
}

@media (min-width: 768px) {
  body.lt-body { padding-bottom: 0; font-size: 15px; }
}

/* ── Header ── */
.lt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--lt-nav-h);
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  padding-top: max(8px, var(--lt-safe-t));
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lt-border);
}

.lt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lt-text);
  min-width: 0;
}

.lt-brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--lt-bg2);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.35);
}

.lt-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-brand-text { min-width: 0; }

.lt-brand-title {
  font-family: var(--lt-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-brand-sub {
  font-size: 10px;
  color: var(--lt-muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--lt-touch);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lt-gold-light);
  border: 1px solid var(--lt-border-strong);
  transition: background 0.15s, color 0.15s;
}

.lt-link:hover { background: var(--lt-gold-dim); color: var(--lt-text); }

.lt-link--ghost { border-color: transparent; color: var(--lt-muted2); }
.lt-link--ghost:hover { border-color: var(--lt-border); color: var(--lt-gold-light); }

@media (max-width: 480px) {
  .lt-link span.lt-link-label { display: none; }
}

/* ── Layout ── */
.lt-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .lt-wrap { padding: 24px 24px 32px; }
}

.lt-hero {
  margin-bottom: 20px;
}

.lt-hero h1 {
  margin: 0 0 8px;
  font-family: var(--lt-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--lt-text);
  line-height: 1.2;
}

.lt-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--lt-muted2);
  max-width: 52ch;
}

.lt-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-gold-light);
  background: var(--lt-gold-dim);
  border: 1px solid var(--lt-border);
}

.lt-badge--local::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lt-ok);
}

/* ── Steps ── */
.lt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .lt-steps { grid-template-columns: repeat(2, 1fr); }
}

.lt-step {
  padding: 10px 12px;
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  text-align: center;
}

.lt-step-num {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lt-gold);
  margin-bottom: 2px;
}

.lt-step-label {
  font-size: 11px;
  color: var(--lt-muted2);
}

.lt-step.is-active {
  border-color: var(--lt-border-strong);
  background: var(--lt-gold-dim);
}

.lt-step.is-active .lt-step-label { color: var(--lt-text); }

/* ── Grid ── */
.lt-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .lt-grid--2 { grid-template-columns: 1.1fr 0.9fr; }
}

/* ── Card ── */
.lt-card {
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius);
  padding: 16px;
}

@media (min-width: 640px) {
  .lt-card { padding: 20px; }
}

.lt-card-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lt-text);
}

.lt-card-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--lt-muted2);
}

/* ── Collapsible (mobile) ── */
.lt-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--lt-touch);
  padding: 0;
  background: none;
  border: none;
  color: var(--lt-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.lt-collapse-toggle svg { transition: transform 0.2s; color: var(--lt-gold); }
.lt-collapse.is-open .lt-collapse-toggle svg { transform: rotate(180deg); }

.lt-collapse-body {
  display: none;
  padding-top: 12px;
}

.lt-collapse.is-open .lt-collapse-body { display: block; }

@media (min-width: 768px) {
  .lt-collapse--mobile-only .lt-collapse-toggle { display: none; }
  .lt-collapse--mobile-only .lt-collapse-body { display: block !important; padding-top: 0; }
}

/* ── Form controls ── */
.lt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lt-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--lt-border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}

.lt-pill strong { color: var(--lt-text); font-weight: 500; }

.lt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lt-muted2);
  cursor: pointer;
}

.lt-input,
.lt-input[type="number"],
.lt-input[type="text"] {
  background: var(--lt-bg2);
  border: 1px solid var(--lt-border);
  color: var(--lt-text);
  padding: 10px 12px;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
  min-height: var(--lt-touch);
}

.lt-input:focus { border-color: var(--lt-border-strong); }

.lt-input--sm {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
  width: 80px;
}

@media (min-width: 640px) {
  .lt-input--sm {
    min-height: 36px;
    padding: 6px 10px;
  }
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lt-gold);
}

/* ── Buttons ── */
.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--lt-touch);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--lt-border-strong);
  background: var(--lt-gold-dim);
  color: var(--lt-gold-light);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.lt-btn:hover:not(:disabled) { background: rgba(220, 38, 38, 0.15); color: var(--lt-text); }

.lt-btn--primary {
  background: var(--lt-gold);
  color: var(--lt-bg);
  border-color: var(--lt-gold);
}

.lt-btn--primary:hover:not(:disabled) { background: var(--lt-gold-light); }

.lt-btn--ok {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--lt-ok);
}

.lt-btn--warn {
  background: rgba(232, 201, 122, 0.1);
  border-color: rgba(232, 201, 122, 0.35);
  color: var(--lt-warn);
}

.lt-btn--bad {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--lt-bad);
}

.lt-btn--block { width: 100%; }

.lt-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.lt-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .lt-btn-group--stack { flex-direction: column; }
  .lt-btn-group--stack .lt-btn { width: 100%; }
}

/* ── Drop zone ── */
.lt-drop {
  border: 2px dashed var(--lt-border-strong);
  border-radius: var(--lt-radius-lg);
  padding: 24px 16px;
  background: rgba(15, 15, 24, 0.5);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.lt-drop.dragover {
  border-color: var(--lt-ok);
  background: rgba(74, 222, 128, 0.05);
}

.lt-drop-title { font-weight: 500; color: var(--lt-text); font-size: 15px; }

/* ── Progress ── */
.lt-progress-wrap { width: 100%; }

.lt-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--lt-border);
  background: rgba(255, 255, 255, 0.04);
}

.lt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lt-metal-light), var(--lt-gold-light), var(--lt-gold));
  transition: width 0.15s ease;
}

.lt-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--lt-muted2);
}

/* ── Table (desktop) ── */
.lt-table-wrap {
  max-height: min(520px, 50dvh);
  overflow: auto;
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius);
  -webkit-overflow-scrolling: touch;
}

.lt-table { width: 100%; border-collapse: collapse; }

.lt-table th,
.lt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--lt-border);
  font-size: 12px;
  vertical-align: top;
  text-align: left;
}

.lt-table th {
  position: sticky;
  top: 0;
  background: var(--lt-bg2);
  color: var(--lt-muted2);
  font-weight: 500;
  z-index: 2;
}

.lt-mono { font-family: var(--lt-mono); font-size: 11px; word-break: break-all; }

.status-ok { color: var(--lt-ok); }
.status-warn { color: var(--lt-warn); }
.status-bad { color: var(--lt-bad); }
.muted { color: var(--lt-muted2); }
.tiny { font-size: 11px; color: var(--lt-muted2); }

/* ── Mobile cards (basket) ── */
.lt-file-cards { display: none; gap: 10px; flex-direction: column; }

@media (max-width: 767px) {
  .lt-table-desktop { display: none; }
  .lt-file-cards { display: flex; }
}

.lt-file-card {
  padding: 12px;
  border: 1px solid var(--lt-border);
  background: var(--lt-bg2);
  border-radius: var(--lt-radius);
}

.lt-file-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lt-file-card-name {
  flex: 1;
  font-family: var(--lt-mono);
  font-size: 11px;
  color: var(--lt-text);
  word-break: break-all;
}

.lt-file-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  font-size: 10px;
}

.lt-file-card-meta span { color: var(--lt-muted2); }
.lt-file-card-meta strong { display: block; color: var(--lt-muted); font-weight: 500; }

/* ── Sticky mobile bar ── */
.lt-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + var(--lt-safe-b)) max(16px, env(safe-area-inset-right));
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lt-border);
  gap: 8px;
}

@media (max-width: 767px) {
  .lt-mobile-bar { display: flex; }
  .lt-mobile-bar .lt-btn { flex: 1; padding: 12px 8px; font-size: 10px; }
}

/* ── Modal ── */
.lt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  z-index: 9999;
}

@media (min-width: 640px) {
  .lt-modal-overlay {
    align-items: center;
    padding: 18px;
  }
}

.lt-modal-overlay.is-open { display: flex; }

.lt-modal {
  width: 100%;
  max-width: 760px;
  max-height: 90dvh;
  overflow: auto;
  background: var(--lt-bg2);
  border: 1px solid var(--lt-border-strong);
  border-radius: var(--lt-radius-lg) var(--lt-radius-lg) 0 0;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .lt-modal { border-radius: var(--lt-radius-lg); }
}

.lt-modal h2 {
  margin: 0;
  font-family: var(--lt-display);
  font-size: 1.25rem;
  color: var(--lt-text);
}

.lt-modal pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--lt-bg);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius);
  padding: 12px;
  margin: 12px 0 0;
  color: var(--lt-muted);
  font-size: 12px;
  font-family: var(--lt-mono);
}

/* ── Docs page ── */
.lt-docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.lt-docs-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--lt-border);
}

.lt-docs-section:last-child { border-bottom: none; }

.lt-docs-section h2 {
  font-family: var(--lt-display);
  font-size: 1.5rem;
  color: var(--lt-text);
  margin: 0 0 12px;
}

.lt-docs-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--lt-gold-light);
  margin: 20px 0 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lt-docs-section p,
.lt-docs-section li {
  font-size: 14px;
  color: var(--lt-muted);
}

.lt-docs-section ul { padding-left: 1.25rem; }

.lt-docs-section code {
  font-family: var(--lt-mono);
  font-size: 12px;
  background: var(--lt-bg2);
  padding: 2px 6px;
  border: 1px solid var(--lt-border);
  color: var(--lt-gold-light);
}

.lt-tool-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--lt-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.lt-tool-card:hover {
  border-color: var(--lt-border-strong);
  background: var(--lt-gold-dim);
}

.lt-tool-card h3 {
  margin: 0 0 6px;
  font-family: var(--lt-display);
  color: var(--lt-text);
  font-size: 1.2rem;
}

.lt-tool-card p { margin: 0; font-size: 13px; }

/* ── Capture overrides (Tailwind companion) ── */
.lt-capture-theme body,
body.lt-capture {
  background: var(--lt-bg) !important;
  color: var(--lt-muted) !important;
}

/* ── Formulaires contact (laptek-form.js) ── */
.laptek-contact-form {
  max-width: 520px;
  margin-top: 1.5rem;
  padding: 1.25rem;
  display: grid;
  gap: 12px;
  background: var(--lt-bg2);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius-lg);
}

.laptek-contact-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-muted2);
}

.laptek-contact-form input,
.laptek-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--lt-font);
  color: var(--lt-text);
  background: var(--lt-bg);
  border: 1px solid var(--lt-border);
  border-radius: 10px;
  outline: none;
}

.laptek-contact-form input:focus,
.laptek-contact-form textarea:focus {
  border-color: var(--lt-border-strong);
}

.laptek-contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.laptek-contact-form button[type="submit"] {
  min-height: var(--lt-touch);
  padding: 12px 20px;
  font-family: var(--lt-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: var(--lt-gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.laptek-contact-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
}

.send-fx {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.send-fx.show {
  opacity: 1;
  pointer-events: auto;
}

.send-fx-core {
  text-align: center;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.send-fx.show .send-fx-core {
  transform: scale(1);
  opacity: 1;
}

.send-fx-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.25);
  animation: lt-send-pulse 0.6s ease 0.1s both;
}

.send-fx-title {
  font-family: var(--lt-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lt-text);
  margin-bottom: 0.35rem;
}

.send-fx-sub {
  font-size: 13px;
  color: var(--lt-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

.send-fx-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  opacity: 0;
  animation: lt-send-burst 0.75s ease forwards;
}

@keyframes lt-send-pulse {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes lt-send-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.4); }
}

/* ── PDF Laptek — hub premium ── */
.lt-pdf-page .lt-pdf-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lt-pdf-page .lt-pdf-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.lt-pdf-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-gold);
}

.lt-pdf-lead {
  margin: 0 auto 1rem !important;
  max-width: 42ch !important;
  font-size: 14px !important;
  color: var(--lt-muted) !important;
}

.lt-pdf-badges {
  justify-content: center;
}

.lt-pdf-hub {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.lt-pdf-cat-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lt-muted2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lt-border);
}

.lt-pdf-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .lt-pdf-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .lt-pdf-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.lt-pdf-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  padding: 22px 14px 18px;
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--lt-radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 15, 24, 0.9) 100%);
  color: var(--lt-muted);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.lt-pdf-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(220, 38, 38, 0.12);
  background: linear-gradient(165deg, rgba(220, 38, 38, 0.08) 0%, rgba(15, 15, 24, 0.95) 100%);
}

.lt-pdf-tool-card:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.55);
  outline-offset: 2px;
}

.lt-pdf-tool-card--featured {
  grid-column: span 2;
  min-height: 180px;
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.12) 0%, rgba(17, 17, 24, 0.95) 55%);
}

@media (min-width: 640px) {
  .lt-pdf-tool-card--featured {
    grid-column: span 1;
  }
}

@media (min-width: 960px) {
  .lt-pdf-tool-card--featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 18px;
    padding: 24px 28px;
    min-height: 120px;
  }

  .lt-pdf-tool-card--featured .lt-pdf-tool-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

  .lt-pdf-tool-card--featured .lt-pdf-tool-name {
    font-size: 1.1rem;
  }
}

.lt-pdf-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--lt-gold-light);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22) 0%, rgba(34, 211, 238, 0.08) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lt-pdf-tool-icon svg {
  width: 26px;
  height: 26px;
}

.lt-pdf-tool-name {
  display: block;
  color: var(--lt-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.lt-pdf-tool-desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--lt-muted2);
  max-width: 22ch;
}

.lt-pdf-workspace {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px !important;
}

.lt-pdf-back { margin-bottom: 1rem; }

.lt-pdf-drop { margin-top: 1rem; cursor: pointer; }
.lt-pdf-drop.is-over { border-color: var(--lt-gold); background: var(--lt-gold-dim); }

.lt-pdf-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.lt-pdf-file {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius);
  background: var(--lt-bg2);
}

.lt-pdf-file-name {
  flex: 1;
  min-width: 120px;
  color: var(--lt-text);
  font-size: 13px;
  word-break: break-all;
}

.lt-pdf-file button {
  border: 1px solid var(--lt-border);
  background: transparent;
  color: var(--lt-warn);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
}

.lt-pdf-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.lt-pdf-fields .lt-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-muted2);
}

.lt-pdf-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lt-pdf-thumb {
  position: relative;
  border: 1px solid var(--lt-border);
  border-radius: 8px;
  background: var(--lt-bg3);
  padding: 6px;
  cursor: grab;
}

.lt-pdf-thumb.is-dragging { opacity: 0.5; }

.lt-pdf-thumb canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.lt-pdf-thumb-num {
  font-size: 10px;
  color: var(--lt-muted2);
  margin-bottom: 4px;
}

.lt-pdf-thumb-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.lt-pdf-thumb-actions button {
  flex: 1;
  min-height: 32px;
  border: 1px solid var(--lt-border);
  background: var(--lt-bg);
  color: var(--lt-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.lt-pdf-actions {
  margin-top: 24px;
}

.lt-pdf-actions .lt-btn--ok {
  width: 100%;
  min-height: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lt-pdf-status {
  margin-top: 14px;
  font-size: 13px;
  min-height: 1.4em;
  text-align: center;
}

.lt-pdf-status.is-ok { color: var(--lt-ok); }
.lt-pdf-status.is-err { color: var(--lt-bad); }
.lt-pdf-status.is-info { color: var(--lt-cyan); }

body.lt-pdf-busy .lt-pdf-drop,
body.lt-pdf-busy .lt-pdf-tool-card { pointer-events: none; opacity: 0.7; }

.lt-footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem calc(1.5rem + var(--lt-safe-b));
  text-align: center;
  font-size: 12px;
  color: var(--lt-muted2);
  border-top: 1px solid var(--lt-border);
}

.lt-footer a { color: var(--lt-gold-light); }

/* ── Éditeur PDF ── */
.lt-pdf-editor {
  margin-top: 1.25rem;
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius-lg);
  background: rgba(15, 15, 24, 0.85);
  padding: 16px;
}

.lt-pdf-editor-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.lt-pdf-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--lt-border);
}

.lt-pdf-seg-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lt-muted2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.lt-pdf-seg-btn:hover {
  color: var(--lt-text);
  background: rgba(255, 255, 255, 0.04);
}

.lt-pdf-seg-btn.is-active {
  background: var(--lt-gold);
  color: #0a0a0f;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.lt-pdf-seg-btn:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.5);
  outline-offset: 1px;
}

.lt-pdf-editor-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.lt-pdf-opt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 140px;
  min-width: 120px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-muted2);
}

.lt-pdf-opt--sm {
  flex: 0 1 100px;
  min-width: 88px;
}

.lt-pdf-editor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.lt-pdf-editor-nav span {
  font-size: 13px;
  color: var(--lt-text);
  min-width: 100px;
  text-align: center;
}

.lt-pdf-editor-hint {
  text-align: center;
  font-size: 12px;
  margin: 0 0 10px;
}

.lt-pdf-editor-stage {
  overflow: auto;
  max-height: min(70dvh, 720px);
  border: 1px solid var(--lt-border);
  border-radius: var(--lt-radius);
  background: #1a1a24;
  padding: 12px;
  text-align: center;
}

#pdfEditCanvas {
  max-width: 100%;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

#pdfEditCanvas.is-pen { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%230a0a0f'/%3E%3C/svg%3E") 12 12, crosshair; }
#pdfEditCanvas.is-eraser { cursor: cell; }

.lt-pdf-editor-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.lt-pdf-editor-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid var(--lt-border);
  border-radius: 8px;
  background: var(--lt-bg);
  color: var(--lt-muted);
}

.lt-pdf-editor-list button {
  border: none;
  background: transparent;
  color: var(--lt-bad);
  cursor: pointer;
  font-size: 11px;
}