.temoignages-slider {
position: relative;
padding: 0 var(--wp--preset--spacing--4) var(--wp--preset--spacing--4) var(--wp--preset--spacing--4);
}
.temoignages-container {
display: flex;
align-items: center;
gap: 20px;
}
.temoignage-container {
display: flex;
gap: 8px;
align-items: stretch;
}
.temoignage-image {
position: relative;
flex: 1;
max-width: 50%;
object-fit: cover;
}
.temoignage-telephone {
position: relative;
width: 100%;
height: auto;
object-fit: contain;
} .temoignage-image-telephone {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50px;
} .temoignage-youtube-link {
display: block;
position: relative;
width: 100%;
height: 100%;
text-decoration: none;
} .temoignage-youtube-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
transition: all 0.3s ease;
}
.temoignage-youtube-overlay:hover {
transform: translate(-50%, -50%) scale(1.1);
}
.temoignage-youtube-picto {
width: 60px;
height: 60px;
}
.temoignage-content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
flex: 1;
max-width: 50%;
background-color: var(--wp--preset--color--custom-noir);
padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--3);
border-radius: 50px;
}
@media (min-width: 769px) {
.temoignage-content {
min-height: 480px;
}
}
p.temoignage-texte {
font-size: var(--wp--preset--font-size--2);
font-style: italic;
margin: 0;
line-height: 1.5;
color: var(--wp--preset--color--custom-blanc);
}
.temoignage-auteur {
display: flex;
flex-direction: column;
margin-top: var(--wp--preset--spacing--2);
padding-bottom: var(--wp--preset--spacing--2);
}
.temoignage-auteur p {
margin: 0;
color: var(--wp--preset--color--custom-vert);
} .temoignages-swiper {
width: calc(100% - 102px); }
.temoignages-slider-prev,
.temoignages-slider-next {
position: absolute;
z-index: 2;
top: 50%;
margin: 0;
width: 41px !important;
height: 41px !important;
transform: translateY(-50%);
background-color: transparent;
cursor: pointer;
}
.temoignages-slider-next {
right: 0;
}
.temoignages-slider-prev {
left: 0;
}
.nav-arrow {
width: 100%;
height: 100%;
}
.nav-arrow.prev {
transform: rotate(180deg);
}
.temoignages-slider-guillemets {
position: absolute;
bottom: 2%;
right: 10%;
width: auto;
height: auto;
z-index: 1;
}
.temoignages-slider-guillemets img {
width: 80px;
}
.swiper-pagination {
position: absolute!important;
bottom: 0!important;
left: 50%!important;
transform: translateX(-50%)!important;
width: 100%;
}
.swiper-pagination-bullet {
width: 12px!important;
height: 12px!important;
background: var(--wp--preset--color--custom-vert-clair)!important;
opacity: 1!important;
transition: all 0.3s ease-in-out!important;
}
.swiper-pagination-bullet-active {
background: var(--wp--preset--color--custom-vert)!important;
}
@media screen and (max-width: 768px) {
.temoignages-slider {
padding: 0;
padding-bottom: var(--wp--preset--spacing--5);
}
.temoignages-slider .swiper{
width: 100%!important;
max-width: 100%!important;
}
.temoignages-slider .swiper-wrapper {
width: 100%!important;
max-width: 100%!important;
}
.temoignage-container {
flex-direction: column;
gap: 0;
}
.temoignage-image {
width: 100%!important;
max-width: 220px!important;
align-self: center;
}
.temoignage-image-telephone {
position: relative;
top: unset;
left: unset;
}
.temoignage-content {
position: relative;
z-index: 2;
margin-top: -80px;
width: 100%;
max-width: 100%;
}
p.temoignage-texte {
font-size: var(--wp--preset--font-size--2);
font-style: italic;
margin: 0;
line-height: 1.7;
}
.temoignages-slider-guillemets,
.temoignages-slider-guillemets img {
width: 32px;
height: auto;
bottom: 64px;
}
.temoignages-slider-next,
.temoignages-slider-prev {
width: 32px!important;
height: 32px!important;
top: unset;
bottom: 32px;
transform: translateY(0);
}
.temoignages-slider-next {
right: calc(50% - 4px);
transform: translateX(100%);
}
.temoignages-slider-prev {
right: calc(50% + 4px);
left: unset;
} .temoignage-youtube-picto {
width: 45px;
height: 45px;
}
}