.bloc-onglets-coiffure {
width: 100%;
} .bloc-onglets-coiffure__nav {
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
gap: var(--wp--preset--spacing--1);
margin-bottom: var(--wp--preset--spacing--1);
}
.bloc-onglets-coiffure__separator {
display: block;
width: 1px;
height: 40px;
align-self: center;
background: var(--wp--preset--color--primary);
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.bloc-onglets-coiffure__tab {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--1);
background: none;
border: none;
font-family: inherit;
text-align: left;
cursor: pointer;
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bloc-onglets-coiffure__tab:not(:last-child)::after,
.bloc-onglets-coiffure__nav.mobile-swiper .swiper-slide:not(:last-child) .bloc-onglets-coiffure__tab::after {
content: '';
position: absolute;
right: -8px;
top: 40%;
width: 1px;
height: 40px;
background: var(--wp--preset--color--primary);
z-index: 1;
transform: translateY(-50%);
}
.bloc-onglets-coiffure__nav.mobile-swiper .swiper-slide:not(:last-child) .bloc-onglets-coiffure__tab::after {
right: 0;
}
.bloc-onglets-coiffure__nav .bloc-onglets-coiffure__tab:first-child {
padding-left: 0;
}
.bloc-onglets-coiffure__tab-title {
font-size: var(--wp--preset--font-size--5);
font-weight: 700;
line-height: 1;
color: var(--wp--preset--color--default);
text-transform: uppercase;
transition: color 0.3s ease;
}
.bloc-onglets-coiffure__tab-subtitle {
font-size: var(--wp--preset--font-size--4);
line-height: 1;
color: var(--wp--preset--color--default);
text-transform: uppercase;
transition: color 0.3s ease;
}
.bloc-onglets-coiffure__tab-arrow {
display: block;
margin-top: 6px;
margin-left: 3px;
opacity: 0;
transform: translateY(-4px);
transition: opacity 0.3s ease, transform 0.3s ease;
line-height: 0;
}
.bloc-onglets-coiffure__tab-arrow img {
display: block;
width: 21px;
height: auto;
} .bloc-onglets-coiffure__tab.is-active .bloc-onglets-coiffure__tab-title {
color: var(--wp--preset--color--primary);
}
.bloc-onglets-coiffure__tab.is-active .bloc-onglets-coiffure__tab-arrow,
.bloc-onglets-coiffure__tab:hover .bloc-onglets-coiffure__tab-arrow {
opacity: 1;
transform: translateY(0);
} .bloc-onglets-coiffure__tab:hover:not(.is-active) {
transform: translateY(-10px);
}
.bloc-onglets-coiffure__tab:hover:not(.is-active) .bloc-onglets-coiffure__tab-arrow {
transform: translateY(10px);
}
.bloc-onglets-coiffure__tab:hover:not(.is-active) .bloc-onglets-coiffure__tab-title {
color: var(--wp--preset--color--primary);
} .bloc-onglets-coiffure__panels {
position: relative;
}
.bloc-onglets-coiffure__panel {
display: none;
}
.bloc-onglets-coiffure__panel.is-active {
display: block;
animation: ocFadeIn 0.4s ease forwards;
}
@keyframes ocFadeIn {
from { opacity: 0; transform: translateY(10px); }
to   { opacity: 1; transform: translateY(0); }
} .bloc-onglets-coiffure__columns {
display: flex;
gap: var(--wp--preset--spacing--5);
align-items: center;
}
.bloc-onglets-coiffure__col-left {
flex: 0 0 45%;
max-width: 500px;
}
.bloc-onglets-coiffure__col-right {
flex: 0 0 55%;
max-width: 670px;
display: flex;
flex-direction: column;
gap: var(--wp--preset--spacing--1);
} .bloc-onglets-coiffure__comparator-wrapper {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
cursor: ew-resize;
-webkit-user-select: none;
user-select: none;
}
.bloc-onglets-coiffure__single-wrapper {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
}
.bloc-onglets-coiffure__single-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.bloc-onglets-coiffure__img-before,
.bloc-onglets-coiffure__img-after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
}
.bloc-onglets-coiffure__img-after-clip {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
will-change: clip-path;
}
.bloc-onglets-coiffure__comparator-handle {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
pointer-events: none;
will-change: left;
}
.bloc-onglets-coiffure__comparator-line {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
transform: translateX(-50%);
background: var(--wp--preset--color--secondary);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.bloc-onglets-coiffure__comparator-knob {
position: relative;
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 44px;
border-radius: 50%;
background: var(--wp--preset--color--secondary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
color: var(--wp--preset--color--default);
}
.bloc-onglets-coiffure__comparator-knob svg {
display: block;
}
.bloc-onglets-coiffure__labels {
display: flex;
justify-content: space-between;
margin-top: var(--wp--preset--spacing--1);
}
.bloc-onglets-coiffure__label-before,
.bloc-onglets-coiffure__label-after {
font-size: var(--wp--preset--font-size--1);
font-weight: 700;
letter-spacing: 0.1em;
color: var(--wp--preset--color--default);
} .bloc-onglets-coiffure__col-right h3 {
margin: 0;
text-transform: uppercase;
}
.bloc-onglets-coiffure__content-text p:first-child {
margin-top: 0;
}
.bloc-onglets-coiffure__content-text p:last-child {
margin-bottom: 0;
} .bloc-onglets-coiffure__gallery {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 1rem;
}
.bloc-onglets-coiffure__gallery-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-decoration: none;
width: 122px;
}
.bloc-onglets-coiffure__gallery-img-wrap {
position: relative;
display: block;
width: 100%;
height: auto;
aspect-ratio: 1 / 1;
overflow: hidden;
}
.bloc-onglets-coiffure__gallery-img-wrap > img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.bloc-onglets-coiffure__gallery.is-round .bloc-onglets-coiffure__gallery-img-wrap,
.bloc-onglets-coiffure__gallery.is-round .bloc-onglets-coiffure__gallery-img-wrap > img,
.bloc-onglets-coiffure__gallery.is-round .bloc-onglets-coiffure__gallery-overlay {
border-radius: 9999px;
}
.bloc-onglets-coiffure__gallery-item:hover .bloc-onglets-coiffure__gallery-img-wrap > img {
transform: scale(1.08);
}
.bloc-onglets-coiffure__gallery-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: url(//www.cyril-bazin.com/wp-content/themes/cyril-bazin/assets/chart/rectangle_oblique_hover.svg) center / cover no-repeat;
opacity: 0;
transition: opacity 0.3s ease;
}
.bloc-onglets-coiffure__gallery-item:hover .bloc-onglets-coiffure__gallery-overlay {
opacity: 1;
}
.bloc-onglets-coiffure__gallery-plus {
display: block;
width: 30px;
height: 30px;
}
.bloc-onglets-coiffure__gallery-label {
font-size: 0.9rem;
font-weight: 700;
color: var(--wp--preset--color--primary);
line-height: 1.2;
text-align: center;
transition: color 0.3s ease;
}
.bloc-onglets-coiffure__gallery-item:hover .bloc-onglets-coiffure__gallery-label {
color: var(--wp--preset--color--default);
} .bloc-onglets-coiffure__col-right .wp-block-buttons {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--wp--preset--spacing--1);
margin-top: var(--wp--preset--spacing--1);
} @media (max-width: 768px) {
.bloc-onglets-coiffure__nav {
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-gutter: stable both-edges;
padding-bottom: 10px; }
.bloc-onglets-coiffure__tab,
.bloc-onglets-coiffure__separator {
flex: 0 0 auto;
} .bloc-onglets-coiffure__nav {
scrollbar-width: auto;
scrollbar-color: var(--wp--preset--color--primary) rgba(0, 0, 0, 0.15);
} .bloc-onglets-coiffure__nav::-webkit-scrollbar {
height: 10px;
}
.bloc-onglets-coiffure__nav::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.12);
border-radius: 9999px;
}
.bloc-onglets-coiffure__nav::-webkit-scrollbar-thumb {
background: var(--wp--preset--color--primary);
border-radius: 9999px;
}
.bloc-onglets-coiffure__nav::-webkit-scrollbar-thumb:hover {
background: var(--wp--preset--color--secondary);
}
.bloc-onglets-coiffure__columns {
flex-direction: column;
gap: var(--wp--preset--spacing--3);
}
.bloc-onglets-coiffure__col-left,
.bloc-onglets-coiffure__col-right {
flex: 0 0 100%;
width: 100%;
max-width: 100%;
}
.bloc-onglets-coiffure__comparator {
max-width: 320px;
margin: 0 auto;
}
.bloc-onglets-coiffure__gallery,
.bloc-onglets-coiffure__col-right .wp-block-buttons {
justify-content: center;
}
.bloc-onglets-coiffure__gallery-item {
width: 112px;
}
.bloc-onglets-coiffure__single {
max-width: 75%;
}
.bloc-onglets-coiffure__tab {
width: 100%!important;
}
}