@media (max-width: 768px) {
    #historique .py-20 {
      padding-top: 10px;
      padding-bottom: 10px;
      padding-left: 20px;
      padding-right: 20px;
    }
  
    #historique h1 {
      font-size: 3xl;
      margin-bottom: 30px;
    }
  
    #historique .prose {
      font-size: 20px; 
    }
  
    #historique .lg\:w-2\/5 {
      width: 100%;
      margin-top: 16px;
    }
  
    #historique img {
      max-width: 100%;
      height: auto;
    }
  
    #historique .text-right {
      text-align: center !important;
    }
  }

.nos-valeurs-section {
    color: white;
    position: relative;
}

.nos-valeurs-section h2 {
    position: absolute;
    font-weight: 300;
    top: 3%; 
    right: 16%; 
    margin-bottom: 50px;
    color: white;
}
.valeurs-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 800px; 
    transform: translateX(50px);
}

.valeur-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding-left: 3rem;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    transition: transform 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-5px);
}

.valeur-card .icone {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    position: relative;
}

.valeur-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.valeur-card p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.spacer {
    height: 250px; 
}

 /* Positionnement spécifique pour chaque carte */
.excellence {
    top: 0;
    left: 5rem;
    width: 45%;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

.excellence p {
    text-align: justify; 
    width: 100%; 
}

.excellence .icone {
    position: absolute;
    top: -70px; 
    left: 52%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
}

.excellence .icone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.innovation {
    top: 27%;
    right: 15%;
    width: 40%;
    height: auto;
    padding-top: 70px;
    min-height: 350px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.innovation .icone {
    position: absolute;
    top: -120px;
    left: 48%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    z-index: 3;
}

.innovation p {
    text-align: justify; 
    width: 100%; 
}

.confiance {
    top: 38%; 
    left: 5rem; 
    width: 35%;
    height: auto;
    padding-top: 40px;
    min-height: 350px;
    z-index: 1;
    position: absolute;
}

.confiance p {
    text-align: justify;
    width: 100%;
}

.confiance .icone {
    position: absolute;
    top: -40px;
    left: 75%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    z-index: 3;
}

.fiabilite {
    top: 78%; 
    right: 15%; 
    width: 50%; 
    padding-top: 40px;
    padding-bottom: 50px;
    z-index: 2;
}

.fiabilite .icone {
    position: absolute;
    top: -70px;
    left: 40%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
}

.fiabilite p {
    text-align: justify;
    width: 100%;
}


/* Responsive */
@media (max-width: 992px) {
    .valeurs-container {
        height: auto;
        padding: 150px 0 50px; 
    }

    .valeur-card {
        position: relative;
        width: 90%;
        margin: 0 auto 80px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .excellence .icone {
        top: -75px;
        left: 50%;
    }
}

/* Existing Desktop Styles */
.nos-valeurs-section {
    color: white;
    position: relative;
}

.nos-valeurs-section h2 {
    position: absolute;
    font-weight: 300;
    top: 3%; 
    right: 16%; 
    margin-bottom: 50px;
    color: white;
}

.valeurs-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 800px; 
    transform: translateX(50px);
}

.valeur-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding-left: 3rem;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    transition: transform 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-5px);
}

.valeur-card .icone {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    position: relative;
}

.valeur-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.valeur-card p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.spacer {
    height: 250px; 
}

/* Specific positioning for each card */
.excellence {
    top: 0;
    left: 5rem;
    width: 45%;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

.excellence p {
    text-align: justify; 
    width: 100%; 
}

.excellence .icone {
    position: absolute;
    top: -70px; 
    left: 52%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
}

.excellence .icone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.innovation {
    top: 27%;
    right: 15%;
    width: 40%;
    height: auto;
    padding-top: 70px;
    min-height: 350px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.innovation .icone {
    position: absolute;
    top: -120px;
    left: 48%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    z-index: 3;
}

.innovation p {
    text-align: justify; 
    width: 100%; 
}

.confiance {
    top: 38%; 
    left: 5rem; 
    width: 35%;
    height: auto;
    padding-top: 40px;
    min-height: 350px;
    z-index: 1;
    position: absolute;
}

.confiance p {
    text-align: justify;
    width: 100%;
}

.confiance .icone {
    position: absolute;
    top: -40px;
    left: 75%; 
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    z-index: 3;
}

.fiabilite {
    top: 78%; 
    right: 15%; 
    width: 50%; 
    padding-top: 40px;
    padding-bottom: 50px;
    z-index: 2;
}

.fiabilite .icone {
    position: absolute;
    top: -70px;
    left: 40%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    margin-bottom: 0;
}

.fiabilite p {
    text-align: justify;
    width: 100%;
}

/* Desktop Responsive */
@media (max-width: 992px) {
    .valeurs-container {
        height: auto;
        padding: 150px 0 50px; 
    }

    .valeur-card {
        position: relative;
        width: 90%;
        margin: 0 auto 80px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .excellence .icone {
        top: -75px;
        left: 50%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nos-valeurs-section {
        position: relative;
    }

    .nos-valeurs-section h2 {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2.5rem; 
    }

    /* Mobile Horizontal Scroll Container */
    .valeurs-mobile-container {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4rem 1rem 2rem;
        gap: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow-y: hidden;
    }
    
    .valeurs-mobile-container::-webkit-scrollbar {
        display: none;
    }
  
    .valeur-card-mobile {
        flex: 0 0 calc(80% - 1rem);
        scroll-snap-align: center;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        position: relative;
        display: flex;
        flex-direction: column;
        color: white;
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }
  
    .icone-mobile {
        position: absolute;
        top: -15%;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 150px;
        z-index: 10;
    }
  
    .icone-mobile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
  
    .content-mobile {
        padding: 120px 1.5rem 1rem;
        text-align: center;
    }
  
    .valeur-card-mobile h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        color: white;
        text-align: center; 
    }
  
    .valeur-card-mobile p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
    }
  
    .valeurs-mobile-container::before,
    .valeurs-mobile-container::after {
        content: '';
        flex: 0 0 5%; 
    }

  
}