

/* =====================================================
   SMARTYOU — CLEVER FACTORY / JUICE V2
   Completely scoped component
===================================================== */

#smartyou-juice-v2 {
    width: 100%;
    height: 67vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    color: #111;
}

#smartyou-juice-v2,
#smartyou-juice-v2 * {
    box-sizing: border-box;
}

/* =====================================================
   ROUNDED OUTER CORNERS
===================================================== */

/* Premier bloc : coins extérieurs gauche */
#smartyou-juice-v2 .syj-section:first-child {
    border-radius: 30px 0 0 30px;
}

/* Dernier bloc : coins extérieurs droite */
#smartyou-juice-v2 .syj-section:last-child {
    border-radius: 0 30px 30px 0;
}

/* Le composant entier respecte également l'arrondi */
#smartyou-juice-v2 .syj-container {
    border-radius: 30px;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

#smartyou-juice-v2 .syj-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#smartyou-juice-v2 .syj-parent-container {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    z-index: 2;
}


/* =====================================================
   PANELS
===================================================== */

#smartyou-juice-v2 .syj-section {
    width: 20%;
    height: 100%;
    min-width: 0;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 2vw 2vw;

    background: #f8fbff;
    color: #111;

    cursor: pointer;
    overflow: hidden;
}


/* subtle separators */

#smartyou-juice-v2 .syj-section:not(:last-child) {
    border-right: 1px solid rgba(0,0,0,.08);
}


/* =====================================================
   SVG ICON
===================================================== */

#smartyou-juice-v2 .syj-icon {
    width: clamp(95px, 9vw, 155px);
    height: clamp(95px, 9vw, 155px);

    flex: 0 0 auto;

    margin-bottom: 1.25rem;

    background-color: var(--accent);

    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    transition:
        background-color .25s ease,
        transform .45s cubic-bezier(.22,.72,.18,1);
}


/* =====================================================
   TEXT
===================================================== */

#smartyou-juice-v2 .syj-section-inner {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: #111;
}

#smartyou-juice-v2 .syj-section-header {
    margin: 0;

    font: inherit;
    font-size: clamp(1rem, 1.35vw, 1.55rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    color: inherit;

    transition: color .25s ease;
}


/* =====================================================
   FEATURES
   Hidden at rest / revealed on hover
===================================================== */

#smartyou-juice-v2 .syj-features {
    width: 100%;
    max-width: 290px;

    margin: 1rem 0 0;
    padding: 0;

    list-style: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    max-height: 0;
    overflow: hidden;

    transition:
        opacity .3s ease,
        transform .4s cubic-bezier(.22,.72,.18,1),
        max-height .45s ease,
        visibility .3s ease;

    color: #fff;
}

#smartyou-juice-v2 .syj-features li {
    position: relative;

    margin: 0 0 .45rem;
    padding-left: 1rem;

    font: inherit;
    font-size: clamp(.72rem, .78vw, .9rem);
    font-weight: 400;
    line-height: 1.25;

    color: inherit;
}

#smartyou-juice-v2 .syj-features li::before {
    content: "";

    width: 4px;
    height: 4px;

    position: absolute;
    left: 0;
    top: .55em;

    border-radius: 50%;
    background: currentColor;
}


/* =====================================================
   BUTTON — VISIBLE AT REST
===================================================== */

#smartyou-juice-v2 .syj-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 1.1rem;
    padding: .65rem 1.2rem;

    border: 1px solid var(--accent);
    border-radius: 50px;

    background: transparent;

    color: var(--accent);
    text-decoration: none;

    font: inherit;
    font-size: .9rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        color .25s ease,
        border-color .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

#smartyou-juice-v2 .syj-view-more:hover {
    text-decoration: none;
}


/* =====================================================
   DESKTOP HOVER
===================================================== */

@media (min-width: 992px) {

    #smartyou-juice-v2 .syj-section:hover {
        color: #fff;
    }

    #smartyou-juice-v2 .syj-section:hover .syj-icon {
        background-color: #fff;
        transform: translateY(-8px);
    }

    #smartyou-juice-v2 .syj-section:hover .syj-section-header {
        color: #fff;
    }

    #smartyou-juice-v2 .syj-section:hover .syj-features {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        max-height: 320px;
    }

    #smartyou-juice-v2 .syj-section:hover .syj-view-more {
        color: #fff;
        border-color: #fff;
    }

}


/* =====================================================
   COLOURED BACKGROUNDS
===================================================== */

#smartyou-juice-v2 .syj-siblings-container {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 1;
    pointer-events: none;
}

#smartyou-juice-v2 .syj-sibling {
    position: absolute;
    top: 0;

    width: 100%;
    height: 100%;

    background: var(--accent);

    clip-path: polygon(
        0 0,
        20% 0,
        20% 100%,
        0 100%
    );

    color: #fff;
}


/* 01 — CORAIL */

#smartyou-juice-v2 .syj-sibling:nth-child(1) {
    left: 0%;
}


/* 02 — VIOLET */

#smartyou-juice-v2 .syj-sibling:nth-child(2) {
    left: 20%;
}


/* 03 — ÉMERAUDE */

#smartyou-juice-v2 .syj-sibling:nth-child(3) {
    left: 40%;
}


/* 04 — FRAMBOISE */

#smartyou-juice-v2 .syj-sibling:nth-child(4) {
    left: 60%;
}


/* 05 — INDIGO */

#smartyyou-juice-v2 .syj-sibling:nth-child(5) {
    left: 80%;
}


/* =====================================================
   EXPANDED CONTENT
===================================================== */

#smartyou-juice-v2 .syj-expanded-content {
    position: absolute;
    left: 8%;
    bottom: 10%;

    width: min(600px, 70%);

    opacity: 0;
}

#smartyou-juice-v2 .syj-expanded-content h2 {
    margin: 0;

    font: inherit;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1;

    color: #fff;
}


/* =====================================================
   MOBILE / TABLET
===================================================== */

@media (max-width: 991px) {

    #smartyou-juice-v2 {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    #smartyou-juice-v2 .syj-container {
        height: auto;
        overflow: visible;
    }

    #smartyou-juice-v2 .syj-parent-container {
        height: auto;
        flex-direction: column;
    }

    #smartyou-juice-v2 .syj-section {
        width: 100%;
        min-height: 220px;

        padding: 1.5rem 7vw;

        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto;
        column-gap: 1.5rem;

        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    #smartyou-juice-v2 .syj-icon {
        width: 90px;
        height: 90px;

        margin: 0;

        grid-column: 1;
        grid-row: 1 / span 2;
    }

    #smartyou-juice-v2 .syj-section-inner {
        grid-column: 2;
        grid-row: 1;

        align-items: flex-start;
    }

    #smartyou-juice-v2 .syj-section-header {
        text-align: left;
        font-size: 1.15rem;
    }

    #smartyou-juice-v2 .syj-features {
        display: none;
    }

    #smartyou-juice-v2 .syj-view-more {
        grid-column: 2;
        grid-row: 2;

        justify-self: start;

        margin-top: 1rem;
    }

    #smartyou-juice-v2 .syj-siblings-container {
        display: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 600px) {

    #smartyou-juice-v2 .syj-section {
        grid-template-columns: 75px 1fr;
        column-gap: 1.2rem;

        min-height: 200px;
    }

    #smartyou-juice-v2 .syj-icon {
        width: 65px;
        height: 65px;
    }

}

