/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Umani Web
 Author URI: https://umaniweb.com
 Template: Divi
 Version: 1.1.1
*/

/* =Theme customization starts here
------------------------------------------------------- */

:root {
    --orange: #e75204;
}

.text-center {
    text-align: center;
}

.mb-1 {
    display: block;
    margin-bottom: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mt-6 {
    margin-top: 60px;
}

.mr-05 {
    margin-right: 5px;
}

.text-black {
    color: #333333;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;

    &:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

.et_pb_text_inner {
    font-size: 17px;

    ul {
        margin-left: 20px;
        padding-bottom: 0;
        margin-bottom: 20px;
        list-style: disc;

        li {
            margin-bottom: 5px;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    p {
        margin-bottom: 20px;
        padding-bottom: 0;

        &:last-child {
            margin-bottom: 0;
        }
    }
}


/*Custom scroll bar*/
body {
    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--orange);
    }
}


#et-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    padding: 7px 0 12px 0;

    &:before {
        position: absolute;
        inset: 0;
        content: '';
        display: inline-block;
        width: 0;
        height: 100%;
        background: linear-gradient(to right, rgba(231, 82, 4, 0), rgba(231, 82, 4, 1));
        opacity: .5;
        animation: circular 5s .5s infinite;
        z-index: 2;
        pointer-events: none;
    }
}

@keyframes circular {
    0% {
        width: 0;
    }

    100% {
        margin-left: 100%;
        width: 100%;
    }
}

#et-info-phone, #et-info-email {
    display: flex;
    align-items: center;
    gap: 5px;
}

#et-info-phone::before, #et-info-email::before {
    top: 0;
}

#et-info-phone {
    transition: .2s;
}

#et-info-phone:hover {
    opacity: 0.8;
}


.home-slider > .et_pb_slides > .et_pb_slide, .page-header {
    position: relative;
    z-index: 1;
}

.home-slider > .et_pb_slides > .et_pb_slide::before, .page-header::before {
    position: absolute;
    content: '';
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

.home-slider {
    .et-pb-controllers {
        a {
            width: 14px;
            height: 14px;

            &.et-pb-active-control {
                background: var(--orange);
            }

            &:hover {
                background: var(--orange);
            }
        }
    }

    .et-pb-slider-arrows {
        a {
            &:hover {
                &::before {
                    color: var(--orange);
                }
            }
        }
    }
}

.et_fixed_nav #top-header, .et_fixed_nav #main-header {
    position: fixed;
}

.icon-address-footer {
    display: inline-flex;
    gap: 9px;

    i {
        margin-top: 7px;
    }
}

.icon-footer {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    transition: .2s;

    &:hover {
        color: var(--orange) !important;
    }
}

#media_image-3 {
    margin-bottom: 0;
}

/* Navigation réalisations */
#nav_menu-2 {
    width: 100%;
    margin-bottom: 0;
    margin-right: 0;


    .widgettitle {
        font-size: 15px;
        color: #333333;
    }
}


.et_pb_widget_area {
    border-left: 1px solid rgba(0, 0, 0, .1) !important;
    padding-left: 30px !important;
}

#menu-realisations {
    display: flex;
    flex-wrap: wrap;
    column-gap: 40px;

    @media (max-width: 768px) {
        flex-direction: column;
    }


    .menu-item {
        a {
            font-weight: 500;
        }
    }

    .current-menu-item {
        a {
            color: var(--orange);
            text-decoration: underline;
            font-weight: 600;
        }
    }
}

.epb-realisations {
    .et_pb_portfolio_grid_items {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));


        > .project {
            width: 100%;
            margin-right: 0;

            .et_overlay {
                border: 0 !important;
            }
        }
    }

}

.et_pb_button {
    &:hover {
        opacity: .8;
    }
}

/* Map */
.gm-style-iw {
    h3 {
        color: #333333;
        font-size: 15px;
    }

    a {
        display: inline-block;
        padding: 10px 20px;
        background: var(--orange);
        color: #fff;
        transition: .2s;

        &:hover {
            background: #333333;
        }
    }
}

.row-locations {
    .et_clickable {
        .et_pb_image_wrap {
            overflow: hidden;
            width: 100%;
            height: clamp(200px, 30vw, 300px);

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: .2s;
            }
        }

        &:hover {
            .et_pb_text_inner {
                p {
                    color: #333333;
                }
            }

            .et_pb_image_wrap {
                img {
                    transform: scale(1.1);
                }
            }
        }
    }
}

.sl-overlay {
    z-index: 99999 !important;
}

.sl-wrapper {
    z-index: 999999 !important;
}


.photos-terrain-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    .photo-terrain {
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: .2s;
        }

        &:hover {
            img {
                transform: scale(1.1);
            }
        }
    }
}

.terrains-boxes {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    margin-top: 25px;

    text-align: center;

    .terrain {
        background-color: #333;

        padding: 20px 10px;

        h3 {
            color: #fff;
            font-size: 22px;
        }
    }
}