/* Header Styles */
.recruitment-public-header {
  background: var(--Blanc, #FFF);
  border-bottom: 1px solid var(--Contour-Color, #DFE5EC);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.btn-back-to-presentation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--Contour-Color, #DFE5EC);
  background: var(--Blanc, #FFF);
  color: var(--Texte-principal, #1F2937);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-to-presentation:hover {
  background: var(--Fond-gris, #F9FAFB);
  border-color: #F90;
}

.back-icon {
  width: 16px;
  height: 16px;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  display: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 93px;
  text-align: center;
}

.hero-left {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #22364D;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 15px;
  font-weight: 400;
  color: #586D85;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-right {
  display: none;
}

.hero-image-container {
  background: linear-gradient(0deg, #FFF 0%, #FEF9F7 54.2%, #E8EEF6 100%);
  padding: 90px 0 90px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Application Form Section */
.application-form-section {
  background: #f1f3f4;
  padding: 40px 24px 80px;
  min-height: calc(100vh - 80px);
}

.application-container {
  max-width: 770px;
  margin: 0 auto;
}

.recruitment-application-form {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.form-header-apply {
  padding: 0px 24px 32px 24px;
  background: white;
}

.recruitment-main-title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: break-word;
}

.recruitment-main-description {
  font-size: 14px;
  font-weight: 400;
  color: #5f6368;
  line-height: 1.6;
  margin: 0;
}

.form-intro-apply {
  padding: 16px 24px;
  border-top: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  background: #f8f9fa;
}

.form-description-apply {
  font-size: 13px;
  font-weight: 400;
  color: #5f6368;
  margin: 0;
}

.required-indicator {
  color: #d93025;
  font-weight: 500;
}

/* Application Form */
.recruitment-application-form {
  background: var(--Blanc, #FFF);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
}

.questions-list-apply {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
}

/* Section Block */
.section-title-apply {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--Texte-principal, #1F2937);
  margin: 15px 0;
}

.section-description-apply {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--Texte-secondaire, #6B7280);
  margin: 0;
}

/* Question Block */
.question-block-apply {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.question-block-apply.question-error {
  background: #FEF2F2;
  padding: 14px 16px;
  border-radius: 8px;
}

.question-block-apply:last-child {
  border-bottom: none;
}

.question-label-apply {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--Texte-principal, #1F2937);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-mark {
  color: var(--Erreur, #EF4444);
  font-size: 16px;
  font-weight: 500;
}

/* Input Fields */
.question-input-apply,
.question-select-apply {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--Contour-Color, #DFE5EC);
  background: var(--Blanc, #FFF);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--Texte-principal, #1F2937);
  transition: all 0.3s ease;
}

.question-input-apply:focus,
.question-select-apply:focus {
  outline: none;
  border-color: #F90;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

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

.question-input-apply::placeholder {
  color: var(--Texte-placeholder, #9CA3AF);
}

.question-textarea-apply {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--Contour-Color, #DFE5EC);
  background: var(--Blanc, #FFF);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--Texte-principal, #1F2937);
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.question-textarea-apply:focus {
  outline: none;
  border-color: #F90;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.question-textarea-apply::placeholder {
  color: var(--Texte-placeholder, #9CA3AF);
}

/* Custom File Input */
.file-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #DFE5EC;
  background: #FFF;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  border-color: #C5CFD9;
  background: #F9FAFB;
}

.file-input-button {
  padding: 8px 16px;
  background: linear-gradient(135deg, #F90 0%, #CC7700 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.file-input-label:hover .file-input-button {
  background: linear-gradient(135deg, #8B5A00 0%, #16516F 100%);
}

.file-input-text {
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input-text.has-file {
  color: #1F2937;
  font-weight: 500;
}

.file-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #DFE5EC;
  background: #FFF;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.file-download-link:hover {
  background: #F9FAFB;
  border-color: #F90;
}

.download-icon {
  width: 20px;
  height: 20px;
}

/* Options */
.question-options-apply {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-option-apply,
.radio-option-apply {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--Contour-Color, #DFE5EC);
  background: var(--Blanc, #FFF);
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-option-apply:hover,
.radio-option-apply:hover {
  background: var(--Fond-gris, #F9FAFB);
  border-color: #F90;
}

.question-options-apply.checkbox-group-error .checkbox-option-apply,
.question-options-apply.checkbox-group-error .radio-option-apply {
  border-color: #EF4444;
  background: #FEF2F2;
}

.checkbox-input-apply,
.radio-input-apply {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  border: 2px solid #C5CFD9;
  background-color: #fff;
  transition: all 0.2s ease;
}

.checkbox-input-apply {
  border-radius: 4px;
}

.checkbox-input-apply:checked {
  background-color: #F90;
  border-color: #F90;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 4L5.5 10L2.5 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.radio-input-apply {
  border-radius: 50%;
}

.radio-input-apply:checked {
  border-color: #F90;
  background-color: #fff;
  box-shadow: inset 0 0 0 4px #F90;
}

.checkbox-label-text,
.radio-label-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--Texte-principal, #1F2937);
}

/* Progress Indicator */
.form-progress-container {
  padding: 24px;
  border-bottom: 1px solid #e8eaed;
  background: #f8f9fa;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 60px;
  min-width: 100px;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.progress-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #DFE5EC;
  z-index: 0;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step.active::after,
.progress-step.completed::after {
  background: #F90;
}

.progress-step.active,
.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #DFE5EC;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #F90;
  color: white;
}

.progress-step.completed .step-number {
  background: #10B981;
  color: white;
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  text-align: center;
  line-height: 1.3;
  max-width: 120px;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.progress-step.active .step-label {
  color: #F90;
  font-weight: 600;
}

.progress-step.completed .step-label {
  color: #10B981;
}

/* Sections Container */
.sections-container {
  position: relative;
  min-height: 400px;
}

.form-section {
  display: none;
  animation: fadeInSection 0.4s ease;
}

.form-section.active {
  display: block;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Actions */
.form-navigation-apply {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #e8eaed;
  background: #f8f9fa;
}

.btn-nav-prev,
.btn-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-nav-prev {
  background: white;
  color: #F90;
  border: 1px solid #DFE5EC;
}

.btn-nav-prev:hover {
  background: #F9FAFB;
  border-color: #F90;
}

.btn-nav-next {
  background: #F90;
  color: white;
  margin-left: auto;
}

.btn-nav-next:hover {
  background: #E68A00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.form-actions-apply {
  padding: 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e8eaed;
}

.btn-submit-application {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 32px;
  border-radius: 12px;
  background: #F90;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
}

.btn-submit-application:hover {
  background: #E68A00;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  transform: translateY(-2px);
}

.btn-submit-application:active {
  background: #CC7A00;
  transform: translateY(0);
}

.submit-icon {
  width: 18px;
  height: 18px;
}

/* Footer Styles */
.footer {
  background: radial-gradient(50% 50% at 50% 50%, #3A5A7C 0%, #22364D 100%);
  padding: 60px 0 40px 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 40px;
}

.footer-logo {
  flex-shrink: 0;
}

.logo-white {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-contact {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.contact-item span {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 20px;
}

.footer-social {
  display: flex;
  gap: 27px;
  align-items: center;
  flex-shrink: 0;
}

.social-link {
  text-decoration: none;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 32px;
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 56px;
  }

  .hero-description {
    font-size: 20px;
    line-height: 32px;
  }

  .hero-image-container {
    padding: 60px 40px;
  }

  .footer {
    padding: 50px 0 35px 0;
  }

  .footer-container {
    padding: 0 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-social {
    gap: 12px;
  }
}

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

  .hero-section {
    padding: 60px 0;
  }

  .hero-container {
    padding: 0 32px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 44px;
  }

  .hero-description {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-image-container {
    padding: 40px;
    min-height: 300px;
  }

  .application-form-section {
    padding: 40px 16px;
  }

  .recruitment-application-form {
    padding: 24px 16px;
  }

  .form-title-apply {
    font-size: 24px;
    line-height: 32px;
  }

  .form-progress-container {
    padding: 16px;
  }

  .progress-steps {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .progress-step {
    min-width: 80px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
    max-width: 80px;
  }

  .form-navigation-apply {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .btn-nav-prev,
  .btn-nav-next,
  .btn-submit-application {
    width: 100%;
    justify-content: center;
  }

  .file-input-wrapper {
    flex-wrap: wrap;
  }

  .file-input-label {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .file-input-button {
    text-align: center;
  }

  .file-input-text {
    text-align: center;
  }

  .file-download-link {
    width: 100%;
    height: 44px;
    margin-top: 8px;
  }

  .footer {
    padding: 40px 0 30px 0;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
  }

  .logo-white {
    height: 36px;
  }

  .contact-item span {
    font-size: 13px;
  }

  .contact-icon {
    width: 18px;
    height: 18px;
  }

  .footer-divider {
    margin-bottom: 24px;
  }

  .footer-copyright {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 0 24px;
    gap: 40px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-image-container {
    padding: 32px;
    min-height: 250px;
  }

  .btn-back-to-presentation {
    padding: 10px 16px;
    font-size: 14px;
  }

  .form-progress-container {
    padding: 12px;
  }

  .progress-step {
    min-width: 60px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    font-size: 10px;
    max-width: 60px;
    display: none; /* Masquer les labels sur très petits écrans */
  }

  .progress-step::after {
    top: 14px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-top {
    gap: 24px;
  }

  .logo-white {
    height: 32px;
  }

  .contact-item span {
    font-size: 12px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .file-input-button {
    font-size: 13px;
    padding: 6px 12px;
  }

  .file-input-text {
    font-size: 13px;
  }
}

