/* Styles CSS pour index.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  margin-bottom: 10px;
}

.logo img {
  max-width: 200px;
  height: auto;
}

.highlight {
  color: #5f35e4;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.error-page {
  padding: 40px;
  text-align: center;
}

.error-title {
  font-size: 24px;
  color: #e74c3c;
  margin-bottom: 20px;
  font-weight: bold;
}

.error-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.job-info {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.job-title {
  font-size: 1.8em;
  color: #5f35e4;
  margin-bottom: 15px;
}

.job-details {
  color: #666;
  margin-bottom: 10px;
}

.job-summary {
  margin-top: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  border-left: 3px solid #5f35e4;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 1.5em;
  margin-bottom: 25px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #5f35e4;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.phone-input-container {
  position: relative;
}

.salary-container {
  margin-top: 10px;
}

.salary-input-group {
  margin-bottom: 15px;
}

.rate-type-selector {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio-option input[type="radio"] {
  margin-right: 8px;
  width: auto;
}

.input-with-unit {
  display: flex;
  align-items: center;
  position: relative;
}

.input-with-unit input {
  padding-right: 100px;
}

.currency-unit {
  position: absolute;
  right: 15px;
  color: #666;
  font-weight: 500;
  pointer-events: none;
}

.file-upload {
  position: relative;
  border: 2px dashed #e1e5e9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafbfc;
}

.file-upload:hover,
.file-upload.drag-over {
  border-color: #667eea;
  background: #f0f4ff;
}

.file-upload.file-selected {
  border-color: #27ae60;
  background: #f0fff4;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-upload-icon {
  font-size: 32px;
}

.file-selected {
  color: #27ae60;
  font-weight: 600;
}

.file-info {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  cursor: pointer;
  margin: 0;
}

/* Styles pour la section d'informations personnelles */
.personal-info-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .personal-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.btn {
  background: #5f35e4;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.btn:hover {
  background: #4a2bb8;
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.snackbar.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.snackbar.error {
  background-color: #e74c3c;
}

.snackbar.warning {
  background-color: #f39c12;
}

.snackbar.success {
  background-color: #27ae60;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header,
  .job-info,
  .form-container {
    padding: 20px;
  }

  .logo {
    font-size: 2em;
  }

  .job-title {
    font-size: 1.5em;
  }
}

/* File Upload Styles */
.file-upload-container {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-container:hover {
  border-color: #5f35e4;
  background: #f8f6ff;
}

.file-upload-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-upload-icon {
  font-size: 2.5em;
  color: #5f35e4;
}

.file-upload-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-upload-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.file-upload-info {
  font-size: 14px;
  color: #666;
}

.file-upload-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 6px;
  margin-top: 10px;
}

.file-selected-icon {
  color: #4caf50;
  font-size: 1.2em;
  font-weight: bold;
}

.file-selected-info {
  flex: 1;
  margin-left: 10px;
  text-align: left;
}

.file-selected-name {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.file-selected-size {
  display: block;
  font-size: 12px;
  color: #666;
}

.file-remove-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.file-remove-btn:hover {
  background: #f44336;
  color: white;
}

.file-upload-container.dragover {
  border-color: #5f35e4;
  background: #f0ebff;
}

.file-upload-container.error {
  border-color: #f44336;
  background: #fff5f5;
}

.file-upload-error {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
}