.horizontal_presentation{

    display : flex;
    flex-direction: row;
    width: 85vw;
    height: 40vw;

    justify-content: space-around;

    margin-top : 5vw;


}

.ebook_div{

    display :flex;
    flex-direction: column;
    height: 35vw;
    width : 30%;
    justify-content: space-around;

    text-align: center;
    align-content: center;
    align-items: center;


}

.ebook_div img{
    width : 13vw;
    height :auto;
}

.ebook_div h2{
    font-size: 1.5vw;
}

.ebook_div p{

    font-size: 1.7vw;

}
#logo_ebook{
    
    height: 5vw;
    width : auto;
    margin-top: 2vw;
    margin-bottom: 0vw;
}

.backgroundPageImg{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13vw;           /* Taille réduite pour “petit logo” */
  height: auto;
  opacity: 0.8;
  transform: translate(-50%, -50%);  /* Centre parfaitement l’élément */
  z-index: -1;           /* Derrière tout le contenu */
  pointer-events: none;  /* Pour que le logo ne gêne pas les clics */
}


.ebooks_media{
    display: none;
}

.Troisd_div{
    width : 13vw;
    height :15vw;
}


#info_ebooks{
    
    display : flex;
    flex-direction: row;
    width : 90%;
    
    justify-content: space-around;
    
    margin-bottom : 7vw;
    
    
    
}

#info_ebooks div{
    width : 23%;
    display : flex;
    flex-direction: column;
    align-items: center;
}
#info_ebooks div img{
    width : 3vw;
    aspect-ratio: 1/1;
}

#info_ebooks div h3{
    font-size: 2vw;
}
#info_ebooks div p{
    font-size: 1.2vw;
}

#pre_temoignage{
    margin-top : 7vw;
    align-content: top;
    text-align: center;
}
#pre_temoignage h3{
    margin-bottom: 1vw;
}
    
/*#temoignages{
    display : flex;
    flex-direction: row;
    width : 100%;
    justify-content: space-around;
    
    margin-top : 7vw;
}

.temoignage{
    display :flex;
    flex-direction: column;
    justify-content: space-around;
    background-color : #a6a6a6;
    
    width : 25%;
    aspect-ratio: 1 / 1;
    
    padding : 1vw;
    
    border-radius : 7%;
    
}*/

.carousel-wrapper {
    
    margin-top : 5vw;
    
    width: 100%;
    overflow: hidden;
    position: relative;
}

#temoignages {
    display: flex;
    flex-direction: row;
    width: max-content;
    animation: scrollCarousel 35s linear infinite;
    padding-top : 3vw;
    padding-bottom : 3vw;
}

.temoignage {
    flex: 0 0 30vw;
    background-color: var(--bordeau);
    margin: 0 1vw;
    padding: 1vw;
    border-radius: 2vw;
    aspect-ratio: 2/1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    
    border : solid;
    border-color: black;
    border-width: 0.2vw;
    color : white;
    
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
    
}

.temoignage h3{
    font-size: 2vw;
}

.temoignage p{
    font-size: 1.2vw;
    font-style: italic;
}


@keyframes scrollCarousel {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-75%); }
}



.carousel-progress {
  width: 100%;
  height: 4px;
  background-color: #999;
  margin-top: 1vw;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  
  margin-bottom : 10vw;
  margin-top : 2vw;
}

.carousel-progress-bar {
  height: 100%;
  background-color: #333;
  animation: progressBarAnim 35s linear infinite;
  transform-origin: left;
}

@keyframes progressBarAnim {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}



@media screen and (max-width: 769px) {

    .horizontal_presentation{

        display : flex;
        flex-direction: column;
        width: 85vw;
        height: 140vw;
    
        justify-content: space-around;
        align-items: center;
        align-content: center;
    
        margin-top : 2vw;
    
    
    }
    
    .ebook_div{
    
        display :flex;
        flex-direction: column;
        height: 60vw;
        width : 60vw;
        justify-content: space-around;
    
        text-align: center;
        align-content: center;
        align-items: center;
    
    
    }
    
    .ebook_div img{
        width : 25vw;
        height :auto;
    }
    
    .ebook_div h2{
        font-size: 3.2vw;
    }
    
    .ebook_div p{
    
        font-size: 4vw;
    
    }

    .ebook_div button{
        height : 7vw;
        font-size: 4vw
    }
    .ebooks_media{
    display:block;
    }
    .backgroundPageImg{
        display: none;
    }





    #info_ebooks{
        
        display : flex;
        flex-direction: column;
        align-items: center;;
        width : 90%;
        justify-content: space-around;
        gap : 3vw;
    }
    
    #info_ebooks div{
        width : 50%;
        display : flex;
        flex-direction: column;
        align-items: center;
        
    }
    #info_ebooks div img{
        width : 6vw;
        aspect-ratio: 1/1;
    }
    
    #info_ebooks div h3{
        font-size: 4vw;
    }
    #info_ebooks div p{
        font-size: 2.2vw;
    }
    
    
    
    .temoignage {
    flex: 0 0 50vw;
    background-color: var(--bordeau);
    margin: 0 1vw;
    padding: 1vw;
    border-radius: 2vw;
    aspect-ratio: 5/3;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    
    border : solid;
    border-color: black;
    border-width: 0.2vw;
    color : white;
    
    box-shadow: 0 3px 8px rgba(0,0,0,0.6);
    
    }
    
    .temoignage h3{
        font-size: 3vw;
    }
    
    .temoignage p{
        font-size: 3vw;
        font-style: italic;
    }
    


}