/* styles.css */

/* spalch screen */
.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 20px;
}
.title {
  font-size: 2.5rem;
  color: #006699;
  margin-bottom: 1.5rem;
  font-weight: bold;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #006699;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.button {
  background-color: #006699;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}
.button:hover {
  background-color: #005588;
}


/* progressBar */
.step-wrapper {
  padding-top: 25px;
  margin: 0 30px;
}
.navigation-steps-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.navigation-steps {
  display: flex;
  width: 100%;
  justify-content: center;
}

.navigation-step {
  position: relative;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}
.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 15px;
  width: 100%;
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #3B95BE;
  border-radius: 5px;
  height: 48px;
  padding: 0 14px;
  opacity: 0.6;
}

.charge-description {
  margin-top: 60px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Outfit';
  display: flex;
  align-items: center;
}

.step-label {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit';
}
.navigation-step.active .step-text {
  opacity: 1;
}

.step-subtitle {
  font-size: 10px;
  font-weight: 400;
  font-family: 'Outfit';
}

.step-arrow {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: white;
  z-index: 2;
}

.navigation-step.disabled {
  opacity: 0.8;
  cursor: default;
}

.navigation-steps {
  padding: 0 5px;
}

.navigation-step.active {
  border-radius: 4px;
}

/* renderExtensionTypeStep */
.extension-type-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.extension-type-title {
  margin-bottom: 20px;
  font-size: 28px;
}
.extension-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 600px;
}
.extension-type-button {
  padding: 20px;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.extension-type-button.selected {
  background-color: #006699;
  color: #fff;
}
.extension-type-button-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}
.extension-type-button-subtitle {
  font-size: 0.9em;
  color: #666;
}
.extension-type-button-subtitle.selected {
  color: #fff;
}

/* renderOption */
.option {
  border: 1px solid #3B95BE;
  border-radius: 15px;
  padding: 26px;
  cursor: pointer;
  position: relative;
}
.option.selected {
  background: #3B95BE;
}
.option:hover {
  background:  #3F7DA2;
  border: 1px solid #fff;
}
.option-image-wrapper {
  background: #fff;
  border-radius: 15px;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.option-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.option-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 5px 0;
  flex-direction: column;
}
.option-title {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 10px;
  font-family: 'Outfit';
}
.option-description {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  font-family: 'Outfit';
}
/* selections */
.selections-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: none;
}
.selections-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.selections-item {
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
}
.selections-cc {
  margin: 5px 0;
  font-size: 1rem;
  color: #006699;
}

/* renderStep5 */
.step5-container {
  margin-bottom: 20px;
}
.step5-length-section {
  margin-bottom: 20px;
}
.step5-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.step5-select {
  width: 30%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.step5-charge-section {
  margin-bottom: 20px;
  opacity: 1;
}
.step5-charge-section.disabled {
  opacity: 0.5;
}
.step5-charge-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.step5-charge-details {
  font-size: 14px;
  color: #666;
}
.step5-charge-error {
  font-size: 19px;
  color: #721c24;
  background: #fff;
  padding: 18px;
  margin-left: 37px;
  border-radius: 6px;
  font-family: 'Outfit';
}
.step5-input {
  width: 30%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}
.step5-input.disabled {
  background-color: #f3f4f6;
}
.step5-input.error {
  border: 1px solid #dc2626;
}
.step5-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #006699;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* renderResultsStep */
.results-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  }
  .results-title {
  font-size: 1.5rem;
  font-weight: bold;
  }
  .filters-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  }
  .filters-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  }
  .filter-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  background-color: #f8fafc;
  min-width: 200px;
  position: relative;
  }
  .filter-checkbox {
  margin-right: 8px;
  }
  .loading-indicator {
  text-align: center;
  padding: 20px;
  margin: auto;
  color: #fff;
  }
  .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  }
 
 
  .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 300px;
  min-height: 300px;
  }
  .product-family-badge {
  background-color: #4f46e5;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: bold;
  }
  .product-title {
    margin: 0;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    font-family: 'Outfit';
}
  .product-details {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
  }
  .product-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #006699;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  }
  .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  }

  /* renderStep */ 
  .step-title {
      color: #fff;
      font-size: 34px;
      text-align: left;
      max-width: 800px;
      margin: 42px 0;
      font-weight: 100;
      font-family: 'Outfit';
  }
  .options-container {
      margin-top: 20px;
  }
  @media (max-width: 768px) {
      .step-title {
          font-size: 20px;
          margin-bottom: 20px;
      }
  }
  .app-container {
      flex: 1;
      overflow-y: auto; 
      height: 100vh; 
      padding: 20px;
      padding: 2% 8%;
  }
  .options-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
  .navigation-container {
      display: flex;
      padding: 20px 0;
      width: 100%;
      justify-content: flex-start !important;
      gap: 20px;
  }
  .navigation-container span {
      font-weight: 700;
      font-family: 'Outfit';
      font-size: 20px;
  }
  button.button-next svg {
      margin-left: 20px !important;
  }
  .button-previous {
      padding: 10px 20px;
      cursor: pointer;
      background-color: #4b5563;
      color: #fff;
      border: none;
      border-radius: 4px;
  }
  .button-next {
      background-color: #006699; /* Couleur bleue comme dans l'image */
      color: white;
      border: none;
      border-radius: 25px; /* Bords arrondis */
      padding: 10px 20px;
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .button-next:hover {
      background-color: #005588; 
  }
  
  .button-next:disabled {
      background-color: #cccccc;
      cursor: not-allowed;
      opacity: 0.7;
  }
  .button-previous {
      cursor: pointer;
      background-color: #3F7DA2;
      color: #006699;
      border-radius: 10px;
  }
  .navigation-container {
      margin-top: 35px;
  }
  button.button-previous, button.button-next {
      padding: 16px 35px;
  }
  button.button-previous svg {
      margin-left: 0 !important;
  }
  button.button-previous:hover {
      background: #3F7DA2;
      opacity: 0.8;
  }
  button.button-next:hover {
      opacity: 0.8;
  }
  
  .button-next:disabled {
          opacity: 0.5;
          cursor: not-allowed;
      background-color: #fff;
      color: #006699;
      border-radius: 10px;
      padding: 16px 40px 16px 30px;
  }
      
  .button-next:not(:disabled) {
      opacity: 1;
      cursor: pointer;
      background-color: #fff;
      color: #006699;
      border-radius: 10px;
      padding: 16px 40px 16px 30px;
  }
      
      .button-next {
      opacity: 0.5;
      cursor: not-allowed;
      }
      .results-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      }
      .results-title {
      font-size: 1.5rem;
      font-weight: bold;
      }
      .filters-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      width: 100%;
      max-width: 800px;
      }
      .filters-row {
      display: flex;
      gap: 30px;
      align-items: flex-start;
      justify-content: flex-start;
      }
      .filter-box {
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 15px;
      background-color: #f8fafc;
      min-width: 200px;
      }

      .filter-checkbox {
      margin-right: 8px;
      }
      .filter-label {
        cursor: pointer;
        font-size: 13px;
        font-weight: 400;
      }
     
      
      .products-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      }
      
      
      .product-family-badge {
      background-color: #4f46e5;
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
      font-size: 0.8rem;
      margin-bottom: 8px;
      font-weight: bold;
      }
      
      .product-details {
      margin-bottom: 15px;
      font-size: 0.9rem;
      color: #666;
      }
      .product-link {
      display: inline-block;
      padding: 8px 16px;
      background-color: #006699;
      color: #ffffff;
      text-decoration: none;
      border-radius: 4px;
      text-align: center;
      font-weight: bold;
      }
      .no-results {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px;
      }

      /* home */
      .btn-flex {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          margin: 0 37px;
          gap: 45px;
      }
      .btn.btn-dec a {
          border: 1px solid #3F7DA2;
          max-width: 300px;
          padding: 10px 0;
          border-radius: 10px;
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 10px;
      }
      .btn.btn-dec.configa a {
          color: #fff;
          background: #3F7DA2;
      }
      .page-template-page-react .top-bar.top-bar-align-left , .page-template-page-react header#masthead , .page-template-page-react .search-products,
      .page-template-page-react div#get-form , .page-template-page-react .site-footer , .page-template-page-react .grid-container.breadcrumb-container {
          display: none;
      }

      .page-template-page-react , .page-template-page-react div#page {
          background: #006699;
          height: 100vh;
          overflow: hidden;
      }
      .page-template-page-react .grid-container {
          margin: 0;
          width: 100%;
          max-width: 100%;
          padding: 0;
      }

    /* colone gauche */
    .main-container {
      display: flex;
      width: 100%;
  }
  
  .content-wrapper {
      display: flex;
      width: 100%;
      height: 100vh;
      overflow: hidden; 
  }
  .image-sidebar {
      display: flex;
      flex-direction: row;
      position: sticky;
      top: 0;
      height: 100vh; 
      max-height: 100vh;
      min-width: 420px; 
  }
  
  .image-sidebar .sidebar-image-container {
      width: 140px;
      height: 100%;
      min-width: 140px;
      position: relative; 
  }
  .sidebar-image-container.sidebar-container-1 .sidebar-image-wrapper  {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 95%;
      width: 100%;
  }
  .sidebar-image-container.sidebar-container-2 .sidebar-image-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
  }
  .sidebar-image-container.sidebar-container-3 .sidebar-image-wrapper {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 87%;
      width: 100%;
  }
  .sidebar-image-wrapper img {
      height: 100%;
      width: 100%;
  }

  /* Style pour le logo CHAMBRELAN */
  .logo-container {
      display: flex;
      justify-content: center;
      padding: 15px 0;
      background-color: #006699;
      width: 100%;
    }
    
    .chambrelan-logo-link {
      display: inline-block;
      transition: opacity 0.3s;
    }
    
    .chambrelan-logo-link:hover {
      opacity: 0.9;
    }
    
    .chambrelan-logo-img {
      max-height: 40px; /* Ajustez selon la taille de votre logo */
      width: auto;
    }
    
    /* Ajustements pour le conteneur principal */
    .main-container {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    
    .content-wrapper {
      display: flex;
      width: 100%;
    }

/* poupup */
.fullscreen-popup-image-container img {
  width: 100%;
  height: 100%;
  max-width: 960px;
  max-height: 550px;
}
.info-button {
    background-color: #3F7DA2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 13px;
    margin-right: 27px;
    padding: 4px 13px;
    border-radius: 4px;
}

.option-image-wrapper {
  margin-bottom: 10px;
  display: block;
}

/* Style de l'image */
.option-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}


.info-button:hover , .option:hover .info-button {
  background-color: #004d73;
  transform: scale(1.1);
}

.info-icon {
  font-size: 14px;
}

/* Styles pour la popup plein écran */
.fullscreen-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 8% 0;
}

.fullscreen-popup-content {
  background-color: white;
  border-radius: 20px;
  width: 91%;
  max-width: 960px;
 
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.4s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.fullscreen-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: none;
  font-size: 28px !important;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-popup-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
}

.fullscreen-popup-image {
  width: 100%;
  object-fit: contain;
}

.fullscreen-popup-text {
  padding: 30px;
}

.fullscreen-popup-title {
  font-size: 24px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  font-family: 'Outfit';
  text-transform: capitalize;
}

.fullscreen-popup-description {
  font-size: 18px;
  line-height: 1.6;
  color: #000000;
  font-weight: normal;
  font-family: 'Outfit';
}

/* Animations de fondu */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}



@media screen and (min-width: 1600px) {
  .app-container {
      padding: 2% 17%;
  }
}



/* Animation de bas vers le haut pour les images 1 et 3 (extrémités) */
@keyframes slideFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation de haut vers le bas pour l'image 2 (centre) */
@keyframes slideFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Appliquer l'animation aux conteneurs d'images */
.sidebar-image-container.sidebar-container-1 .sidebar-image-wrapper,
.sidebar-image-container.sidebar-container-3 .sidebar-image-wrapper {
  animation: slideFromBottom 1.2s ease-out forwards;
}

.sidebar-image-container.sidebar-container-2 .sidebar-image-wrapper {
  animation: slideFromTop 1.2s ease-out forwards;
}

/* Ajouter un délai différent pour chaque image pour un effet en cascade */
.sidebar-image-container.sidebar-container-1 .sidebar-image-wrapper {
  animation-delay: 0.2s;
}

.sidebar-image-container.sidebar-container-2 .sidebar-image-wrapper {
  animation-delay: 0.4s;
}

.sidebar-image-container.sidebar-container-3 .sidebar-image-wrapper {
  animation-delay: 0.6s;
}

/* S'assurer que les images sont cachées avant le début de l'animation */
.content-wrapper {
  overflow-x: hidden;
}

.sidebar-image-container .sidebar-image-wrapper {
  opacity: 0;
}

/* Le CSS que vous avez déjà pour positionner les images reste inchangé */
.image-sidebar {
  display: flex;
  flex-direction: row;
  position: sticky;
  top: 0;
  height: 100vh; 
  max-height: 100vh;
  min-width: 420px; 
}

.image-sidebar .sidebar-image-container {
  width: 140px;
  height: 100%;
  min-width: 140px;
  position: relative; 
}

.sidebar-image-container.sidebar-container-1 .sidebar-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 95%;
  width: 100%;
}

.sidebar-image-container.sidebar-container-2 .sidebar-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.sidebar-image-container.sidebar-container-3 .sidebar-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 87%;
  width: 100%;
}
/* Animations pour le fade in/out */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Classes pour les animations du contenu */
.content-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.content-fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

/* Styles améliorés pour le sélecteur de longueur */
.length-selector-container {
  width: 100%;
  padding: 20px 0px 26px;
  color: white;
  background-color: #006699;
  border-radius: 0;
  margin-bottom: 0px;
  box-sizing: border-box;
}

.length-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.length-selector-header h3,.charge-selector-header h3 {
  font-size: 36px;
  font-weight: 100;
  margin: 0;
  font-family: 'Outfit';
  color: #fff;
}

.length-display {
  font-size: 30px;
  font-weight: bold;
  font-family: sans-serif;
  transition: all 0.1s ease;
}

.slider-container {
  position: relative;
  height: 100px;
  padding-top: 25px;
  cursor: pointer;
  user-select: none;
  margin: 0 10px;
}

.slider-track {
  position: absolute;
  top: 25px;
  width: 100%;
  height: 12px;
  z-index: 1;
}

.slider-track-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 4px;
}

.slider-track-progress {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #88D7B0 60%, #3B95BE 100%);
  border-radius: 4px;
  transition: width 0.1s ease;
}

.slider-marks {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slider-mark {
  position: absolute;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 2;
}

.mark-indicator {
  width: 8px;
  height: 24px;
  background-color: white;
  border-radius: 2px;
  margin: 0 auto;
  transition: all 0.2s ease;
}

/*.slider-mark.active .mark-indicator {
  width: 16px;
  background-color: #888;
}*/

.mark-label {
  position: relative;
  top: 15px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  font-family: sans-serif;
}

.slider-thumb {
  position: absolute;
  top: 14px;
  width: 30px;
  height: 30px;
  background-color: #888;
  border: 3px solid white;
  border-radius: 6px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: grab;
  transition: left 0.1s ease, background-color 0.2s ease;
}

.slider-thumb:active {
  cursor: grabbing;
  background-color: #666;
}

/* Style supplémentaire pour les marques de graduation */
.slider-mark:first-child .mark-indicator,
.slider-mark:last-child .mark-indicator {
  height: 36px;
  top: 0px;
  position: relative;
}

/* Nouvelle classe pour la valeur actuelle affichée sous le slider */
.current-value-text {
  text-align: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-family: sans-serif;
  visibility: hidden; /* Masqué par défaut, visible pendant le glissement */
}

/* Afficher la valeur actuelle pendant le glissement */
.slider-container:active + .current-value-text,
.slider-container:focus + .current-value-text,
.slider-container:hover + .current-value-text {
  visibility: visible;
}

/* Pour adapter le style aux écrans plus petits */
@media (max-width: 768px) {
  .length-selector-header h3 {
    font-size: 22px;
  }
  
  .length-display {
    font-size: 24px;
  }
  
  .mark-label {
    font-size: 14px;
  }
}

/* Styles pour le slider de charge */
.charge-selector-container {
    width: 100%;
    padding: 20px 0px 20px;
    color: white;
    background-color: #006699;
    border-radius: 0;
    margin-bottom: 0px;
    box-sizing: border-box;
}

.charge-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}



.charge-display {
  font-size: 30px;
  font-weight: bold;
  font-family: sans-serif;
  transition: all 0.1s ease;
}

.slider-container {
  position: relative;
  height: 60px;
  padding-top: 25px;
  cursor: pointer;
  user-select: none;
  margin: 0 10px;
}

.slider-container.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.slider-track-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 4px;
}

.slider-marks {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slider-mark {
  position: absolute;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 2;
  top: 13px !important;
}

.mark-indicator {
  width: 12px !important;
  height: 20px !important;
  background: linear-gradient(90deg, #F6F6F7 0%, #B7B7B7 100%);
  margin: 0 auto;
  transform: translateY(-2px);
}

.mark-label {
  position: relative;
  top: 12px;
  text-align: center;
  color: white;
  font-size: 14px;
  font-family: sans-serif;
}

.slider-thumb {
  position: absolute;
  top: 17px;
  width: 24px;
  height: 24px;
  background-color: #ccc;
  border: 2px solid white;
  border-radius: 4px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: grab;
  transition: left 0.1s ease;
}

.slider-thumb:active {
  cursor: grabbing;
  background-color: #aaa;
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  padding: 0 5px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.min-value {
  text-align: left;
}

.max-value {
  text-align: right;
}

/* Pour adapter le style aux écrans plus petits */
@media (max-width: 768px) {
  .charge-selector-header h3 {
    font-size: 22px;
  }
  
  .charge-display {
    font-size: 24px;
  }
  
  .mark-label {
    font-size: 12px;
  }
}

/* Conteneur principal du curseur SVG */
.slider-thumb-container {
  position: absolute;
  top: 56%;
  transform: translate(-50%, -50%) !important; /* Important pour préserver l'alignement vertical */
  cursor: grab;
  z-index: 10;
  touch-action: none;
}

/* Style du curseur lorsqu'il est en train d'être déplacé */
.slider-thumb-container:active {
  cursor: grabbing;
}

/* Style SVG du curseur */
.custom-thumb-svg {
  display: block;
  pointer-events: none; /* Permet aux événements de passer au conteneur parent */
}

/* Si vous rencontrez des problèmes avec la position verticale du curseur */
.slider-container {
  position: relative;
  padding: 10px 0; /* Si nécessaire, ajoutez un peu d'espace vertical */
}

/* Masquez l'ancien curseur si nécessaire */
.slider-thumb {
  display: none;
}


/* Styles pour la page des produits */
.products-page-container {
  width: 100%;
  color: white;
}

/* En-tête avec titre et compteur */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.products-title {
  font-size: 36px;
  color: #fff;
  font-weight: 100;
  font-family: 'Outfit';
}

.products-count {
  text-align: right;
}

.count-number {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Outfit';
}

.count-text {
  font-size: 24px;
  color: linear-gradient(90deg, #88D7B0 60%, #3B95BE 100%);
  background: linear-gradient(90deg, #88D7B0 60%, #3B95BE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-family: 'Outfit';
}

.count-total {
font-size: 15px;
font-weight: 400;
font-family: 'Outfit';
}

/* Section des filtres */
.filters-section {
  margin-bottom: 30px;
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.filter-box {
  background-color: rgba(59, 149, 190, 0.5); /* Bleu semi-transparent */
  border-radius: 8px;
  padding: 15px 20px;
}

.filter-title {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  font-family: 'Outfit';
  position: absolute;
  top: 0;
  margin-top: -29px;
  background: #197ba9;
  padding: 4px 10px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-direction: column;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-right: 8px;
  cursor: pointer;
  margin-bottom: 0;
}

.filter-checkbox {
  margin-right: 8px;
  cursor: pointer;
}

.filter-box.materials-filter label.filter-option input.filter-checkbox:checked{
  -webkit-appearance: none !important;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M4.5 8.5L2 6l-1 1 3.5 3.5 7-7-1-1z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
.filter-box.materials-filter label.filter-option input.filter-checkbox {
  -webkit-appearance: none !important;
  appearance: none;
  background-color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 5px;
}

label.filter-option.filter-option-ac input.filter-checkbox:checked {
  background-color: #52A2FF;
  border: 1px solid #52A2FF;
}
label.filter-option.filter-option-al input.filter-checkbox:checked {
  background-color: #88D7B0;
  border: 1px solid #88D7B0;
}
label.filter-option.filter-option-in input.filter-checkbox:checked {
  background-color: #FF7777;
  border: 1px solid #FF7777;
}
label.filter-option.filter-option-co input.filter-checkbox:checked {
  background-color: #000;
  border: 1px solid #000;
}

label.filter-option.filter-option-ac input.filter-checkbox {
    border: 1px solid #52A2FF;
}
label.filter-option.filter-option-al input.filter-checkbox {
  border: 1px solid #88D7B0;
}
label.filter-option.filter-option-in input.filter-checkbox {
  border: 1px solid #FF7777;
}
label.filter-option.filter-option-co input.filter-checkbox {
  border: 1px solid #000;
}
/* Grille des produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background-color: rgba(59, 149, 190, 0.5);
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 20px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



.product-card.product-recommended {
  position: relative;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.product-card.product-cheapest::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-right: 2px solid #28a745;
    border-bottom: 2px solid #28a745;
    border-left: 2px solid #28a745;
} 
.product-card.product-recommended::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border-right: 2px solid #d9b665;
  border-bottom: 2px solid #c4a057;
  border-left: 2px solid #b18b4a;
}

.recommended-banner {
  background: linear-gradient(90deg, #AF8949 0%, #D9B765 100%);
  color: white;
  text-align: center;
  padding: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 15px 15px 0 0;
  width: 100%;
  position: absolute;
  top: -14px;
  left: 0;
  margin-top: -18px;
  pointer-events: none; /* AJOUTEZ CETTE LIGNE */
  font-size: 13px;
  letter-spacing: 3.2px;
  font-weight: 700;
  font-family: 'Outfit';
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: absolute;
  right: 0;
  margin-right: 22px;
  top: 0;
  margin-top: 18px;
}



.material-badge {
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  font-family: 'Outfit';
}

.acier-badge {
  background-color: #4299e1; /* Bleu */
}

.aluminium-badge {
  background-color: #68d391; /* Vert */
}

.inox-badge {
  background-color: #f56565; /* Rouge */
}

.composite-badge {
  background-color: #000000; /* Noir */
}

.product-image-container {
  background-color: white;
  padding: 10px;
  border-radius: 15px;
}



.product-description {
  padding: 15px 0;
  padding-bottom: 0;
}

.product-type {
  margin: 0;
  font-size: 21px;
  color: #fff;
  font-weight: 700;
  font-family: 'Outfit';
}

.product-subtype {
margin: 0;
font-size: 12px;
color: #fff;
font-weight: 400;
font-family: 'Outfit';
}

.product-specs {
  padding: 10px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.spec-label {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit';
}

.spec-value {
font-size: 15px;
font-weight: 400;
font-family: 'Outfit';
}

.product-button {
  display: block;
  background: rgba(17, 32, 54, 1);
  color: white;
  text-align: center;
  padding: 10px;
  margin: 0 0 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.product-button:hover {
  opacity: 0.8;
  color: #fff;
}

.no-results, .no-products-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.results-api-container {
  margin-bottom: 30px;
  margin-top: 65px;
}

/* Responsive */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-header {
    flex-direction: column;
  }
  
  .products-count {
    text-align: left;
    margin-top: 10px;
  }
  
  .filters-container {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Styles pour la transition des images */
.option-image {
  transition: opacity 0.3s ease;
  width: 100%;
  height: auto;
  object-fit: contain;
}



/* Styles pour la précharge des GIFs */
.preload-gif {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


.loading-popup-overlay {
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.loading-popup-content {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  width: 90%;
  animation: fadeInUp 0.4s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.loading-popup-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #006699;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-popup-text {
  color: #006699;
  font-size: 20px;
  text-align: center;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.charge-display-wrapper input[type="number"] {
  width: 100%;
  max-width: 100px;
}

ul.col-avert {
  list-style: none;
  margin: 0;
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 80px 35px 50px 35px;
  border-radius: 8px;
  width: 445px;
  max-width: 100%;
  position: relative;
}

.popup-close {
  position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    font-size: 28px !important;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content input,
.popup-content select,
.popup-content textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
}

.submit-button {
  padding: 10px 20px;
  background-color: #006699;
  color: white;
  border: none;
  cursor: pointer;
}

.popup-message {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

.custom-contact-wrapper {
  margin-top: 39px;
  cursor: pointer;
  color: #006699;
  font-size: 16px;
}
.col-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .content-wrapper {
    display: none;
  }
  .col-mobile {
    text-align: center;
    position: absolute;
    top: 10%;
    padding: 20px;
    color: #fff;
    font-size: 32px;
    display: block;
  }
}

.popup-message {
  color: red;
}

.length-dropdown {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-top: 10px;
  max-width: 218px;
}
.show-more-container {
    text-align: center;
    margin-top: 20px;
}

.alertes-section {
    background-color: rgba(59, 149, 190, 0.5);
    border-radius: 8px;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
}
.alertes-section ul {
    color: #fff;
}
.alertes-section h3 {
    margin-bottom: 10px;
    color: #fff;
}
.alertes-section > ul {
    margin: 0 25px;
}

.option.hide {
    pointer-events: none;
    opacity: 0.6;
}
.option.hide .option-image-wrapper img {
    width: 236px;
    margin: auto;
    object-fit: contain;
}
.mark-inches {
    font-size: 9px;
    margin-top: 10px;
    min-width: 50px;
}
span.mark-unit {
    font-size: 10px;
    margin-left: 3px;
}
.slider-mark {
    width: 52px;
}
.mark-range {
    font-size: 10px;
    width: 82px;
}
span.col-ligne {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.charge-display-wrapper {
    width: 136px;
}
.filters-section {
    margin-top: 40px;
}
.cheapest-banner {
    background-color: #28a745; 
    color: white;
}

.cheapest-banner {
  background-color: #28a745; 
  color: white;
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  top: 0;
  padding: 10px;
  margin-top: -33px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit';
  text-transform: uppercase;
  letter-spacing: 3.2px;
  border-radius: 15px 15px 0 0;
  pointer-events: none; /* AJOUTEZ CETTE LIGNE */
}

.product-card.product-recommended.product-cheapest .cheapest-banner {
   display: none;
}
.product-card.product-cheapest {
    position: relative;
}

.option.option-redirect img {
    object-fit: contain;
}



.step0-container {
  min-height: 400px;
  text-align: center;
  padding: 0px 10px;
}

.step0-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #006699;
}

.step0-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Outfit';  
  color: #fff;
  text-align: left;
}

.step0-loading {
  margin-bottom: 30px;
  font-style: italic;
  color: #666;
}

.step0-start-button {
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #fff;
  background: #3F7DA2;
}

.step0-start-button:hover:not(:disabled) {
  background-color: #004d73;
}

.step0-start-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step0-button-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 49px; /* Même hauteur que le bouton */
  margin-top: 15px;
  flex-direction: column;
}

.step0-loading-text {
  margin-top: 14px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  font-weight: 400;
  font-family: 'Outfit';
}

.step0-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: step0-spin 1s linear infinite;
}

@keyframes step0-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.step0-loading-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 1.2em;
  font-style: italic;
  color: #666;
}

.splash-screen {
    display: none;
}


.product-card.product-cheapest:nth-child(n+4) {
    margin-top: 33px;
}
.plus-button-text {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit';
}

.option-text {
    height: 150px;
}


.custom-contact-wrapper {
    position: absolute;
    bottom: 0px;
    right: 0;
    margin-right: 65px;
    border-radius: 12px;
    z-index: 99;
   /* margin-bottom: -32px;*/
}

.custom-contact-button {
    background: #fff;
    padding: 12px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 16px;
    font-family: 'Outfit';
    font-weight: 400;
    color: #006699;
    border-top: 2px solid #006699;
    border-left: 2px solid #006699;
    border-right: 2px solid #006699;
}

.option.option-redirect {
    margin-bottom: 28px !important;
    padding-bottom: 22px;
}


.popup-content div {
    justify-content: flex-start !important;
}


.form-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form-header h3, .form-header p {
    color: #fff;
}


.inline-registration-form.form-disabled {
  opacity: 0.7;
  pointer-events: none;
}

.form-content.content-disabled {
  filter: grayscale(0.5);
}

.form-content input:disabled,
.form-content select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.error {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
.form-message {
    color: #fff;
}

.product-image-link {
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 5;
}
.recommended-banner {
  z-index: 1; 
  pointer-events: none;
}
.cheapest-banner {
  z-index: 1; 
  pointer-events: none;
}
.product-header {
  z-index: 6;
}