<style>
    @import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    html, body {
      height: 400vh;
      background: linear-gradient(135deg, #5b7c99 0%, #7a92a8 50%, #8fa3b5 100%);
      font-family: 'Courier Prime', monospace;
      overflow-x: hidden;
    }
    
    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.03) 3px);
      pointer-events: none;
      z-index: 1;
    }
    
    .sgi-titlebar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 32px;
      background: linear-gradient(180deg, #98afc7 0%, #7a92a8 50%, #6a8199 100%);
      border-bottom: 2px solid #4a6178;
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 2px 4px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      padding: 0 12px;
      z-index: 1000;
      font-size: 13px;
      color: #1a2a3a;
      font-weight: bold;
      letter-spacing: 0.5px;
    }
    
    .sgi-titlebar::before {
      content: '●';
      color: #ff4444;
      font-size: 16px;
      margin-right: 8px;
    }
    
    .viewport {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90vmin;
      height: 90vmin;
      max-width: 800px;
      max-height: 800px;
      z-index: 10;
    }
    
    svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    }
    
    .circle {
      fill: none;
      stroke: url(#sgi-gradient);
      stroke-width: 3px;
      filter: drop-shadow(0 0 8px rgba(150, 190, 220, 0.6));
    }
    
    .link {
      font-family: 'Courier Prime', monospace;
      font-size: 16px;
      font-weight: bold;
      fill: #1a2a3a;
      cursor: pointer;
      text-anchor: middle;
      dominant-baseline: middle;
      transition: all 0.2s;
      letter-spacing: 1px;
    }
    
    .link:hover {
      fill: #ff6b35;
      filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.8));
    }
    
    .link-box {
      fill: linear-gradient(135deg, #b8cde0 0%, #8fa3b5 100%);
      stroke: #4a6178;
      stroke-width: 2px;
      filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    }
    
    .circle-group {
      opacity: 0;
      transition: opacity 0.4s ease-out, transform 0.3s ease-out;
      transform-origin: 400px 400px;
    }
    
    .circle-group.visible {
      opacity: 1;
    }
    
    /* Fenêtres SGI avec images */
    .sgi-window {
      position: fixed;
      width: 280px;
      background: linear-gradient(180deg, #98afc7 0%, #7a92a8 100%);
      border: 2px solid #4a6178;
      border-radius: 4px;
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 8px 16px rgba(0,0,0,0.5);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease-out, transform 0.5s ease-out;
      z-index: 5;
    }
    
    .sgi-window.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .sgi-window-title {
      height: 28px;
      background: linear-gradient(180deg, #98afc7 0%, #7a92a8 50%, #6a8199 100%);
      border-bottom: 2px solid #4a6178;
      display: flex;
      align-items: center;
      padding: 0 8px;
      font-size: 12px;
      font-weight: bold;
      color: #1a2a3a;
      letter-spacing: 0.5px;
    }
    
    .sgi-window-title::before {
      content: '●';
      color: #ff4444;
      font-size: 14px;
      margin-right: 6px;
    }
    
    .sgi-window-content {
      padding: 8px;
      background: #6a8199;
      min-height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .sgi-window-content img {
      max-width: 100%;
      max-height: 160px;
      border: 2px solid #4a6178;
      box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    }
    
    .sgi-window-content .placeholder {
      width: 100%;
      height: 160px;
      background: linear-gradient(135deg, #4a6178 0%, #5b7c99 100%);
      border: 2px solid #4a6178;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #b8cde0;
      font-size: 48px;
      font-weight: bold;
    }
    
    /* Positionnement des fenêtres */
    .window-level-1-1 { top: 15%; left: 5%; }
    .window-level-1-2 { top: 60%; right: 5%; }
    
    .window-level-2-1 { top: 20%; right: 8%; }
    .window-level-2-2 { bottom: 15%; left: 8%; }
    
    .window-level-3-1 { top: 50%; left: 3%; transform: translateY(-50%); }
    .window-level-3-2 { top: 12%; right: 3%; }
    
    .window-level-4-1 { bottom: 10%; right: 10%; }
    .window-level-4-2 { top: 10%; left: 10%; }
    
    .scroll-indicator {
      position: fixed;
      bottom: 40px;
      right: 40px;
      width: 60px;
      height: 120px;
      background: linear-gradient(180deg, #98afc7 0%, #7a92a8 50%, #6a8199 100%);
      border: 2px solid #4a6178;
      border-radius: 4px;
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.4);
      z-index: 100;
      overflow: hidden;
    }
    
    .scroll-thumb {
      position: absolute;
      left: 4px;
      right: 4px;
      height: 20px;
      background: linear-gradient(180deg, #ff6b35 0%, #d5532a 100%);
      border-radius: 2px;
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 2px 4px rgba(0,0,0,0.3);
      transition: top 0.1s;
    }
    
    .sgi-corner {
      position: fixed;
      width: 20px;
      height: 20px;
      background: #6a8199;
      border: 2px solid #4a6178;
      z-index: 50;
    }
    
    .sgi-corner.top-left { top: 40px; left: 20px; border-radius: 0 0 8px 0; }
    .sgi-corner.top-right { top: 40px; right: 20px; border-radius: 0 0 0 8px; }
    .sgi-corner.bottom-left { bottom: 20px; left: 20px; border-radius: 0 8px 0 0; }
    .sgi-corner.bottom-right { bottom: 20px; right: 20px; border-radius: 8px 0 0 0; }
    
    .level-info {
      position: fixed;
      top: 50px;
      left: 40px;
      padding: 12px 20px;
      background: linear-gradient(135deg, #98afc7 0%, #7a92a8 100%);
      border: 2px solid #4a6178;
      border-radius: 4px;
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 4px 8px rgba(0,0,0,0.4);
      color: #1a2a3a;
      font-weight: bold;
      font-size: 14px;
      letter-spacing: 1px;
      z-index: 100;
    }
  </style>