﻿.arrow-animate {
  transition: transform 0.3s ease;
}
.small-btns .fa-light {
  transition: 0.25s all;
}
.small-btns:hover .fa-light {
  color: var(--white) !important;
}
.search-btn:hover .arrow-animate {
  transform: translateX(3px);
}
.large-input.input-group > .input-group-prepend > .input-group-text {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}
.large-input.input-group > .form-control {
  font-size: 1.3rem;
  padding: 20px;
  height: 55px;
}
.large-input.input-group > .form-control::placeholder {
  font-size: 1.1rem;
}
.large-input .form-control:active,
.large-input .form-control:focus {
  color: var(--primary);
  border-color: white;
}
.large-input .search-btn {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
.banner-position {
  bottom: -50px;
}
/* Section Témoignages */
.testimonials-section {
  position: relative;
  overflow: hidden;
}
/* Guillemet décoratif */
.quote-decoration {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 200px;
  color: rgba(255, 215, 0, 0.1);
  font-family: Georgia, serif;
  z-index: 0;
}
/* Structure du slide */
.testimonial-slide {
  padding: 15px;
  padding-left: 60px;
}
.testimonial-content {
  background-color: #fff;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}
/* Colonne image */
.testimonial-image-col {
  position: relative;
  min-height: 350px;
}
.testimonial-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}
/* Colonne texte */
.testimonial-text-col {
  padding: 40px;
  position: relative;
  background-color: #fff;
}
.testimonial-text-content {
  position: relative;
  z-index: 2;
}
.testimonial-quote {
  margin-bottom: 30px;
}
.testimonial-quote p {
  color: #333;
  font-style: italic;
}
.testimonial-author {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}
.author-name {
  color: #001f49;
  font-size: 22px;
  margin-bottom: 5px;
  font-weight: 600;
}
.author-title {
  display: inline-block;
  color: #001f49;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 500;
}
/* Navigation personnalisée */
.testimonial-nav {
  position: absolute;
  width: 105%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0;
  left: -1%;
}
.testimonial-prev,
.testimonial-next {
  background-color: transparent;
  border: none;
}
.testimonial-prev:before {
  content: "\f053";
  font-family: "Font Awesome 6 Sharp";
  color: var(--info);
  font-size: 3rem;
}
.testimonial-next:before {
  content: "\f054";
  font-family: "Font Awesome 6 Sharp";
  color: var(--info);
  font-size: 3rem;
}
/* Bouton CTA */
.cta-button {
  background-color: #ffd700;
  border-color: #ffd700;
  color: #001f49;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: white;
  border-color: white;
  color: #001f49;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
#navbar_top.fixed-top .list-inline-item:last-child {
  display: block;
}
.form-header {
  height: 100vh;
  max-height: 700px;
  min-height: calc(100vh - 330px);
  overflow: inherit;
}
.filter-flters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.filter-flters label {
  cursor: pointer;
}
/* Styles responsifs */
@media (max-width: 992px) {
  .testimonial-image-col {
    min-height: 250px;
  }
  .testimonial-text-col {
    padding: 30px;
  }
  .testimonial-image-col:after {
    display: none;
  }
  .testimonial-quote p {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .bg-hexagon-left h2 {
    font-size: 9vw !important;
  }
  #mobile-buttons .list-inline-item {
    margin-right: -5px;
  }
  .testimonial-nav {
    position: relative;
    margin-top: 30px;
    justify-content: center;
    gap: 20px;
  }
  .testimonial-prev,
  .testimonial-next {
    position: relative;
    left: auto;
    right: auto;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .testimonial-content {
    max-width: 450px;
    margin: 0 auto;
  }
  .testimonial-slide {
    padding: 15px 25px;
  }
  .mobile-container {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Timeline Section Styles */
.timeline-section {
  position: relative;
  overflow: hidden;
}
.timeline-nav {
  position: relative;
  padding: 1rem 0;
}
.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 31, 73, 0.1);
  transform: translateY(-50%);
}
.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--secondary);
  transition: width 0.5s ease-in-out;
}
.timeline-dates {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.timeline-date {
  background: #fff;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 31, 73, 0.1);
  font-family: var(--font-family-sans-serif);
}
.timeline-date.active {
  color: var(--primary);
  background: var(--secondary);
  transform: scale(1.1);
}
.timeline-date:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 31, 73, 0.15);
}
.form-control-file {
  width: 100%;
  padding: 0.75rem;
  border: 2px dashed #ced4da;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
}
.form-control-file:hover {
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
}
.form-control-file:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-control-file::file-selector-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}
.form-control-file::file-selector-button:hover {
  background-color: var(--primary);
  filter: brightness(0.9);
}
/* ===========================
Desktop & Tablet (>= 768px)
=========================== */
@media (min-width: 768px) {
  /* Neutraliser d-md-flex de Bootstrap pour éviter de casser Slick */
  .timeline-container {
    overflow: hidden;
    position: relative;
    display: block !important; /* override d-md-flex */
    align-items: stretch !important;
    padding: 20px 0;
    margin-left: 0;
  }
  .timeline-wrapper {
    position: relative;
    width: 100%;
    /* pas de hauteur forcée -> adaptiveHeight fonctionne */
  }
  /* Important: ne pas forcer slick-track en flex */
  .timeline-wrapper .slick-track {
    display: block !important;
  }
  .timeline-slide {
    transition: all 0.5s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    outline: none;
  }
  .timeline-slide .card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 31, 73, 0.1);
    transition: all 0.5s ease;
    background: #fff;
    padding: 2rem;
    width: 100%;
    margin: 0 auto;
  }
  .timeline-arrow {
    position: absolute;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 31, 73, 0.1);
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
  }
  .timeline-prev {
    top: 20px;
  }
  .timeline-next {
    bottom: 20px;
  }
  .slick-vertical .slick-slide {
    min-height: initial;
  }
  .timeline-container::before,
  .timeline-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
  }
  .timeline-container::before {
    top: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .timeline-container::after {
    bottom: 0;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}
/* ===========================
Large screens (>= 992px)
=========================== */
@media (min-width: 992px) {
  .timeline-slide h3 {
    font-size: 2.25rem;
  }
  .timeline-arrow {
    right: 20px;
    width: 45px;
    height: 45px;
  }
  .timeline-prev {
    top: 20px;
  }
  .timeline-next {
    bottom: 20px;
  }
  .slick-vertical .slick-slide {
    min-height: initial;
  }
  .slick-vertical .slick-slide:last-child {
    margin-bottom: 0;
  }
}
/* ===========================
Mobile (<= 767px)
=========================== */
@media (max-width: 767px) {
  h2.titre-surligne {
    font-size: 1.75em;
  }
  .timeline-container {
    height: auto;
    overflow: visible;
    position: relative;
    margin-left: 0;
  }
  .timeline-wrapper {
    position: relative;
    display: block;
  }
  .timeline-nav {
    position: relative;
    padding: 0;
  }
  .timeline-slide {
    opacity: 1;
    transform: none;
    min-height: auto;
    padding: 15px 20px;
    position: relative;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  .slick-slider .slick-list {
    height: auto !important;
    padding: 0 10px;
  }
  .timeline-slide .card-body {
    padding: 5px;
  }
  .timeline-arrow {
    display: none;
  }
  /* Mobile dates navigation */
  .timeline-dates-mobile {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-dates-mobile .timeline-date {
    margin: 0 5px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Slick specific styles for mobile */
  .timeline-mobile-slider .slick-slide {
    padding: 0 10px;
  }
  .timeline-mobile-slider .slick-prev,
  .timeline-mobile-slider .slick-next {
    z-index: 10;
    transition: all 0.3s ease;
  }
  .timeline-mobile-slider .slick-prev {
    left: -25px;
  }
  .timeline-mobile-slider .slick-next {
    right: -25px;
  }
  .timeline-slide .d-flex {
    flex-direction: column;
  }
  .timeline-slide .card {
    margin: 0;
    width: 100%;
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 31, 73, 0.1);
    transition: all 0.5s ease;
    background: #fff;
    padding: 1rem;
    position: relative;
    overflow: hidden;
  }
  .timeline-slide .card h3 {
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    font-family: var(--font-family-sans-serif);
  }
  .timeline-slide .card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: var(--font-family-sans-serif);
  }
  .timeline-arrow:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
  }
}
@media (max-width: 575.98px) {
  .form-header {
    max-height: 700px;
  }
  .formulaire-entree h2,
  .bg-hexagon-left h2 {
    color: var(--secondary);
    text-align: left;
    font-weight: 100 !important;
    font-size: 2.75rem;
    margin-bottom: 2rem;
  }
  .timeline-mobile-slider .slick-track {
    align-items: start;
  }
}
/* Neutraliser d-md-flex afin de ne pas casser le layout Slick */
@media (min-width: 768px) {
  .timeline-container {
    display: block !important;
    position: relative;
    padding: 20px 0;
    overflow: visible; /* évite des coupes si un recalcul est en retard */
  }
  /* Laisser Slick gérer la géométrie du track */
  .timeline-wrapper .slick-track {
    display: block !important;
  }
  /* On animera la hauteur du viewport via JS */
  .timeline-wrapper .slick-list {
    transition: height 0.5s ease-in-out;
    /* Slick met overflow:hidden; on le conserve */
  }
  /* Les slides restent flex pour centrer le contenu, sans min-height imposée */
  .timeline-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
  }
  /* Les masques décoratifs peuvent rester, mais si vous voyez encore des coupes,
commentez temporairement ces pseudo-éléments pour vérifier. */
  .timeline-container::before,
  .timeline-container::after {
    pointer-events: none;
    z-index: 2;
    height: 120px;
  }
}
/* Fin timeline */
@media (max-width: 1280px) {
  #mobile-buttons .list-inline-item {
    padding-top: 3px;
    padding-bottom: 5px;
  }
  .small-btns {
    height: 3.1rem !important;
    width: 2.9rem !important;
    margin-bottom: 0.8rem;
    margin-left: 0.5rem;
  }
  .small-btns i {
    font-size: 3em;
  }
  .small-btns .fa-file-signature {
    position: relative;
    left: 4px;
  }
}
.badge-white {
  background-color: white;
}
.text-xs {
  font-size: 60%;
  line-height: 0rem;
}
/* Pagination - Design épuré et moderne */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0;
  color: #6c757d;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.pagination .page-link:hover {
  color: var(--secondary);
  background-color: #f8f9fa;
  border-color: var(--secondary);
}
.pagination .page-item.active .page-link {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}
.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #fff;
  border-color: #e9ecef;
  cursor: not-allowed;
}
.pagination .page-item.disabled .page-link:hover {
  color: #adb5bd;
  background-color: #fff;
  border-color: #e9ecef;
}
/* Responsive */
@media (max-width: 576px) {
  .pagination {
    gap: 4px;
  }
  .pagination .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
.dropdown .dropdown-offres {
  display: none;
  transition: all 0.3s ease-in;
  border-radius: 15px;
}
.dropdown:hover > .dropdown-offres {
  display: block;
}
@media (max-width: 991px) {
  #candidatureModal .modal-dialog {
    max-width: 90% !important;
    margin: 1.75rem auto !important;
  }
}
.text-capitalize-first {
  text-transform: inherit !important;
}
.text-capitalize-first::first-letter {
  text-transform: capitalize;
}
.no-wrap {
  white-space: nowrap;
}
.sticky-apply-banner {
  position: sticky;
  bottom: 20px;
  width: calc(100% - 70px);
  z-index: 1000;
  /* État initial caché */
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  /* Transition pour les animations */
  transition: all 0.3s ease-out;
}
/* État visible */
.sticky-apply-banner.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
/* Animation d'entrée */
.sticky-apply-banner.entering {
  visibility: visible;
  opacity: 0;
  transform: translateY(100%);
}
/* Animation de sortie */
.sticky-apply-banner.leaving {
  visibility: visible;
  opacity: 0;
  transform: translateY(100%);
}
/* Optimisation pour les performances */
.sticky-apply-banner {
  will-change: transform, opacity;
}
/* Mobile - Toujours visible en dessous du breakpoint md (768px) */
@media (max-width: 767.98px) {
  .sticky-apply-banner {
    width: calc(100% - 40px);
    bottom: 15px;
    /* Toujours visible sur mobile */
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
/* Desktop - Comportement conditionnel */
@media (min-width: 768px) {
  .sticky-apply-banner {
    width: calc(100% - 70px);
    bottom: 20px;
  }
}
.article-card {
  position: relative;
}
