/*
Theme Name: Lex Leman
Theme URI: https://lex-leman.com/
Description: A child theme for Ollie.
Author: Mojocom
Author URI: https://www.mojocom.fr/
Template:     ollie
Version: 1.1.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Text Domain: lexleman
*/

/* Full-page white background with subtle vertical lines. */
body.wp-child-theme-lexleman {
    --lexleman-line-color: rgba(0, 72, 149, 0.08);
    --lexleman-line-spacing: 20%;

    min-height: 100vh;
    background-color: #fff;
    background-image: linear-gradient(
        to right,
        transparent calc(50% - 0.5px),
        var(--lexleman-line-color) calc(50% - 0.5px),
        var(--lexleman-line-color) calc(50% + 0.5px),
        transparent calc(50% + 0.5px)
    );
    background-size: var(--lexleman-line-spacing) 100%;
    background-repeat: repeat-x;
    background-position: left top;
}

/* Keep decorative overflow inside the page bounds, not each individual group.
 * clip preserves sticky positioning and the document's normal scroll container.
 */
body.wp-child-theme-lexleman > .wp-site-blocks {
    overflow: hidden;
    overflow: clip;
}

@media (max-width: 767px) {
    body.wp-child-theme-lexleman {
        --lexleman-line-spacing: 33.333333%;
    }
.footer-lexleman {
    text-align: center;
}

}

.leaflet-map {
       width: 100% !important;
    height: 500px !important;
    max-width: 1450px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

p.wp-block-paragraph {
    text-align: justify;
}

 
footer p.wp-block-paragraph {
    text-align: left;
}




/* =========================
NAVIGATION
========================= */

.wp-block-gallery {
    --gallery-color: #004895;

    position: relative;
    display: block;
    width: 100%;

    .swiper {
        width: 100%;
        overflow: visible !important;
    }

    .swiper-wrapper {
        align-items: stretch;
        height: fit-content !important;
    }

    .swiper-slide {
        display: flex;
        height: 450px;
        margin: 0;
        align-items: stretch;

        figure {
            width: 100%;
            height: 100%;
            margin: 0;
        }

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

   

    .swiper-button-prev,
    .swiper-button-next {
        position: absolute;
        top: 50%;
        z-index: 10;

        width: 46px;
        height: 46px;

        margin: 0 10px;

        border: 2px solid var(--gallery-color);
        border-radius: 50%;

        background: #fff;

        color: var(--gallery-color);

        transform: translateY(-50%);

        transition:
            background-color 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease;

        &::after {
            font-size: 16px;
            font-weight: 700;
        }

        &:hover {
            background: var(--gallery-color);
            color: #fff;
        }
    }

    .swiper-button-prev {
        left: -23px;
    }

    .swiper-button-next {
        right: -23px;
    }

    

    .swiper-pagination {
        position: relative;

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

        gap: 7px;

        margin-top: 20px;

        .swiper-pagination-bullet {
            width: 9px;
            height: 9px;

            margin: 0 !important;

          

            background: var(--gallery-color);

            transition:
                opacity 0.25s ease,
                transform 0.25s ease;

            &-active {
                opacity: 1;
                transform: scale(1.25);
            }
        }
    }
}



/** NAVIGATION **/
/* =========================
   NAVIGATION
========================= */

.wp-block-navigation {
    gap: 2rem;
}

.wp-block-navigation .wp-block-navigation-item__content {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0;
    color: inherit;
    text-decoration: none !important;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Ligne sous le lien */
.wp-block-navigation .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Hover */
.wp-block-navigation .wp-block-navigation-item__content:hover {
    transform: translateY(-2px);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Page active */
.wp-block-navigation
.wp-block-navigation-item.current-menu-item
.wp-block-navigation-item__content {
    font-weight: 700;
}

.wp-block-navigation
.wp-block-navigation-item.current-menu-item
.wp-block-navigation-item__content::after {
    transform: scaleX(1);
    transform-origin: left;
}



/* ========================================
   BACKGROUND LOGO
======================================== */

.background-logo {
    position: relative;
    isolation: isolate;
    /*overflow: hidden;*/
}

/* position à gauhce par défaut */

.background-logo::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 100%;
    height: 100%;

    background-image: url("assets/images/logo-transparent.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.06;

    pointer-events: none;

    transition: transform 0.6s ease, opacity 0.6s ease;
        left: -30%;
    top: 40%;
    transform: translateY(-50%);
}


/* ========================================
   POSITION DROITE
======================================== */

.background-logo-droite::before {
 right: -30%;
    left: unset;
    top: 40%;
}
