body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
  }
  
  header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  fieldset {
    border: none;
    display: none;
    flex-direction: column;
  }
  
  fieldset.active {
    display: flex;
  }
  
  legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: #004225;
    margin-bottom: 1rem;
  }
  
  label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  input,
  select,
  textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.3rem;
  }
  
  textarea {
    resize: vertical;
  }
  
  button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #BFA06B; /* doré doux */
    color: #fff;
    margin-bottom: 1rem;
    transition: background 0.3s;
  }
  
  button:hover {
    background-color: #004225;
    color: #fff;
  }
  
  legend{
    font-size: 1.4rem;
    font-weight: bold;
    color: #004225;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #BFA06B; /* doré doux */
    width: fit-content;
    align-self: center;
    text-align: center;
  }

  .confirm-message{
    text-align: center;
  }

  .button-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  
  @media (max-width: 768px) {
    .form-container,
    fieldset {
      padding: 0 1rem;
    }
  
    input[type="file"], select {
      width: 100%;
      max-width: 100%;
    }
  
    label {
      word-break: break-word;
    }
  }

  /* Modal de notification */
  .notification-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 66, 37, 0.7);
    animation: fadeIn 0.3s ease-in-out;
  }

  .notification-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 90%;
    padding: 0;
    animation: slideDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
  }

  .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
  }

  .modal-header.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-bottom: 3px solid #28a745;
  }

  .modal-header.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-bottom: 3px solid #dc3545;
  }

  .modal-header.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-bottom: 3px solid #ffc107;
  }

  .modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: scaleIn 0.5s ease-out;
  }

  .modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #004225;
    margin-bottom: 0.5rem;
  }

  .modal-body {
    padding: 2rem;
    color: #333;
    line-height: 1.6;
  }

  .project-reference {
    background-color: #f0f4f8;
    border-left: 4px solid #BFA06B;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #004225;
  }

  .project-reference span {
    font-size: 1.2rem;
    color: #BFA06B;
  }

  .warning-list {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
  }

  .warning-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
  }

  .warning-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ffe8a1;
  }

  .warning-list li:last-child {
    border-bottom: none;
  }

  .warning-list li::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
  }

  .info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
  }

  .contact-info {
    background-color: #f0f4f8;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
  }

  .contact-info p {
    margin: 0.5rem 0;
  }

  .modal-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
  }

  .modal-close-btn {
    background: linear-gradient(135deg, #004225 0%, #006837 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 66, 37, 0.3);
    font-weight: 600;
  }

  .modal-close-btn:hover {
    background: linear-gradient(135deg, #BFA06B 0%, #d4b77d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 160, 107, 0.4);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideDown {
    from {
      transform: translateY(-50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes scaleIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      max-width: none;
    }

    .modal-title {
      font-size: 1.5rem;
    }

    .modal-icon {
      font-size: 3rem;
    }

    .modal-body {
      padding: 1.5rem;
    }
  }
  