html, body {
      height: 100%;
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: #0b0c10;
      color: #fff;
      overflow-x: hidden;
      overflow-y: auto;
    }

    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 20px 50px 20px;
      min-height: 100vh;
      box-sizing: border-box;
      position: relative;
      background: transparent;
      z-index: 1;
    }

    #networkCanvas {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 0;
      display: block;
      background: transparent;
    }

    #mainContainer {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 800px;
      position: relative;
      z-index: 1;
      margin-top: 0;
      transition: margin-top 0.8s ease, padding-top 0.8s ease;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards;
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    h1, p {
      text-align: center;
      z-index: 2;
      position: relative;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1s ease forwards;
      animation-delay: 0.2s;
    }

    h1 {
      font-size: 3.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    p {
      margin-bottom: 1rem;
    }

    .search-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      width: 100%;
      max-width: 600px;
      z-index: 2;
      position: relative;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1s ease forwards;
      animation-delay: 0.4s;
    }

    input {
      flex-grow: 1;
      padding: 10px;
      font-size: 1rem;
      border-radius: 5px;
      border: 2px solid #444;
      background-color: #1f1f1f !important;
      color: #fff !important;
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
      -webkit-text-fill-color: #fff !important;
    }

    input:focus {
      outline: none;
      border-color: #fff;
      box-shadow: 0 0 5px 1px rgba(255,255,255,0.3);
    }

    input:-webkit-autofill {
      -webkit-box-shadow: 0 0 0 1000px #1f1f1f inset !important;
      -webkit-text-fill-color: #fff !important;
    }

    button {
      cursor: pointer;
      border: 2px solid #444;
      background-color: #333;
      color: #fff;
      transition: background-color 0.3s ease, border-color 0.3s ease;
      border-radius: 5px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    button:hover {
      background-color: #555;
      border-color: #fff;
    }

    button img, button svg {
      width: 20px;
      height: 20px;
      pointer-events: none;
    }

    #loaderOverlay {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .loader {
      border: 5px solid rgba(255, 255, 255, 0.3);
      border-top: 5px solid #fff;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg);}
      100% { transform: rotate(360deg);}
    }

    #infoMapContainer {
      width: 100%;
      max-width: 800px;
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      gap: 25px;
    }

    .result {
      background: #1f1f1f;
      padding: 20px;
      border-radius: 10px;
      width: 100%;
      box-sizing: border-box;
      min-height: 150px;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    }

    .result.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .result:hover {
      box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.5);
    }

    .map-box {
      background: #1f1f1f;
      border-radius: 10px;
      overflow: hidden;
      transition: box-shadow 0.3s ease;
    }

    .map-box:hover {
      box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.5);
    }

    iframe {
      width: 100%;
      height: 300px;
      border: none;
      display: block;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
    }

    iframe.visible {
      opacity: 1;
      transform: translateY(0);
    }

    #webhookContainer {
      display: none;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 10px;
      width: 100%;
      max-width: 800px;
      margin-top: 20px;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    #webhookInput, #txtFilename {
      flex-grow: 1;
      padding: 10px;
      font-size: 1rem;
      border-radius: 5px;
      border: 2px solid #444;
      background-color: #1f1f1f !important;
      color: #fff !important;
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
      -webkit-text-fill-color: #fff !important;
    }

    #webhookInput:focus, #txtFilename:focus {
      outline: none;
      border-color: #fff;
      box-shadow: 0 0 5px 1px rgba(255,255,255,0.3);
    }

    #sendWebhookBtn, #downloadBtn {
      cursor: pointer;
      border: 2px solid #444;
      background-color: #333;
      color: #fff;
      transition: background-color 0.3s ease, border-color 0.3s ease;
      border-radius: 5px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    #sendWebhookBtn:hover, #downloadBtn:hover {
      background-color: #555;
      border-color: #fff;
    }

    #downloadContainer {
      display: none;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      margin-top: 15px;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      width: 100%;
      max-width: 800px;
    }

    /* Style du texte "Created by MyZz" */
    #creditText {
      position: fixed;
      bottom: 15px;
      right: 15px;
      font-size: 14px;
      color: #aaa;
      cursor: default;
      user-select: none;
      z-index: 10000;
      font-weight: 600;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      transition: color 0.3s ease, transform 0.3s ease;
      /* pas de pointer pour bien indiquer qu'on ne clique pas */
      pointer-events: auto; /* autoriser hover quand même */
    }

    #creditText:hover {
      color: #ffffff;
      transform: scale(1.0);
    }