/* Override header positioning for onboarding pages without sidebar */
.onboarding-page .entreprise-header { left: 0; }

/* Notification styles */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: #10B981;
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease-out;
  max-width: 300px;
  font-size: 14px;
  font-weight: 500;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: #EF4444;
}

/* Error message styles */
.error-message {
  color: #EF4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.3;
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.checkbox-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.onboarding-main {
  margin-top: 88px; /* header height */
  padding: 32px 20px 60px;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 88px);
  flex-direction: column;
}

.onboarding-card {
  width: 100%;
  max-width: 650px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  flex: 1;
}

.onboarding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  background: linear-gradient(180deg, #FCF5EA 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E5E7EB;
}

.onboarding-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.awards-icon { width: 36px; height: 36px; }
.awards-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1F2937;
}

.badge-year {
  display: inline-block;
  padding: 6px 23px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid #642D0E;
  color: #642D0E;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* Timeline */
.onboarding-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 16px 51px 20px 51px;
}

.onboarding-steps .steps-track {
  position: absolute;
  left: 110px; /* Start after first circle */
  right: 90px; /* End before last circle */
  top: 30px; /* centered behind circles */
  height: 2px;
  background: #E5E7EB;
  z-index: 0;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E5E7EB;
  background: #FFFFFF;
  color: #6B7280;
  font-size: 16px;
  font-weight: 600;
  margin: 0 auto 8px;
}

.step.active .step-number {
  background: #642D0E;
  color: #FFFFFF;
  border-color: #642D0E;
}

.step-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
}

.step.active .step-label {
  color: #642D0E;
}

.onboarding-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 8px 26px 0;
}

/* Intro */
.onboarding-intro { 
  padding: 29px 33px; 
  text-align: center;
}
.intro-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}
.intro-description {
  color: #6B7280;
  font-size: 16px;
  font-weight: 400;
}

/* Feature blocks */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 0 33px 29px 33px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px 22px;
}

.feature-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  line-height: 20px;
}

.feature-description {
  margin: 0;
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

/* Company Form */
.company-form {
  padding: 0 33px 29px 33px;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group.full-width {
  width: 100%;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  line-height: 16px;
  margin: 0;
}

.form-input {
  padding: 15px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  font-size: 14px;
  color: #1F2937;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #642D0E;
  box-shadow: 0 0 0 3px rgba(100, 45, 14, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

/* Validation borders removed */

/* Footer */
.onboarding-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 33px 26px 33px;
  border-top: 1px solid #E5E7EB;
}

.onboarding-footer .btn {
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #642D0E;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #4A2109;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F9FAFB;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
  background: #F3F4F6;
  color: #374151;
  transform: translateY(-1px);
}

.start-btn { 
  min-width: 240px; 
  text-align: center; 
}

/* Timeline completed state */
.step.completed .step-number {
  background: #3AA645;
  color: #FFFFFF;
  border-color: #3AA645;
}

.step.completed .step-label {
  color: #6B7280;
}

/* Criteria Section */
.criteria-section {
  padding: 0 33px 29px 33px;
}

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

.criteria-item {
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  padding: 39px 20px;
  background: transparent;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.criteria-item:hover {
  border-color: #642D0E;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.criteria-item:nth-child(5) {
  grid-column: 1;
  max-width: 100%;
}

.criteria-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  line-height: 16px;
}

/* Voting System Section */
.voting-system-section {
  padding: 0 33px 29px 33px;
}

.voting-system-block {
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  padding: 14px 25px;
  background: #FDFAF4;
}

.voting-system-title {
  font-size: 14px;
  font-weight: 600;
  color: #642D0E;
  margin: 0 0 8px 0;
}

.voting-system-description {
  font-size: 12px;
  font-weight: 400;
  color: #1F2937;
  line-height: 20px;
  margin: 0;
}

/* Engagement Form */
.engagement-form {
  padding: 0 33px 29px 33px;
}

/* Engagement Requirements */
.engagement-requirements {
  padding: 0 33px 29px 33px;
}

.engagement-block {
  background: #FDFAF4;
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  padding: 20px 25px;
}

.engagement-title {
  font-size: 14px;
  font-weight: 600;
  color: #642D0E;
  margin: 0 0 12px 0;
}

.engagement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.engagement-item {
  font-size: 12px;
  font-weight: 400;
  color: #1F2937;
  line-height: 20px;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.engagement-item:last-child {
  margin-bottom: 0;
}

.engagement-item::before {
  content: '•';
  color: #642D0E;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Confirmation Section */
.confirmation-section {
  padding: 0 33px 29px 33px;
}

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

.checkbox-input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #642D0E;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 12px;
  font-weight: 400;
  color: #1F2937;
  line-height: 20px;
  cursor: pointer;
  margin: 0;
}

/* Info Blocks */
.info-blocks {
  padding: 0 33px 29px 33px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  padding: 17px 23px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
}

.info-content {
  flex: 1;
}

.info-icon img {
  width: 51px;
  height: auto;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
}

.info-description {
  font-size: 12px;
  font-weight: 400;
  color: #1F2937;
  line-height: 20px;
  margin: 0;
}

/* Advantages Section */
.advantages-section {
  padding: 0 33px 29px 33px;
}

.advantages-block {
  background: #FDFAF4;
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  overflow: hidden;
}

.advantages-header {
  padding: 18px 24px;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}

.advantages-title {
  font-size: 14px;
  font-weight: 600;
  color: #642D0E;
  margin: 0;
}

.advantages-content {
  padding: 24px;
}

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

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.advantage-item.advantage-centered {
  grid-column: 1;
}

.advantage-icon img {
  width: 34px;
  height: auto;
}

.advantage-content {
  flex: 1;
}

.advantage-title {
  font-size: 12px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
}

.advantage-description {
  font-size: 10px;
  font-weight: 400;
  color: #1F2937;
  line-height: 16px;
  margin: 0;
}

/* Animation styles */
.animate-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for feature items */
.feature-item {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-item:nth-child(1).visible { transition-delay: 0.1s; }
.feature-item:nth-child(2).visible { transition-delay: 0.2s; }
.feature-item:nth-child(3).visible { transition-delay: 0.3s; }
.feature-item:nth-child(4).visible { transition-delay: 0.4s; }

/* Criteria items animation */
.criteria-item {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.criteria-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.criteria-item:nth-child(1).visible { transition-delay: 0.05s; }
.criteria-item:nth-child(2).visible { transition-delay: 0.1s; }
.criteria-item:nth-child(3).visible { transition-delay: 0.15s; }
.criteria-item:nth-child(4).visible { transition-delay: 0.2s; }
.criteria-item:nth-child(5).visible { transition-delay: 0.25s; }
.criteria-item:nth-child(6).visible { transition-delay: 0.3s; }

/* Form elements animation */
.form-row {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.form-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-row:nth-child(1).visible { transition-delay: 0.07s; }
.form-row:nth-child(2).visible { transition-delay: 0.14s; }
.form-row:nth-child(3).visible { transition-delay: 0.21s; }
.form-row:nth-child(4).visible { transition-delay: 0.28s; }

/* Info blocks animation */
.info-block {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.info-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-block:nth-child(1).visible { transition-delay: 0.08s; }
.info-block:nth-child(2).visible { transition-delay: 0.16s; }

/* Advantage items animation */
.advantage-item {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.advantage-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.advantage-item:nth-child(1).visible { transition-delay: 0.06s; }
.advantage-item:nth-child(2).visible { transition-delay: 0.12s; }
.advantage-item:nth-child(3).visible { transition-delay: 0.18s; }

/* Engagement items animation */
.engagement-item {
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.3s ease-out;
}

.engagement-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.engagement-item:nth-child(1).visible { transition-delay: 0.06s; }
.engagement-item:nth-child(2).visible { transition-delay: 0.12s; }
.engagement-item:nth-child(3).visible { transition-delay: 0.18s; }

/* Special animation for footer */
.onboarding-footer {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-out;
}

.onboarding-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile First Responsive */
@media (max-width: 768px) {
  /* Notification responsive */
  .notification {
    top: 80px;
    right: 12px;
    left: 12px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .onboarding-main { 
    padding: 12px 8px 20px; 
    margin-top: 76px; /* Reduced header space */
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px); /* Support for new viewport units */
  }
  
  .onboarding-card { 
    border-radius: 12px;
    margin: 0;
    max-width: 100%;
  }
  
  /* Header optimizations */
  .onboarding-card-header {
    padding: 16px 20px;
    background: linear-gradient(180deg, #FCF5EA 0%, #FFFFFF 100%);
  }
  
  .onboarding-card-header-left {
    gap: 10px;
  }
  
  .awards-icon { width: 28px; height: 28px; }
  .awards-title { font-size: 18px; }
  .badge-year { 
    padding: 4px 16px;
    font-size: 11px;
  }
  
  /* Timeline optimizations */
  .onboarding-steps { 
    padding: 16px 12px 12px; 
    gap: 8px;
  }
  .onboarding-steps .steps-track { 
    left: 32px; 
    right: 32px; 
    top: 25px; 
  }
  .step-number { 
    width: 28px; 
    height: 28px; 
    font-size: 14px;
    margin-bottom: 6px;
  }
  .step-label {
    font-size: 10px;
    line-height: 12px;
  }
  
  /* Content sections */
  .onboarding-intro { 
    padding: 20px 16px; 
    text-align: center;
  }
  .intro-title { 
    font-size: 22px; 
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .intro-description {
    font-size: 15px;
    line-height: 1.4;
  }
  
  /* Feature list optimizations */
  .feature-list {
    padding: 0 16px 20px;
    gap: 12px;
  }
  
  .feature-item {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 8px;
  }
  
  .feature-icon img {
    width: 40px;
    height: auto;
  }
  
  .feature-title {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  
  .feature-description {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Form responsive */
  .company-form, .engagement-form { 
    padding: 0 16px 20px; 
  }
  
  .form-row { 
    flex-direction: column; 
    gap: 14px; 
  }
  
  .form-label {
    font-size: 13px;
    font-weight: 600;
  }
  
  .form-input {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
  }
  
  .form-textarea {
    min-height: 80px;
  }
  
  /* Criteria responsive */
  .criteria-section { 
    padding: 0 16px 20px; 
  }
  
  .criteria-grid { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  
  .criteria-item {
    padding: 16px 18px;
    border-radius: 12px;
  }
  
  .criteria-item:nth-child(5) {
    grid-column: 1;
    max-width: 100%;
  }
  
  .criteria-title {
    font-size: 15px;
    line-height: 1.3;
  }
  
  /* Voting system */
  .voting-system-section { 
    padding: 0 16px 20px; 
  }
  
  .voting-system-block {
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .voting-system-title {
    font-size: 15px;
  }
  
  .voting-system-description {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Engagement sections */
  .engagement-requirements, .confirmation-section { 
    padding: 0 16px 20px; 
  }
  
  .engagement-block {
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .engagement-title {
    font-size: 15px;
  }
  
  .engagement-item {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  
  .checkbox-container {
    gap: 10px;
  }
  
  .checkbox-label {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Info blocks and advantages */
  .info-blocks, .advantages-section { 
    padding: 0 16px 20px; 
  }
  
  .info-block {
    padding: 14px 18px;
    gap: 16px;
    border-radius: 8px;
  }
  
  .info-icon img {
    width: 42px;
  }
  
  .info-title {
    font-size: 15px;
    margin-bottom: 2px;
  }
  
  .info-description {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .advantages-block {
    border-radius: 12px;
  }
  
  .advantages-header {
    padding: 14px 20px;
  }
  
  .advantages-title {
    font-size: 15px;
  }
  
  .advantages-content {
    padding: 18px;
  }
  
  .advantages-grid { 
    grid-template-columns: 1fr; 
    gap: 14px;
  }
  
  .advantage-item {
    gap: 10px;
  }
  
  .advantage-item.advantage-centered {
    grid-column: 1;
  }
  
  .advantage-icon img {
    width: 30px;
  }
  
  .advantage-title {
    font-size: 13px;
    margin-bottom: 2px;
  }
  
  .advantage-description {
    font-size: 11px;
    line-height: 1.3;
  }
  
  /* Footer optimizations */
  .onboarding-footer { 
    padding: 20px 16px 24px; 
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
    z-index: 10;
  }
  
  .onboarding-footer .btn { 
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }
  
  .onboarding-footer .btn:active {
    transform: translateY(1px);
    opacity: 0.8;
  }
  
  .start-btn {
    min-width: 0;
    max-width: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .onboarding-main { 
    padding: 25px 4px 16px; 
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
  }
  
  .onboarding-card-header {
    padding: 12px 16px;
  }
  
  .awards-title { 
    font-size: 16px; 
  }
  
  .badge-year { 
    padding: 3px 12px;
    font-size: 10px;
  }
  
  .onboarding-steps { 
    padding: 12px 8px 8px; 
  }
  
  .step-number { 
    width: 24px; 
    height: 24px; 
    font-size: 12px;
  }
  
  .step-label {
    font-size: 9px;
  }
  
  .intro-title { 
    font-size: 20px; 
  }
  
  .feature-list, .criteria-section, .voting-system-section,
  .company-form, .engagement-form, .engagement-requirements,
  .confirmation-section, .info-blocks, .advantages-section {
    padding: 0 12px 16px;
  }
  
  .onboarding-footer { 
    padding: 16px 12px 20px; 
  }
}

