.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay sombre */
    animation: fadeIn 0.3s ease;
  }
  
  .modal-content {
    background-color: white;
    margin: 10% auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
    animation: slideIn 0.3s ease;
  }
  
  .close {
    color: var(--secondary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-sm);
    transition: var(--transition);
  }
  
  .close:hover {
    color: var(--error-color);
  }
  
  .modal h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: center;
  }
  
  /* Animations pour UX */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Responsive : Full sur mobile */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      margin: 5% auto;
      padding: var(--spacing-md);
    }
  }
