/* Toggle moderne avec colonnes colorées */
.welcome-project-toggle {
  margin-bottom: 20px;
}

.welcome-toggle-options {
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
  width: 100%;
}

.welcome-toggle-option {
  flex: 1;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #666;
  position: relative;

}

.welcome-toggle-option input[type="radio"] {
  display: none;
}

.welcome-toggle-option.active {
  background: linear-gradient(45deg, #667eea 0%, #282c3b 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.welcome-toggle-option:hover:not(.active) {
  background: #e8e8e8;
  color: #333;
}

.welcome-toggle-option span {
  font-weight: 600;
}
/* Modale d'arrivée */
#welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#welcome-modal.hidden {
  display: none;
}

.welcome-modal-content {
  background: white;
  border-radius: 16px;
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-modal-header {
  background: linear-gradient(45deg, #667eea 0%, #282c3b 100%);
  color: white;
  padding: 15px 32px;
  text-align: center;
  position: relative;
}

.welcome-modal-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.welcome-modal-header p {
  margin: 8px 0 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

.welcome-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.welcome-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.welcome-modal-body {
  display: flex;
  flex: 1;
  padding: 32px;
  gap: 32px;
  overflow: hidden;
}

.welcome-samples-column {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.welcome-samples-column h2 {
  margin: 0 0 24px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
}

.welcome-samples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
  padding-bottom: 8px;
  padding-right: 20px;
  overflow-y: auto;


}

.welcome-sample-card {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.welcome-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.welcome-sample-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.welcome-sample-image {
  width: 100%;
  height: 120px;
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  position: relative;
}

.welcome-sample-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.welcome-sample-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
  margin: 0;
}

.welcome-options-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-option-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.welcome-option-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
}

.welcome-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-radio-option {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-radio-option:hover {
  border-color: #667eea;
  background: #f8f9fa;
}

.welcome-radio-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.welcome-radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: #667eea;
}

.welcome-radio-label {
  font-weight: 500;
  font-size: 1rem;
  color: #2c3e50;
  flex: 1;
}

.welcome-radio-description {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
}

.welcome-modal-footer {
  padding: 24px 32px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c757d;
  font-size: 0.9rem;
}

.welcome-footer-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.welcome-start-button {
  background: linear-gradient(45deg, #667eea 0%, #282c3b 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.welcome-start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.welcome-start-button.subscribe {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.welcome-start-button.subscribe:hover {
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-modal-body {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }
  
  .welcome-samples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .welcome-sample-image {
    height: 80px;
  }
  
  .welcome-modal-header h1 {
    font-size: 2rem;
  }
  
  .welcome-modal-content {
    width: 95vw;
    height: 90vh;
  }
}

/* Animation d'entrée */
@keyframes welcomeModalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome-modal-content {
  animation: welcomeModalIn 0.3s ease-out;
}

/* Toggle pour basculer entre projets et échantillons */
.welcome-project-toggle {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
}

.welcome-project-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.welcome-project-toggle label:hover {
  background: rgba(102, 126, 234, 0.1);
}

.welcome-project-toggle input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

/* Style pour les projets utilisateur */
.welcome-user-project-card {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.welcome-user-project-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.welcome-user-project-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.welcome-user-project-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.welcome-user-project-info {
  flex: 1;
}

.welcome-user-project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.welcome-user-project-date {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Style pour la grille des projets utilisateur */
.welcome-user-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

/* Scrollbar style pour la grille des projets */
.welcome-user-projects-grid::-webkit-scrollbar {
  width: 6px;
}

.welcome-user-projects-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.welcome-user-projects-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.welcome-user-projects-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
