body {
      background-color: #050507;
      color: #f4f4f5;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      -webkit-tap-highlight-color: transparent;
      min-height: 100dvh;
      padding-top: env(safe-area-inset-top);
      padding-bottom: env(safe-area-inset-bottom);
    }

    /* La PWA installée utilise la zone complète sans recouvrir l'encoche iOS. */
    @supports (padding: max(0px)) {
      body {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
      }
    }

    @media (display-mode: standalone), (display-mode: fullscreen), (display-mode: window-controls-overlay) {
      html, body { min-height: 100dvh; }
    }

    header.fixed {
      top: calc(env(safe-area-inset-top) + 0.75rem) !important;
    }

    footer.fixed {
      bottom: calc(env(safe-area-inset-bottom) + 0.75rem) !important;
    }

    /* Glassmorphism */
    .glass-header {
      background: rgba(12, 12, 16, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .glass-input {
      background: rgba(18, 18, 24, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 42, 42, 0.25);
    }

    /* Empêche le zoom automatique iOS Safari lors du focus */
    textarea {
      font-size: 16px !important;
    }

    /* Scrollbar Moderne */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }

    /* Custom Markdown Prose */
    .prose p { margin-bottom: 0.6rem; line-height: 1.5; }
    .prose p:last-child { margin-bottom: 0; }
    .prose strong { color: #ff2a2a; font-weight: 700; }
    .prose ul { list-style-type: disc; padding-left: 1.1rem; margin-bottom: 0.6rem; }
    .prose code { background: rgba(255,255,255,0.1); padding: 0.15rem 0.3rem; border-radius: 4px; font-size: 0.85em; }
 