﻿    /* ========== UPLOAD LOCAL D'IMAGES ========== */
    .upload-separator {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
    }
    .upload-separator::before,
    .upload-separator::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--edge);
    }
    .upload-separator span {
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .local-upload-zone {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .local-upload-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 16px 20px;
      background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.1));
      border: 2px dashed rgba(168,85,247,0.4);
      border-radius: 12px;
      color: #a855f7;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .local-upload-btn:hover {
      background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(236,72,153,0.2));
      border-color: rgba(168,85,247,0.6);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(168,85,247,0.2);
    }
    .local-upload-btn:active {
      transform: translateY(0);
    }
    .local-upload-btn i {
      font-size: 18px;
    }
    .upload-hint {
      margin: 0;
      font-size: 11px;
      color: var(--muted);
      text-align: center;
    }
    .local-image-selected {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(236,72,153,0.08));
      border: 2px solid rgba(168,85,247,0.3);
      border-radius: 12px;
    }
    .local-image-selected img {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .local-image-info {
      flex: 1;
    }
    .local-image-info .title {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 600;
      color: #a855f7;
      margin-bottom: 4px;
    }
    .local-image-info .details {
      font-size: 12px;
      color: var(--muted);
    }
    .local-image-remove {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(239,68,68,0.1);
      border: none;
      border-radius: 8px;
      color: #ef4444;
      cursor: pointer;
      transition: all 0.2s;
    }
    .local-image-remove:hover {
      background: rgba(239,68,68,0.2);
    }
    
    /* Responsive pour la modal Unsplash */
    @media (max-width: 768px) {
      .unsplash-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .unsplash-modal {
        max-height: 90vh;
        border-radius: 16px;
      }
      .unsplash-search-bar {
        flex-direction: column;
      }
      .placement-preview-container {
        flex-direction: column;
      }
      .placement-image-preview {
        width: 100%;
        flex-direction: row;
        align-items: center;
      }
      .placement-current-image {
        width: 120px;
      }
    }
    
    /* Responsive pour le layout d'Ã©dition d'images */
    @media (max-width: 1200px) {
      #editImagesContent {
        grid-template-columns: 1fr 300px !important;
      }
    }
    @media (max-width: 900px) {
      #editImagesContent {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }
      #editImagesContent > div:first-child {
        height: 450px !important;
      }
    }
    @media (max-width: 600px) {
      #editImagesContent > div:first-child {
        height: 350px !important;
      }
    }
    
    /* Modal scrollable sur petits Ã©crans */
    @media (max-height: 750px) {
      .text-edit-modal {
        overflow-y: auto;
        padding: 20px 10px;
      }
      .text-edit-modal-content {
        max-height: none;
        margin: auto;
      }
    }
    
    /* Images sÃ©lectionnÃ©es dans le chat */
    .chat-selected-images {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .chat-image-thumb {
      position: relative;
      width: 60px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
    }
    .chat-image-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .chat-image-thumb-remove {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 20px;
      height: 20px;
      background: #ef4444;
      border: 2px solid white;
      border-radius: 50%;
      color: white;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
