/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

.roboto-medium {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.roboto-bold {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* Application globale de Roboto comme police par défaut */
body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

b,
strong {
    font-weight: 500;
}

/* Exemple d'utilisation pour les titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color: var(--color-text);
    /* Medium pour les titres */
}

/* Exemple d'utilisation pour les éléments importants */
.important-text {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    /* Bold pour le texte important */
}

/* Couleurs */
:root {
    /* Vert Médivia - éléments cliquables, puces, prix */
    --color-primary: #009a93;

    /* Vert Foncé - survol des éléments cliquables, éléments sélectionnés */
    --color-dark: #005d67;

    /* Rouge Médivia - éléments à mettre en avant, promos, astérisques */
    --color-accent: #e30613;

    /* Noir texte - couleur principale du texte */
    --color-text: #1b1b18;

    --color-text-light: #777777;

    --color-text-disabled: #e8e8e8;

    /* Vert clair - bordures, bordures de champs, boutons inactifs */
    --color-light: #b5c9c9;

    /* Gris clair - couleur de fond */
    --color-bg: #f5f5f5;

    --color-white: #fff;

    --color-disabled: #a4a4a4;
}

#block_myaccount_infos .myaccount-title a,
#header a,
.block-contact .block-contact-title,
.block-contact .navbar-toggler .material-icons,
.linklist .blockcms-title a {
    color: var(--color-text);
}

.quick-view {
    display: none !important;
}

#wrapper {
    background: var(--color-bg);
    padding: 1rem 0;

    .breadcrumb {
        li {
            font-size: 0.875rem;
            font-weight: 400;

            a {
                color: var(--color-text-light);

                &:hover {
                    color: var(--color-primary);
                }
            }

            &:last-child {
                color: var(--color-text);
            }
        }
    }
}

a {
    color: var(--color-primary);

    &:hover {
        color: var(--color-dark);
    }
}

#header {
    color: var(--color-text);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2);

    .header-nav {
        border-bottom: none;

        #_desktop_contact_link {
            margin: 0;
            padding: 10px 20px;
            background-color: var(--color-bg);

            .call-us {
                @media (min-width: 768px) and (max-width: 992px) {
                    display: none;
                }
            }

            a {
                color: var(--color-primary);
                font-weight: 500;

                &:hover {
                    color: var(--color-dark);
                }
            }

            #contact-link {
                margin-top: 0;

                .non {
                    font-weight: 400;
                    font-size: 0.875rem;
                }
            }
        }

        .user-info {
            margin-top: 10px;

            .material-icons {
                line-height: 1;
            }

            a {
                font-weight: 500;
                color: var(--color-primary);

                &:hover {
                    color: var(--color-dark);
                }
            }
        }

        .cart-preview.active {
            background: var(--color-primary);

            a {
                font-weight: 500;
            }

            &:hover {
                background: var(--color-dark);
            }
        }

        .blockcart {
            padding: 7px 20px;
            margin-left: 20px;
            height: auto;
            background: var(--color-bg);
            color: var(--color-text);

            .material-icons {
                line-height: 1;
                color: var(--color-text);
            }
        }
    }

    .header-top {
        padding: 0;

        a[data-depth="0"] {
            color: var(--color-text);
            font-weight: 500;
            line-height: 1;

            &:hover {
                color: var(--color-primary);
            }
        }

        .menu {
            padding: 0;
            width: 100%;
        }

        #search_widget.search-widgets {
            padding: 20px 0 0 0;

            form {
                input {
                    width: 100%;
                    padding: 4px 20px 4px 40px;
                    outline: none;
                    background-color: var(--color-white);
                    border: 1px solid var(--color-light);
                    border-radius: 0;
                    color: var(--color-primary);
                }

                input::placeholder {
                    color: var(--color-light);
                }

                i.search {
                    position: absolute;
                    padding: 4px;
                    color: var(--color-primary);
                    padding: 0;
                    top: 5px;
                    left: 5px;
                }
            }
        }

        .top-menu#top-menu {
            a[data-depth="0"] {
                padding: 20px 0;

                @media (min-width: 1200px) {
                    font-size: 1.125rem;
                }

                @media (min-width: 992px) and (max-width: 1200px) {
                    font-size: 1rem;
                }

                @media (min-width: 768px) and (max-width: 992px) {
                    font-size: 0.75rem;
                }

                @media (max-width: 768px) {
                    font-size: 1rem;
                }
            }

            @media (min-width: 768px) {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                padding: 0;

                .sub-menu {
                    ul[data-depth="1"] {
                        margin: 20px;

                        > li {
                            float: none;
                            margin: 0;
                        }
                    }
                }

                > li {
                    > div {
                        background-color: var(--color-dark);

                        a {
                            color: var(--color-white);
                            padding: 0;

                            &:hover {
                                color: var(--color-light);
                            }
                        }
                    }
                }

                > li:nth-child(1) {
                    > div {
                        > ul {
                            display: grid;
                            grid-template-columns: 1fr 1fr;
                            /* 2 colonnes */
                            grid-auto-rows: auto;
                            gap: 10px;
                            /* espacement optionnel */
                            list-style: none;
                            padding: 0;

                            /* Colonne gauche - items 1 et 2 */
                            > li:nth-child(1) {
                                grid-column: 1;
                                grid-row: 1;
                            }

                            > li:nth-child(2) {
                                grid-column: 1;
                                grid-row: 2;
                            }

                            /* Colonne droite - items 3 et 4 */
                            > li:nth-child(3) {
                                grid-column: 2;
                                grid-row: 1;
                            }

                            > li:nth-child(4) {
                                grid-column: 2;
                                grid-row: 2;
                            }

                            /* Affichage sur une seule colonne entre 768px et 990px */
                            @media (min-width: 768px) and (max-width: 990px) {
                                grid-template-columns: 1fr;
                                
                                > li:nth-child(1) {
                                    grid-column: 1;
                                    grid-row: 1;
                                }

                                > li:nth-child(2) {
                                    grid-column: 1;
                                    grid-row: 2;
                                }

                                > li:nth-child(3) {
                                    grid-column: 1;
                                    grid-row: 3;
                                }

                                > li:nth-child(4) {
                                    grid-column: 1;
                                    grid-row: 4;
                                }
                            }
                        }
                    }
                }

                > li:nth-child(2) {
                    > div {
                        > ul {
                            display: grid;
                            grid-template-columns: 1fr 1fr 1fr;
                            /* 3 colonnes */
                            grid-auto-rows: auto;
                            gap: 10px;
                            /* espacement optionnel */
                            list-style: none;
                            padding: 0;

                            /* Colonne gauche */
                            > li:nth-child(1) {
                                grid-column: 1;
                                grid-row: 1;
                            }

                            > li:nth-child(2) {
                                grid-column: 1;
                                grid-row: 2;
                            }

                            /* Colonne du milieu */
                            > li:nth-child(3) {
                                grid-column: 2;
                                grid-row: 1 / span 2;
                                /* prend la hauteur de 2 lignes si tu veux centrer */
                            }

                            /* Colonne droite */
                            > li:nth-child(4) {
                                grid-column: 3;
                                grid-row: 1;
                            }

                            > li:nth-child(5) {
                                grid-column: 3;
                                grid-row: 2;
                            }

                            /* Affichage sur une seule colonne entre 768px et 990px */
                            @media (min-width: 768px) and (max-width: 990px) {
                                grid-template-columns: 1fr;
                                
                                > li:nth-child(1) {
                                    grid-column: 1;
                                    grid-row: 1;
                                }

                                > li:nth-child(2) {
                                    grid-column: 1;
                                    grid-row: 2;
                                }

                                > li:nth-child(3) {
                                    grid-column: 1;
                                    grid-row: 3;
                                }

                                > li:nth-child(4) {
                                    grid-column: 1;
                                    grid-row: 4;
                                }

                                > li:nth-child(5) {
                                    grid-column: 1;
                                    grid-row: 5;
                                }
                            }
                        }
                    }
                }

                > li:nth-child(3) {
                    > div {
                        > ul {
                            display: grid;
                            grid-template-columns: 1fr 1fr 1fr;
                            /* 3 colonnes */
                            grid-auto-rows: auto;
                            gap: 10px;
                            /* espacement optionnel */
                            list-style: none;
                            padding: 0;

                            /* Colonne gauche */
                            > li:nth-child(1) {
                                grid-column: 1;
                                grid-row: 1;
                            }

                            > li:nth-child(2) {
                                grid-column: 1;
                                grid-row: 2;
                            }

                            /* Colonne du milieu */
                            > li:nth-child(3) {
                                grid-column: 2;
                                grid-row: 1;
                            }

                            > li:nth-child(4) {
                                grid-column: 2;
                                grid-row: 2;
                            }

                            /* Colonne droite */
                            > li:nth-child(5) {
                                grid-column: 3;
                                grid-row: 1;
                            }

                            > li:nth-child(6) {
                                grid-column: 3;
                                grid-row: 2;
                            }

                            /* Affichage sur une seule colonne entre 768px et 990px */
                            @media (min-width: 768px) and (max-width: 990px) {
                                grid-template-columns: 1fr;
                                
                                > li:nth-child(1) {
                                    grid-column: 1;
                                    grid-row: 1;
                                }

                                > li:nth-child(2) {
                                    grid-column: 1;
                                    grid-row: 2;
                                }

                                > li:nth-child(3) {
                                    grid-column: 1;
                                    grid-row: 3;
                                }

                                > li:nth-child(4) {
                                    grid-column: 1;
                                    grid-row: 4;
                                }

                                > li:nth-child(5) {
                                    grid-column: 1;
                                    grid-row: 5;
                                }

                                > li:nth-child(6) {
                                    grid-column: 1;
                                    grid-row: 6;
                                }
                            }
                        }
                    }
                }

                > li:nth-child(4) {
                    > div {
                        > ul {
                            display: grid;
                            grid-template-columns: 1fr 1fr;
                            /* 2 colonnes */
                            grid-auto-rows: auto;
                            gap: 10px;
                            /* espacement optionnel */
                            list-style: none;
                            padding: 0;

                            /* Colonne gauche - item 1 */
                            > li:nth-child(1) {
                                grid-column: 1;
                                grid-row: 1;
                            }

                            /* Colonne droite - item 2 */
                            > li:nth-child(2) {
                                grid-column: 2;
                                grid-row: 1;
                            }

                            /* Affichage sur une seule colonne entre 768px et 990px */
                            @media (min-width: 768px) and (max-width: 990px) {
                                grid-template-columns: 1fr;
                                
                                > li:nth-child(1) {
                                    grid-column: 1;
                                    grid-row: 1;
                                }

                                > li:nth-child(2) {
                                    grid-column: 1;
                                    grid-row: 2;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.btn{
    white-space: normal;
}

.btn-primary,
.btn-primary:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: transparent;
}

.btn-primary:hover {
    background-color: var(--color-dark);
}

.btn-primary.focus,
.btn-primary:focus {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: transparent;
}

.btn-primary.active,
.btn-primary:active,
.open > .btn-primary.dropdown-toggle {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: transparent;
    background-image: none;
}

.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open > .btn-primary.dropdown-toggle.focus,
.open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle:hover {
    color: var(--color-white);
    background-color: var(--color-dark);
    border-color: transparent;
}

.btn-primary.disabled.focus,
.btn-primary.disabled:focus,
.btn-primary:disabled.focus,
.btn-primary:disabled:focus {
    background-color: var(--color-primary);
    border-color: transparent;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background-color: var(--color-primary);
    border-color: transparent;
}

.btn-secondary {
    color: var(--color-primary);
    background-color: var(--color-white);
    border-color: var(--color-primary);
    border-style: solid;
}

.btn-secondary:hover {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-secondary.focus,
.btn-secondary:focus {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-secondary.active,
.btn-secondary:active,
.btn-tertiary:active,
.open > .btn-secondary.dropdown-toggle {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-secondary.active.focus,
.btn-secondary.active:focus,
.btn-secondary.active:hover,
.btn-secondary:active.focus,
.btn-secondary:active:focus,
.btn-secondary:active:hover,
.open > .btn-secondary.dropdown-toggle.focus,
.open > .btn-secondary.dropdown-toggle:focus,
.open > .btn-secondary.dropdown-toggle:hover {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-secondary.disabled.focus,
.btn-secondary.disabled:focus,
.btn-secondary:disabled.focus,
.btn-secondary:disabled:focus {
    background-color: #f6f6f6;
    border-color: transparent;
}

.btn-secondary.disabled:hover,
.btn-secondary:disabled:hover {
    background-color: #f6f6f6;
    border-color: transparent;
}

.btn-primary,
.btn-secondary {
    &.disabled,
    &.disabled:hover {
        color: var(--color-text-disabled);
        background-color: var(--color-disabled);
        border-color: transparent;
    }
}

.product-price {
    color: var(--color-primary);
}

.h1,
.h2,
.h3 {
    text-transform: none;
}

.h1,
.h2,
.h3,
.h4,
body {
    color: var(--color-text);
}

p {
    margin: 0;
}

#product {
    .product-variants {
        font-weight: 500;
    }

    h1 {
        font-size: 2.625rem;
        font-weight: 500;
        color: var(--color-text);
        margin-bottom: 1rem;
    }

    .product-prices {
        margin: 0 0 1rem 0;

        .tax-shipping-delivery-label {
            display: inline-block;
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--color-primary);
        }

        div {
            margin-bottom: 0;
        }

        .product-price {
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--color-primary);
        }

        .product-discount{
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-start;
            align-items: baseline;
            align-content: center;
            gap: 0.5rem;
            .regular-price{
                margin: 0;
            }
            .discount{
                background: var(--color-accent);
                color: var(--color-white);
                padding: 0.3125rem 0.75rem;
                font-weight: 500;
            }
        }
    }
}

ul,
ol,
p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0;
}

.product-information {
    font-size: 1rem;
    color: var(--color-text);
    .product-description{
        margin: 0 0 1rem 0;
    }
}

.input-radio {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.input-radio:checked + span {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.blockreassurance_product {
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;

    .clearfix {
        display: none;
    }

    .item-product {
        height: 47px;
        width: 47px;
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        float: none;
        margin: 0;
        padding: 0;

        img {
            height: 47px;
            width: 47px;
        }
    }

    > div {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 0.5rem;

        p.block-title {
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1rem;
            max-width: 90px;

            @media (min-width: 1200px) {
                font-size: 0.875rem;
                line-height: 1.125rem;
                max-width: 110px;
            }
        }
    }
}

.product-actions .add-to-cart {
    line-height: 1;
}

.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover {
    border: var(--color-primary) 3px solid;
}

.tabs {
    .nav-tabs {
        .nav-link {
            color: var(--color-text);

            &:hover {
                color: var(--color-primary);
            }
        }

        .nav-link.active,
        .nav-link:hover {
            border-bottom: var(--color-primary) 3px solid;
        }

        .nav-link.active {
            color: var(--color-primary);
        }
    }

    .tab-content {
        ul {
            list-style: disc;
            padding: 0 0 0 2rem;

            ::marker {
                color: var(--color-primary);
            }
        }
    }

    @media (max-width: 767px) {
        padding: 1rem;
    }
}

.product-afnor {
    background-image: url("./img/reassurance/reassurance-2/afnor.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 40px auto;
    padding: 10px 0 10px 50px;
    font-weight: 500;
}

#footer {
    padding: 0;

    .reassurance-1-container {
        background: var(--color-dark);
        color: var(--color-white);
        font-size: 0.875rem;
        line-height: 1;

        .reassurance-1 {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            align-content: center;
            gap: 0.5rem;
            padding: 20px 0;

            @media (max-width: 1200px) {
                flex-direction: column;
                align-items: flex-start;
                align-content: flex-start;
                gap: 1rem;
                max-width: 310px;
                margin: 0 auto;
            }

            > div {
                height: 20px;
                padding-top: 4px;
            }

            .reassurance-1-1 {
                background-image: url("./img/reassurance/reassurance-1/specialiste.svg");
                background-repeat: no-repeat;
                background-position: left center;
                background-size: auto 18px;
                padding-left: 28px;
            }

            .reassurance-1-2 {
                background-image: url("./img/reassurance/reassurance-1/personnalisation.svg");
                background-repeat: no-repeat;
                background-position: left center;
                background-size: auto 18px;
                padding-left: 28px;
            }

            .reassurance-1-3 {
                background-image: url("./img/reassurance/reassurance-1/renouvellement.svg");
                background-repeat: no-repeat;
                background-position: left center;
                background-size: auto 18px;
                padding-left: 28px;
            }

            .reassurance-1-4 {
                background-image: url("./img/reassurance/reassurance-1/paiement.svg");
                background-repeat: no-repeat;
                background-position: left center;
                background-size: auto 18px;
                padding-left: 28px;
            }
        }
    }

    .reassurance-2-container {
        background: var(--color-bg);
        color: var(--color-text);
        font-size: 1rem;
        line-height: 1;

        .reassurance-2 {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-evenly;
            align-items: center;
            align-content: center;
            gap: 0.5rem;
            padding: 30px 0;

            @media (max-width: 1200px) {
                flex-direction: column;
                align-items: center;
                align-content: center;
                gap: 1.5rem;
                margin: 0 auto;
            }

            .reassurance-2-1 {
                background-image: url("./img/reassurance/reassurance-2/afnor.svg");
                background-repeat: no-repeat;
                background-position: top center;
                background-size: auto 52px;
                padding-top: 60px;
            }

            .reassurance-2-2 {
                background-image: url("./img/reassurance/reassurance-2/is.svg");
                background-repeat: no-repeat;
                background-position: top center;
                background-size: auto 52px;
                padding-top: 60px;
            }

            .reassurance-2-3 {
                background-image: url("./img/reassurance/reassurance-2/qualite.svg");
                background-repeat: no-repeat;
                background-position: top center;
                background-size: auto 52px;
                padding-top: 60px;
            }
        }
    }
}

.footer-container {
    background: var(--color-dark);
    padding: 2.5rem 0;

    .h3,
    #block_myaccount_infos .myaccount-title a,
    .block-contact .block-contact-title {
        color: var(--color-white);
        font-size: 1.25rem;
        font-weight: 500;
        text-transform: uppercase;
    }

    li {
        margin-bottom: 0;

        a {
            font-size: 0.875rem;
            color: var(--color-white);
            line-height: 1;

            &:hover {
                color: var(--color-primary);
            }
        }
    }

    .block-contact {
        font-size: 0.875rem;
        color: var(--color-white);
        line-height: 1.5rem;

        a {
            color: var(--color-white);

            &:hover {
                color: var(--color-primary);
            }
        }
    }

    .navbar-toggler,
    .block-contact .navbar-toggler .material-icons {
        color: var(--color-white);
        width: auto;
        height: auto;
    }

    @media (max-width: 767px) {
        .links {
            .title {
                border-bottom: none;
            }

            ul {
                margin-bottom: 0;
                background-color: var(--color-dark);

                > li {
                    border-bottom: none;

                    a {
                        color: var(--color-white);

                        &:hover {
                            color: var(--color-primary);
                        }
                    }
                }
            }
        }

        .block-contact #contact-infos {
            padding: 0.625rem;
        }


    }
}


.block-contact .material-icons {
    font-size: 16px;
    vertical-align: middle;
}

#product-modal .modal-content .modal-body .product-images img:hover {
    border: var(--color-primary) 3px solid;
}

.scroll-box-arrows {
    display: none; /* Masquer par défaut */
    
    &.scroll {
        display: block; /* Afficher uniquement si la classe scroll est présente */
    }
    
    i {
        bottom: 0.5rem;
        color: var(--color-primary);
        cursor: pointer;

        &:hover {
            background-color: var(--color-white);
        }
    }
}

ol {
    padding: 0 0 0 2rem;

    li {
        &::marker {
            color: var(--color-primary);
            font-size: 1.25rem;
            font-weight: 500;
        }
    }
}

.page-content.page-cms {
    ul {
        list-style: disc;
        padding-left: 2rem;
        font-size: 1rem;
        font-weight: 400;
        color: var(--color-text);
        margin-bottom: 0;

        &::marker,
        ::marker {
            color: var(--color-primary);
        }
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-top: 2rem;
    }
}

.product-actions .add-to-cart,
.btn-primary,
.btn-secondary {
    min-height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.25rem 1.5rem;
    line-height: 1;
    box-sizing: border-box;
}

.arrow-steps {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 1rem;
    @media (max-width: 767px) {
        gap: .5rem;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 120px;
        @media (max-width: 767px) {
            min-width: 100px;
        }
        .step-number {
            width: 2.5rem;
            height: 2.5rem;
            background: var(--color-disabled);
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-white);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            position: relative;
            &::after {
                content: '';
                position: absolute;
                top: 18px;
                left: 40px;
                width: 128px;
                height: 3px;
                background: var(--color-disabled);
                @media (max-width: 767px) {
                    width: 70px;
                }
            }
        }
        .step-label {
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-disabled);
            @media (max-width: 767px) {
                font-size: .875rem;
            }
        }
    }
    .step.step-last {
        .step-number {
            &::after {
                display: none;
            }
        }
    }

    .step.step-current,
    .step.step-done {
        .step-number {
            background: var(--color-primary);
            color: var(--color-white);
        }
        .step-label {
            color: var(--color-primary);
        }
    }

    .step.step-done {
        .step-number {
            &::after {
                background: var(--color-primary);
            }

        }

    }

}

.bootstrap-touchspin .input-group-btn-vertical > .btn,
.product-quantity .input-group-btn-vertical .btn {
    padding: 0.75rem 0.6875rem;
}

.product-quantity #quantity_wanted {
    height: 50px;
    text-align: center;
}

.bootstrap-touchspin input.form-control,
.bootstrap-touchspin input.input-group {
    height: 50px;
    text-align: center;
}

.product-quantity {
    gap: 1rem;
}

.product-quantity .qty {
    margin: 0;
}

.product-quantity .add,
.product-quantity .qty {
    margin-bottom: 0;
}

#new-product-add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    @media (max-width: 767px) {
        flex-direction: column;
        gap: 0.5rem;
    }
    &.hidden {
        display: none;
    }
}

.product-quantity .input-group-btn-vertical .btn i {
    color: var(--color-primary);
    font-size: 1.5rem;
    top: 0;
    left: 0;
}

.bootstrap-touchspin .input-group-btn-vertical i {
    color: var(--color-primary);
    top: 0px;
    left: -1px;
    font-size: 1.5rem;
}

.label,
label {
    color: var(--color-text);
    font-size: 1rem;
    text-align: left;
}

a.label {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75rem;
    display: flex;
    &:hover {
        color: var(--color-dark);
    }
    i {
        font-size: 1.75rem;
    }
}

#subcategories ul li .subcategory-name:hover,
.block-categories .arrows .arrow-down:hover,
.block-categories .arrows .arrow-right:hover,
.block-categories .collapse-icons .add:hover,
.block-categories .collapse-icons .remove:hover,
.cart-grid-body a.label:hover {
    color: var(--color-dark);
}

#blockcart-modal .product-name {
    color: var(--color-primary);
}

#blockcart-modal .cart-content .page-content.page-cms ul.cart-products-count,
#blockcart-modal .cart-content p.cart-products-count,
.page-content.page-cms #blockcart-modal .cart-content ul.cart-products-count {
    color: var(--color-text);
}

#blockcart-modal .modal-title i.material-icons {
    color: var(--color-primary);
}

#header .logo {
    max-height: 85px;
}

@media (max-width: 767px) {
    #header .top-logo img {
        min-height: 45px;
    }
}

.product-miniature {
    padding-bottom: 1.5rem;
    height: 100%;

    .thumbnail-container {
        margin-bottom: 0;
        overflow: visible;

        &:focus {
            .product-description::after {
                border-top: none;
            }
        }
        &:hover {
            .product-description::after {
                border-top: none;
            }
        }

        .thumbnail-link {
            display: flex;
            flex-direction: column;
            height: 100%;
            background: var(--color-white);
            box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);

            .thumbnail-top {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                min-height: 250px;
                min-width: 250px;
                picture {
                    img {
                        min-height: 250px;
                        min-width: 250px;
                        text-align: center;
                    }
                }

                .highlighted-informations {
                    display: none;
                }
            }

            .product-description {
                background: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                flex: 1;
                padding: 0 1rem 1rem 1rem;

                .product-title {
                    flex: 1;
                    margin: 0;
                    border-top: 1px solid var(--color-light);
                    padding-top: 1rem;
                    font-size: 1.375rem;
                    text-transform: none;
                    a {
                        color: var(--color-text);
                        text-align: center;
                        font-size: 1.375rem;
                        font-weight: 500;
                        line-height: 1.5rem;
                    }
                }

                .product-price-and-shipping {
                    color: var(--color-primary);
                    text-align: center;
                    font-size: 1.5rem;
                    font-weight: 500;
                    line-height: 1.5rem;
                }
            }
            &:hover {
                box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
                .product-description {
                    .product-title {
                        color: var(--color-primary);
                    }
                }
            }
        }
    }
}

.product-flags li.product-flag {
    background: var(--color-accent);
    padding: 0.3125rem 0.75rem;
    font-weight: 500;
}

#products .all-product-link,
.featured-products .all-product-link,
.product-accessories .all-product-link {
    color: var(--color-primary);
    &:hover {
        color: var(--color-dark);
    }
}

h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

h1,
.h1 {
    font-size: 2.625rem;
}

h2,
.h2 {
    font-size: 2.25rem;
}

h3,
.h3 {
    font-size: 2rem;
}

h4,
.h4 {
    font-size: 1.625rem;
}

h5,
.h5 {
    font-size: 1.375rem;
}

.product-cover .layer {
    background: var(--color-dark);
    background: color-mix(in srgb, var(--color-dark) 40%, transparent);
}

.block-promo .promo-name .cart-summary-line span {
    color: var(--color-accent);
}

.block-promo .promo-name .cart-summary-line .label {
    color: var(--color-text);
}

.remove-from-cart {
    i {
        color: var(--color-primary);
        &:hover {
            color: var(--color-dark);
        }
    }
}

.contact-rich {
    color: var(--color-primary);
    .block {
        .data {
            font-size: 1rem;
            color: var(--color-text);
            font-weight: 500;
        }

        a[href^="mailto:"] {
            font-size: 1rem;
            font-weight: 500;
        }
    }
}

/* --- Style des groupes de champs --- */
.form-group {
    margin-bottom: 1rem;
    label {
        margin-bottom: 0;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--color-text);
        text-align: left;
        &[for="num_rpps"] {
            padding-top: 3.25rem;
            background-image: url(img/rpps.png);
            background-repeat: no-repeat;
            background-position: left top;
            background-size: 6.8125rem 3.5rem;
            padding-left: 0;
        }
        &[for="num_ameli"] {
            padding-top: 3.25rem;
            background-image: url(img/am.png);
            background-repeat: no-repeat;
            background-position: left top;
            background-size: 6.8125rem 3.5rem;
            padding-left: 0;
        }
    }
    .error-message {
        color: var(--color-accent);
        font-size: 0.875rem;
        margin: 0;
        min-height: 0;
    }
}

/* --- Indicateur de champ requis --- */
.required-label::after {
    content: " *";
    color: var(--color-accent);
    font-weight: 500;
}

/* --- Style des champs de saisie --- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-light);
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    background-color: var(--color-white);
}

/* --- Style pour les selects avec flèche personnalisée --- */
.form-control.form-control-select {
    position: relative;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2.5rem;
    color: var(--color-text);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--color-primary) 50%, transparent);
}

/* --- Style des textarea --- */
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 0.0625rem solid var(--color-light);
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    resize: vertical;
    min-height: 5rem;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--color-primary) 50%, transparent);
}

textarea.invalid {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--color-accent) 50%, transparent);
}

input.invalid {
    border-color: var(--color-accent);
}
input.invalid:focus {
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--color-accent) 50%, transparent);
}

input::placeholder {
    color: var(--color-text-light);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--color-bg);
    opacity: 1;
}

.bootstrap-touchspin .group-span-filestyle .btn-touchspin,
.group-span-filestyle .bootstrap-touchspin .btn-touchspin,
.group-span-filestyle .btn-default {
    background: var(--color-primary);
    &:hover {
        background: var(--color-dark);
    }
}

.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-authentication #content,
.page-registration #content,
.page-password #content {
    max-width: none;
}

.input-group .input-group-btn > .btn[data-action="show-password"] {
    background: var(--color-primary);
    &:hover {
        background: var(--color-dark);
    }
}

.form-control {
    background: var(--color-white);
}

.page-my-account #content .links a {
    color: var(--color-primary);
    i {
        color: var(--color-primary);
    }
    &:hover {
        color: var(--color-dark);
        i {
            color: var(--color-dark);
        }
    }
}

.page-footer .account-link span {
    font-size: 1rem;
}

/* --- Styles pour les radio buttons dans les sections de choix --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    label {
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        font-size: 1.125rem;
        line-height: 1.2;
        font-weight: 500;
        color: var(--color-text);
        margin: 0;
        padding: 0;
        text-align: left;
        &:hover {
            color: var(--color-primary);
        }
    }

    label::before {
        content: "";
        display: inline-block;
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid var(--color-light);
        border-radius: 50%;
        margin-right: 0.75rem;
        background-color: var(--color-white);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    input[type="radio"]:checked + label {
        color: var(--color-primary);
    }

    input[type="radio"]:checked + label::before {
        background-color: var(--color-primary);
        border-color: #b5c9c9;
        box-shadow: inset 0 0 0 3px var(--color-white);
    }

    input[type="radio"]:focus + label::before {
        outline: none;
        box-shadow: 0 0 0 3px rgba(181, 201, 201, 0.4);
    }

    input[type="radio"]:checked:focus + label::before {
        box-shadow:
            inset 0 0 0 3px var(--color-white),
            0 0 0 3px rgba(181, 201, 201, 0.4);
    }

    /* Animation pour le feedback visuel du délai */
    input[type="radio"].delayed-selection + label::before {
        background-color: #20b2aa;
        border-color: #b5c9c9;
        box-shadow: inset 0 0 0 3px var(--color-white);
        animation: radioPulse 0.5s ease-in-out;
    }

    @keyframes radioPulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }
}

.page-order,
.page-registration,
.page-identity {
    .custom-radio {
        border: 0.125rem solid var(--color-light);
        bottom: 0.125rem;
        margin-right: 0;
        input[type="radio"]:checked + span {
            position: absolute;
            top: 0.125rem;
            left: 0.125rem;
            display: block;
            width: 10px;
            height: 10px;
            background-color: var(--color-primary);
        }
    }
    .radio-label-text {
        font-weight: 500;
        color: var(--color-text);
        margin-left: 0.5rem;
    }
}

.thead-default th {
    color: var(--color-text);
    background-color: var(--color-bg);
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border: 1px solid var(--color-white);
}

.page-customer-account #content {
    color: var(--color-text);
}

/* Centrer le bouton de sauvegarde du module registrationfields */
#registration_fields .clearfix.form-group.margin-form + label + div {
    text-align: center;
    margin-top: 20px;
}

#registration_fields .clearfix.form-group.margin-form + label + div button,
#registration_fields
    .clearfix.form-group.margin-form
    + label
    + div
    input[type="submit"] {
    margin: 0 auto;
    display: block;
}

.forgotten-password {
    .form-fields {
        .email {
            width: auto;
            @media (max-width: 767px) {
                padding: 0;
            }
        }
        .center-email-fields {
            flex-direction: column;
        }
    }
}

#blockcart-modal .cart-content .cart-content-btn {
    width: 100%;
    margin: 1rem 0;
}

.bootstrap-touchspin {
    min-width: 4.44rem;
}

.all-product-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary);
    &:hover {
        color: var(--color-dark);
    }
    i {
        font-size: 1.75rem;
    }
}

.page-content.page-cms .products-selection ul,
.page-content.page-cms .products-selection ul .select-title,
.page-content.page-cms .products-selection ul .sort-by,
.products-selection .page-content.page-cms ul,
.products-selection .page-content.page-cms ul .select-title,
.products-selection .page-content.page-cms ul .sort-by,
.products-selection .sort-by-row,
.products-selection .sort-by-row .select-title,
.products-selection .sort-by-row .sort-by,
.products-selection p,
.products-selection p .select-title,
.products-selection p .sort-by {
    font-size: 1rem;
    color: var(--color-text);
}
.products-selection .sort-by-row .select-title,
.products-selection .sort-by-row {
    i {
        height: 1.5rem;
        line-height: 1.5rem;
    }
}

.brands-sort .select-list:hover,
.products-sort-order .select-list:hover,
.suppliers-sort .select-list:hover {
    color: var(--color-white);
    text-decoration: none;
    background: var(--color-primary);
}

.pagination {
    .pagination-summary {
        font-size: 1rem;
        color: var(--color-text);
        text-align: center;
    }
    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .page-list {
        padding: 0;
        background: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        margin: 0;
        gap: 1rem;
    }
    .previous,
    .next {
        float: none;
        display: flex;
    }
    a {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--color-primary);
        &:hover {
            color: var(--color-dark);
        }
    }
    .current-page {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--color-text);
    }
    i {
        font-size: 1.75rem;
    }
}

#products .up .btn-secondary {
    color: var(--color-primary);
    &:hover {
        color: var(--color-dark);
    }
}

.block-categories {
    .category-top-menu > li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        > .category-sub-menu {
            gap: 0.5rem;
        }
    }
    .navbar-toggler.collapse-icons {
        width: 1.5rem;
        height: 1.5rem;
        line-height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;

        i {
            width: 1.5rem;
            height: 1.5rem;
            line-height: 1.5rem;
            color: var(--color-primary);
            &:hover {
                color: var(--color-dark);
            }
        }
    }
    .category-sub-menu {
        display: flex;
        flex-direction: column;
        margin: 0;
        width: 100%;
        &[data-depth="1"] {
            gap: 0.5rem;
        }
        li {
            &[data-depth="0"] > a {
                color: var(--color-primary);
                width: auto;
                padding: 0 1.5rem 0 0;
                margin: 0;
                &:hover {
                    color: var(--color-dark);
                }
            }
            &[data-depth="1"] {
                margin-bottom: 0;
            }
        }
    }
    a.category-sub-link {
        color: var(--color-primary);
        &:hover {
            color: var(--color-dark);
        }
    }
}

#products {
    color: var(--color-text);
}

#mobile_top_menu_wrapper {
    /* Désactiver toutes les transitions et animations pour un affichage immédiat */
    transition: none !important;
    animation: none !important;
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Désactiver les transitions sur les éléments de menu mobile */
.js-top-menu,
.js-top-menu *,
.mobile .js-top-menu,
.mobile .js-top-menu *,
.collapse,
.collapse *,
.js-sub-menu,
.js-sub-menu * {
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}

/* Désactiver les transitions Bootstrap sur les éléments de collapse */
.collapse.in,
.collapse.show {
    transition: none !important;
    animation: none !important;
}

#mobile_top_menu_wrapper .js-top-menu-bottom a {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1rem;
    &:hover {
        color: var(--color-dark);
    }
}

.page-search,
.page-pagenotfound {
    #search_widget {
        width: 100%;
        form {
            input {
                width: 100%;
                padding: 0.25rem 1.25rem 0.25rem 2.5rem;
                outline: none;
                background-color: var(--color-white);
                border: 1px solid var(--color-light);
                border-radius: 0;
                color: var(--color-primary);
                overflow: visible;
            }
            input::placeholder {
                color: var(--color-light);
            }
            i {
                color: var(--color-primary);
                padding: 0;
                padding: 0;
                top: 0.3125rem;
                left: 0.3125rem;
            }
        }
    }
}

.done {
    color: var(--color-primary);
}

body#checkout section.checkout-step.-reachable.-current .step-number {
    background-color: var(--color-primary);
    color: var(--color-white);
}

body#checkout section.checkout-step.-reachable.-complete h1 .step-edit {
    color: var(--color-primary) !important;
    font-size: 1.125rem;
    &:hover {
        color: var(--color-dark) !important;
    }
}

body#checkout section.checkout-step .delivery-options .delivery-option {
    min-height: initial;
    padding: initial;
    background: initial;
}

body#checkout section.checkout-step .delivery-options > .row {
    border-right: none;
}

body#checkout section.checkout-step .payment-options .payment-option {
    display: flex;
    align-items: center;
}

body#checkout section.checkout-step .payment-options label {
    margin-bottom: 0;
}

body#checkout .additional-information {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.page-order-confirmation {
    .h1.card-title {
        i {
            font-size: 2.625rem;
        }
    }
}


.product-features>dl.data-sheet dd.value,
.product-features>dl.data-sheet dt.name{
    text-transform: none;
}

.block-category .block-category-inner #category-description .page-content.page-cms ul,
.block-category .block-category-inner #category-description p,
.page-content.page-cms .block-category .block-category-inner #category-description ul,
#category #category-description.text-muted{
    font-size: 1rem;
    color: var(--color-text) !important;
}


#product .ctf_click_open_contactform7 {
    display: flex;
    margin: 0;
}

.ctf_click_open_contactform7 {
    padding: 0;
    display: flex;
    border-radius: 0;
    padding: 0.25rem 1.5rem;
    @media (max-width: 767px) {
        padding: 0.25rem 1rem;
        text-indent: -9999px;
        overflow: hidden;
        white-space: nowrap;
        height: 0;
        border: none;
        background: none;
        box-shadow: none;
        text-shadow: none;
    }
}

.ctf_click_open_contactform7 svg.w_14.h_14 {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: .625rem;
    @media (max-width: 767px) {
        margin-right: 0;
    }
}

.has-discount .discount {
    background: var(--color-accent);
}

.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-amount,
.product-flags li.product-flag.discount-percentage {
    background-color: var(--color-accent);
}

.product-accessories {
    h3.h3{
        margin: 2.5rem 0;
        font-weight: 500;
        text-align: center;
    }
}

.block-promo .promo-code form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    input{
        width: 100%;
    }
    button{
        width: 100%;
    }
}

.block-promo .promo-input {
    margin-right: 0;
}

.block-promo .promo-input+button {
    margin-top: 0;
    margin-left: 0;
    text-transform: capitalize;
    border: none;
}

.block-promo .promo-code-button.cancel-promo {
    margin-bottom: 0;
    color: var(--color-primary);
    &:hover {
        color: var(--color-dark);
    }
}

/* Astérisques pour les champs obligatoires du module registrationfields */
.page-identity .rf_input_label.required::after,
.page-identity .form-control-label.required::after,
.register-form .rf_input_label.required::after,
.register-form .form-control-label.required::after,
.page-identity .form-control-label[for="field-id_gender"]::after,
.register-form .form-control-label[for="field-id_gender"]::after{
    content: " *";
    color: var(--color-accent);
    font-weight: bold;
}

/* Masquer les labels vides avec classe required */
.page-identity .form-control-label.required:empty,
.register-form .form-control-label.required:empty {
    display: none;
}

/* Ou masquer les form-group entiers vides */
.form-group:has(.rf_input_label:empty) {
    display: none;
}

/* Supprimer l'effet des classes col-md-3 et col-md-6 pour les champs d'opt-in */
.form-group > .col-md-3,
.form-group > .col-md-6 {
    flex: none;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

#customer-form .gps-recaptcha-badge {
    background: var(--color-white) !important;
    a {
         color: var(--color-primary) !important;
         &:hover {
            color: var(--color-dark) !important;
         }
    }
}

.product-pack-price{
    font-weight: 500;
    text-decoration: line-through;
    color: #7a7a7a;
}

#my-account a[href*="module=registrationfields&controller=myinfo"],
#my-account a[href*="extra-fields"],
#psgdpr-link,
#order-slips-link {
    display: none !important;
}

/* Masquer le lien "Avoirs" dans le footer */
#block_myaccount_infos a[href*="avoirs"] {
    display: none !important;
}

#header a:hover {
    color: var(--color-primary);
}

#mobile_top_menu_wrapper .top-menu .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
}

#contact #file-upload{
    width: 10px;
}

.grecaptcha-badge{
    visibility: hidden !important;
}

@media (max-width: 767px) {
    .ets-cfu-button-popup.ctf_click_open_contactform7 {
        margin-right: 0 !important;
    }
    #registration,
    #contact,
    #checkout {
        .ctf_click_open_contactform7 {
            display: none;
        }
    }
}

.wpcfu{
    .ets_cfu_input label .ets_cfu_span {
        margin: 0;
    }

    .buttonText {
        white-space: nowrap;
    }

    .ets_cfu_input_submit .ets_cfu_form-control{
        margin: 0 auto;
    }
}

.page-customer-account #content {
    padding: 0;
    background: none;
    font-size: inherit;
    color: inherit;
}

body#password .page-content {
    padding: 1rem;
    background: #fff;
    margin: 0 auto;
}

#blockcart-modal .cart-content-btn {
    .btn{
        width: 100%;
    }
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    @media (max-width: 767px) {
        flex-direction: column;
        gap: 0.5rem;
    }
}
