.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  background: #fff;
  color: #0073e6;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: left 0.2s;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 2px solid #0073e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   SECTION 1 : HERO
========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #f6f8fa;
  color: #f6f8fa;
  position: relative;
  overflow: hidden;
}
.hero__container {
  background: linear-gradient(120deg, #162139 0%, #5d5ca5 50%, #bddcb6 100%);
  background-size: 400% 400%;
  animation: gradient-move 15s ease-in-out infinite;
  height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 5rem 5rem;
}
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero__title {
  font-size: 8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  text-transform: uppercase;
}
.hero__subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero__tagline {
  font-size: 1.25rem;
  font-weight: 400;
}
.highlight {
  color: #68c6df;
  font-weight: 600;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  opacity: 1;
  z-index: 2;
}
.scroll-label {
  color: #f6f8fa;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}
.scroll-arrow {
  display: block;
  animation: scroll-bounce 1.2s infinite;
  margin-bottom: 1rem;
}
@keyframes scroll-bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-img {
  position: absolute;
  width: 120px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}
.hero-img--top-right {
  top: -20%;
  right: 15%;
  animation-delay: 0s;
}
.hero-img--bottom-left {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

/* ========================
     HERO : RESPONSIVE MOBILE
  ======================== */
@media (max-width: 480px) {
  .hero__container {
    height: 100vh;
    border-radius: 0 0 2rem 2rem;
    padding: 2rem 1rem;
  }

  .hero__content {
    padding: 0;
    align-items: center;
    width: 100%;
  }

  .hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: center;
  }

  .hero__tagline {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .hero-img {
    width: 80px;
  }

  .hero-img--top-right {
    top: auto;
    bottom: -20%;
    right: 10%;
  }

  .hero-img--bottom-left {
    top: -20%;
    bottom: auto;
    left: 10%;
  }

  .hero__scroll-indicator {
    bottom: 1.25rem;
    font-size: 0.75rem;
    gap: 0.2rem;
  }

  .scroll-arrow {
    margin-bottom: 10vh;
  }

  .scroll-arrow svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
     SECTION 2 : ENTREPRISE / CANDIDAT
  ========================================================================== */
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro .line-w {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s, transform 0.5s;
  font-family: "helvetica-neue-lt-pro", sans-serif;
  font-size: 2rem;
  margin-bottom: -2rem;
  color: #5d5ca5;
  font-weight: 700;
  text-transform: uppercase;
  justify-content: center;
  text-align: center;
}

/* --------- Conteneur principal --------- */
.container {
  padding: 4rem 2rem;
}

/* --------- Toggle Switch (bouton de sélection) --------- */
.toggle-switch {
  position: relative;
  display: flex;
  width: 340px;
  background: #eaf3f7;
  border-radius: 32px;
  padding: 4px;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 12px rgba(22, 33, 57, 0.06);
  gap: 0;
  overflow: hidden;
}
.toggle-switch .toggle-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border-radius: 28px;
  z-index: 1;
  transition: left 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    background 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  background: #6c63ff;
}
.toggle-switch.candidat-active .toggle-bg {
  left: calc(50% + 4px);
  background: #68c6df;
}
.toggle-switch .toggle-btn {
  flex: 1 1 0;
  background: none;
  border: none;
  outline: none;
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c63ff;
  padding: 0.8rem 0;
  border-radius: 28px;
  cursor: pointer;
  transition: color 0.25s, background 0.35s, box-shadow 0.35s, transform 0.18s;
}
.toggle-switch .toggle-btn[data-type="candidat"] {
  color: #68c6df;
}
.toggle-switch .toggle-btn.active {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 16px 0 rgba(104, 198, 223, 0.1);
}
.toggle-switch .toggle-btn:not(.active):hover {
  opacity: 0.8;
  transform: scale(1.03);
}

/* --------- Contenu affiché selon le toggle --------- */
.toggle-content {
  width: 50vw;
  min-height: 350px;
  margin: 2rem auto 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------- Panneaux d'information (Entreprise / Candidat) --------- */
.toggle-panel {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(20px) scale(0.98);
  width: 100%;
  color: #f6f8fa;
  border-radius: 2rem;
  padding: 2.5rem 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}
.toggle-panel.panel-entreprise {
  background: linear-gradient(120deg, #6c63ff 60%, #68c6df 100%);
}
.toggle-panel.panel-candidat {
  background: linear-gradient(120deg, #68c6df 60%, #6c63ff 100%);
}
.toggle-panel.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translateX(-50%) translateY(0) scale(1);
}
.toggle-panel.out {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

/* CTA Entreprise & Candidat */
.cta-entreprise,
.cta-candidat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.77, 0, 0.18, 1), background 0.3s,
    border-radius 0.4s;
  overflow: hidden;
  position: relative;
  padding: 0;
  gap: 0;
  margin-top: 2rem;
  background: #fff;
}

.cta-entreprise .icon i {
  font-size: 22px;
  color: #6c63ff;
  transition: color 0.4s;
}
.cta-candidat .icon i {
  font-size: 22px;
  color: #68c6df;
  transition: color 0.4s;
}

.cta-entreprise span,
.cta-candidat span {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  padding: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0 24px 24px 0;
}

.cta-entreprise:hover,
.cta-entreprise:focus,
.cta-candidat:hover,
.cta-candidat:focus {
  width: 200px;
  border-radius: 50px;
  justify-content: center;
  background: transparent;
}

.cta-entreprise:hover .icon i,
.cta-entreprise:focus .icon i,
.cta-candidat:hover .icon i,
.cta-candidat:focus .icon i {
  color: #fff;
}

.cta-entreprise:hover span,
.cta-entreprise:focus span,
.cta-candidat:hover span,
.cta-candidat:focus span {
  opacity: 1;
  max-width: 140px;
  margin-left: 0.5rem;
  color: #fff;
  padding-left: 20px;
  padding-right: 24px;
}

.cta-slider-mobile {
  display: none;
}

.slider-help {
  display: none;
}

.intro-mobile {
  display: none;
}
.intro-desktop {
  display: block;
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .toggle-switch {
    width: 100%;
    max-width: 96vw;
    min-width: 0;
    margin: 0 auto 2rem auto;
  }

  .toggle-content {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
  }
  .toggle-panel {
    display: none !important;
  }
  .toggle-panel.active {
    display: flex !important;
  }
  .cta-slider-mobile {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 340px;
    height: 56px;
    background: #eaf3f7;
    border-radius: 32px;
    margin: 1.5rem auto 0 auto;
    position: relative;
    box-shadow: 0 2px 12px rgba(22, 33, 57, 0.06);
    overflow: hidden;
    touch-action: pan-x;
    justify-content: flex-start;
    padding: 0 8px;
    align-self: center;
  }
  .cta-slider-mobile .slider-knob {
    width: 48px;
    height: 48px;
    background: #6c63ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
    transition: background 0.3s;
    cursor: pointer;
    touch-action: none;
  }
  .cta-slider-mobile[data-type="candidat"] .slider-knob {
    background: #68c6df;
  }
  .cta-slider-mobile .slider-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c63ff;
    transition: color 0.3s, transform 0.3s, background 0.3s;
    user-select: none;
    z-index: 1;
    min-height: 48px;
    text-align: center;
    pointer-events: none;
  }
  .cta-slider-mobile[data-type="candidat"] .slider-label {
    color: #68c6df;
  }
  .cta-slider-mobile .slider-label.dragging {
    color: inherit;
    background: none;
    border-radius: 24px;
    transform: scale(1.08) translateX(10px);
    box-shadow: 0 2px 16px rgba(104, 198, 223, 0.15);
  }
  .cta-entreprise,
  .cta-candidat {
    display: none !important;
  }
  .slider-help {
    display: block;
    text-align: center;
    color: #fff;
    padding-top: 0.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 340px;
  }

  .intro-desktop {
    display: none !important;
  }
  .intro-mobile {
    display: block !important;
  }
  .intro-mobile .line-w,
  .intro-desktop .line-w {
    font-size: 1.5rem !important;
    text-align: center !important;
    display: block;
  }
  .intro-mobile .line-w:last-child,
  .intro-desktop .line-w:last-child {
    margin-bottom: 0 !important;
  }
}

/* -------------------------------------------------------------------------
     Section 3 : Avis / Témoignages - Carrousel Elementor
  --------------------------------------------------------------------------- */

/* Conteneur principal du carrousel */
.elementor-testimonial-carousel,
.elementor-widget-testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Slide individuel */
.elementor-testimonial {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(22, 33, 57, 0.08);
  padding: 2.5rem 2rem;
  margin: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s;
}

.elementor-testimonial:hover {
  box-shadow: 0 8px 32px rgba(104, 198, 223, 0.15);
}

/* Texte du témoignage */
.elementor-testimonial-content {
  font-size: 1.25rem;
  color: #162139;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
}

/* Nom de l'auteur */
.elementor-testimonial-name {
  font-weight: 700;
  color: #5d5ca5;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

/* Fonction ou entreprise */
.elementor-testimonial-job {
  color: #68c6df;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Avatar */
.elementor-testimonial-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 8px rgba(104, 198, 223, 0.1);
}

/* Flèches de navigation */
.slick-arrow,
.elementor-swiper-button {
  background: #68c6df;
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(104, 198, 223, 0.1);
  font-size: 1.5rem;
  border: none;
  top: 50%;
  transform: translateY(-50%);
}

.slick-arrow:hover,
.elementor-swiper-button:hover {
  background: #5d5ca5;
}

/* Points de navigation */
.slick-dots li button:before,
.elementor-swiper-pagination-bullet {
  color: #68c6df;
  background: #eaf3f7;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  opacity: 1;
  margin: 0 4px;
}

.slick-dots li.slick-active button:before,
.elementor-swiper-pagination-bullet-active {
  background: #68c6df;
  color: #fff;
}

/* Responsive */
@media (max-width: 700px) {
  .elementor-testimonial-carousel,
  .elementor-widget-testimonial-carousel {
    padding: 1rem 0;
  }
  .elementor-testimonial {
    padding: 1.2rem 0.5rem;
    border-radius: 1rem;
  }
  .elementor-testimonial-content {
    font-size: 1rem;
  }
}

/* ------------------------Vidéo témoignage------------------------------------*/

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem 0;
}

.video-wrapper {
  position: relative;
  width: 75%;
  padding-top: 42.1875%; /* 75% of 56.25% (to preserve 16:9 ratio inside 75%) */
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 24px;
}

/*Responsive-----------------*/
@media (max-width: 480px) {
  .video-wrapper {
    width: 100%;
    padding-top: 56.25%; /* Standard 16:9 ratio */
    border-radius: 16px;
  }

  .video-wrapper iframe {
    border-radius: 16px;
  }

  .video-container {
    padding: 1.5rem 1rem;
  }
}
/*----------------------Responsive*/

/* -------------------------------------------------------------------------
     Section 4-5
  --------------------------------------------------------------------------- */
.heading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.head-three {
  color: #68c6df;
}

.section {
  overflow: hidden;
}

.wrapper {
  min-height: 100vh;
  min-width: 100vw;
}

.list {
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  display: flex;
  position: relative;
  padding: 0.2rem;
}

.item {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  position: absolute;
  inset: 0%;
  box-shadow: 0px 0px 13px 0px rgba(104, 198, 223, 0.4);
  overflow: hidden;
  background: #f6f8fa;
}

.item_content {
  background-color: #f6f8fa;
  color: #162139;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  display: flex;
  position: relative;
  width: 100vw;
}

.item img {
  object-fit: cover;
  width: 40vw;
  height: 100%;
}

.padding-global {
  padding-left: 2rem;
  padding-right: 2rem;
}

.padding-vertical {
  padding: 4rem;
}

.scroll-section.horizontal-section.section {
  background-color: #f6f8fa;
  color: #162139;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  display: flex;
  width: 100vw;
}

.swiper-slide-bg {
  border-radius: 25px;
  border: 1px solid #68c6df;
}

/* Responsive */
@media (max-width: 480px) {
  .item img {
    object-fit: cover;
    width: 100vw;
    height: 100%;
  }
  .item_content {
    padding: 2rem 1rem;
  }
  .padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .padding-vertical {
    padding: 2rem;
  }
  .scroll-section.vertical-section .list .item {
    width: 100vw;
    min-height: 100vh;
    flex-direction: column;
    display: flex;
    position: absolute;
    inset: 0%;
    box-shadow: 0px 0px 13px 0px rgba(104, 198, 223, 0.4);
    overflow: hidden;
    background: #f6f8fa;
  }
}

/* -------------------------------------------------------------------------
                        Section 6 : Contact
  --------------------------------------------------------------------------- */

.section-contact {
  width: 100vw;
  height: 50vh;
  background: linear-gradient(120deg, #162139 0%, #5d5ca5 50%, #bddcb6 100%);
  background-size: 400% 400%;
  animation: gradient-move 15s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  z-index: 2;
}

.contact-phrase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  color: #f6f8fa;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  gap: 0.5rem;
}

.contact-part {
  opacity: 0;
  position: relative;
  display: block;
  will-change: transform, opacity;
  text-align: center;
  white-space: pre-line;
}

.contact-part-3 {
  color: #68c6df !important;
  text-decoration: underline !important;
}

.contact-part-3:hover {
  color: #bddcb6 !important;
  transform: scale(1.05) !important;
  cursor: pointer;
}

/*Responsive*/
@media (max-width: 480px) {
  .section-contact {
    height: auto;
    padding: 4rem 1rem;
    text-align: center;
  }

  .contact-phrase {
    font-size: 2.5rem;
    line-height: 1.2;
    gap: 0.8rem;
    word-break: break-word;
  }

  .contact-part {
    font-size: inherit;
    line-height: 1.3;
    white-space: normal;
  }

  .contact-part-3 {
    font-size: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
  }
}

@media (max-width: 800px) {
  .toggle-panel {
    max-width: 98vw;
    padding: 1.5rem 0.5rem;
  }
  .toggle-content {
    max-width: 100vw;
    padding: 0;
  }
}

/* Affichage conditionnel intro desktop/mobile */
.intro-mobile {
  display: none;
}
.intro-desktop {
  display: block;
}
