    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Siberian_landscape_near_Magadan.jpg/1280px-Siberian_landscape_near_Magadan.jpg') no-repeat center center fixed;
      background-size: cover;
      color: #e0e0e0;
      overflow-x: hidden;
    }
    .overlay {
      background-color: rgba(0, 0, 0, 0.92);
      min-height: 100vh;
      padding: 30px;
      position: relative;
      display: flex;
    }
    .sidebar {
      width: 200px;
      background: #111;
      padding: 20px;
      border-radius: 8px;
      margin-right: 20px;
      height: calc(100vh - 60px);
    }
    .sidebar h3 {
      color: #e53935;
      margin-top: 0;
    }
    .sidebar ul {
      list-style: none;
      padding: 0;
    }
    .sidebar li {
      padding: 10px;
      margin: 5px 0;
      background: #1e1e1e;
      border-radius: 5px;
      cursor: pointer;
    }
    .sidebar li:hover {
      background: #e53935;
      color: #fff;
    }
    .main-content {
      flex: 1;
      position: relative;
    }
    header {
      text-align: center;
      margin-bottom: 40px;
    }
    header h1 {
      color: #e53935;
      font-size: 3rem;
      text-shadow: 2px 2px 6px red;
    }
    .slogan {
      font-style: italic;
      font-size: 1rem;
      color: #ccc;
    }
    .form-container, .ai-chat {
      max-width: 500px;
      margin: auto;
      background-color: #1e1e1e;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(255,0,0,0.3);
    }
    input, textarea, button {
      width: 100%;
      margin-top: 15px;
      padding: 12px;
      border: none;
      border-radius: 5px;
      background-color: #333;
      color: #fff;
    }
    button:hover { background-color: #ff1744; cursor: pointer; }
    .poster {
      display: block;
      margin: 40px auto 20px;
      max-width: 300px;
      border: 2px solid #e53935;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
    .log {
      max-width: 600px;
      margin: 40px auto;
      background-color: #111;
      padding: 20px;
      border-radius: 10px;
    }
    .log h3 {
      color: #ff5555;
      border-bottom: 1px solid #444;
      padding-bottom: 10px;
    }
    .log ul { list-style: none; padding: 0; color: #ccc; }
    .log li::before {
      content: "⏳";
      margin-right: 8px;
    }
    #logList li::before {
      content: "🔒";
      margin-right: 8px;
    }
    #panic-button {
      display: block;
      margin: 20px auto 0;
      background-color: #000;
      color: #e53935;
      border: 2px solid #e53935;
      padding: 12px 30px;
      font-weight: bold;
      font-size: 1.1rem;
      border-radius: 8px;
    }
    .hack-screen {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: black;
      color: #00ff00;
      font-family: monospace;
      font-size: 14px;
      padding: 20px;
      display: none;
      z-index: 9999;
      white-space: pre-line;
    }
    .return-button {
      width: auto;
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 8px 15px;
      background: #e53935;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      display: none;
    }
    footer {
      text-align: center;
      font-size: 0.8rem;
      color: #888;
      margin-top: 40px;
    }
    .mon-image {
  max-width: 350px;
  border-radius: 8px;
}


/* Bouton d'annulation des transferts — visible en mode développeur */
#targetsList li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  background: linear-gradient(135deg, #1b1b1b, #292020);
  border: 1px solid #493030;
  border-radius: 8px;
}

#targetsList .target-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#targetsList .delete-btn {
  order: -1;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a83232;
  border-radius: 8px;
  background: #351717;
  color: #ff7777;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

#targetsList .delete-btn:hover {
  background: #e53935;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.45);
}


/* Encyclopédie privée — apparence inspirée des pages encyclopédiques */
.wiki-page { display:block; box-sizing:border-box; width:100%; padding:24px clamp(16px,4vw,42px); color:#202122; background:#fff; border:1px solid #a7a7a7; border-radius:4px; font-family:Arial,Helvetica,sans-serif; line-height:1.65; text-align:left; overflow-wrap:anywhere; }
.wiki-page .wiki-topline { color:#54595d; font-size:12px; border-bottom:1px solid #a2a9b1; padding-bottom:8px; }
.wiki-page h1 { color:#202122; font-family:Georgia,serif; font-size:clamp(27px,4vw,36px); font-weight:normal; border-bottom:1px solid #a2a9b1; margin:14px 0 4px; padding-bottom:8px; }
.wiki-page .wiki-subtitle { color:#54595d; font-size:13px; margin-top:0; }
.wiki-page .wiki-tabs { display:flex; flex-wrap:wrap; gap:18px; border-bottom:1px solid #a2a9b1; padding:8px 0; margin-bottom:18px; color:#0645ad; font-size:13px; }
.wiki-page .wiki-tabs span:first-child { color:#202122; font-weight:bold; border-bottom:2px solid #202122; }
.wiki-page p { color:#202122; margin:12px 0; font-size:14px; }
.wiki-page h2 { color:#202122; font-family:Georgia,serif; font-size:22px; font-weight:normal; border-bottom:1px solid #a2a9b1; margin:28px 0 10px; padding-bottom:4px; }
.wiki-page h3 { color:#202122; }
.wiki-page a { color:#0645ad; text-decoration:none; }
.wiki-page a:hover { text-decoration:underline; }
.wiki-page .wiki-notice { background:#f8f9fa; border:1px solid #a2a9b1; padding:10px 13px; margin:16px 0; font-size:13px; }
.wiki-page .wiki-infobox { float:right; box-sizing:border-box; width:min(310px,43%); margin:4px 0 18px 22px; padding:10px; background:#f8f9fa; border:1px solid #a2a9b1; font-size:12px; }
.wiki-page .wiki-infobox h3 { text-align:center; font-family:Georgia,serif; font-size:19px; margin:2px 0 10px; }
.wiki-page .wiki-infobox img { display:block; width:100%; height:auto; border:1px solid #c8ccd1; }
.wiki-page .wiki-infobox small { display:block; color:#54595d; font-size:10px; line-height:1.4; margin:5px 0 10px; }
.wiki-page .wiki-infobox table { width:100%; border-collapse:collapse; }
.wiki-page .wiki-infobox th,.wiki-page .wiki-infobox td { text-align:left; vertical-align:top; border-top:1px solid #c8ccd1; padding:5px 4px; }
.wiki-page .wiki-infobox th { width:34%; }
.wiki-page .wiki-callout { margin:18px 0; padding:11px 14px; background:#f1f4fa; border-left:4px solid #727f9a; font-size:13px; }
.wiki-page .wiki-stamp { background:#fff8e6; border-left-color:#a77b22; }
.wiki-page .wiki-timeline { padding-left:24px; font-size:14px; }
.wiki-page .wiki-timeline li { margin:7px 0; }
.wiki-page .wiki-sources { clear:both; margin-top:26px; padding:14px; background:#f8f9fa; border:1px solid #a2a9b1; font-size:13px; }
.wiki-page .wiki-footer { border-top:1px solid #a2a9b1; margin-top:24px; padding-top:10px; color:#72777d; font-size:11px; }
@media (max-width:650px) { .wiki-page { padding:16px 13px; } .wiki-page .wiki-infobox { float:none; width:100%; margin:16px 0; } }


/* Adaptation mobile : menu empilé et fond sombre sur toute la largeur */
@media (max-width: 650px) {
  html, body {
    width: 100%;
    min-height: 100%;
    background-color: #000;
  }

  .overlay {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 14px;
    background-color: rgba(0, 0, 0, 0.94);
  }

  .sidebar {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0 0 20px;
    padding: 14px;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
  }

  .sidebar li {
    margin: 0;
    flex: 1 1 120px;
    text-align: center;
  }

  .main-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  header h1 {
    font-size: 2rem;
  }

  .form-container, .ai-chat, .log {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }
}
