:root {
    --color-dark: #2D2D2D;
    --color-text: #364153;
    --color-muted: #6B7280;
    --color-accent: #A9C606;
    --color-bg-light: #F2F5EE;
    --color-border: #E5E7EB;
    --color-white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

#haut_home{ 
    & #slider_home:not( .owl-item) {
        & .slide ~ .slide {
            display: none !important;
        }
    }
}

body {
    & .btn-white {
        font-weight: 500;
        border-radius: 5px;
        display: inline-block;
        color: var(--color-accent);
        background-color: var(--color-white);
        padding: min(0.6em,3.5vw) min(1em,5vw);
    }
    & .btn-boder-white {
        font-weight: 500;
        border-radius: 5px;
        display: inline-block;
        color: var(--color-white);
        background-color: transparent;
        border: 1px solid var(--color-white);
        padding: min(0.6em,3.5vw) min(1em,5vw);
    }
    & .btn-arrow {
        column-gap: 1em;
        align-items: center;
        display: inline-flex;
        &::after {
            position: relative;
            scale: 1.5;
            content: '';
            color: currentColor;
            padding: min(.5em,5vw);
            mask: url(/wp-content/themes/labocaine/images/fleche-droite-vert.png) center / contain no-repeat;
        }
    }
    & .container {
        margin-inline: auto;
        width: clamp(min(400px,90vw),90vw,1200px);
    }
    & .container-xl {
        margin-inline: auto;
        width: clamp(min(400px,90vw),90vw,1720px);
    }
    & > header:not([class]) {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;  
        padding-block: min(1em, 5vw);
        background-color: var(--color-white);
        & .container-xl {
            & .row {
                position: relative;
                display: flex;
                column-gap: 5%;
                align-items: center;
                justify-content: space-between;
                & .logo {
                    display: block;
                    width: min(209px, 30vw);
                }
                & .primary {
                    display: flex;
                    & > li {
                        isolation: isolate;
                        &.current-menu-item {
                            &::after {
                                content: '';
                                position: absolute;
                                bottom: -0.5rem;
                                left: 0;
                                width: 100%;
                                height: 2px;
                                background-color: currentColor;
                            }
                        }
                        & > a {
                            position: relative;
                            z-index: 1;
                            display: block;
                            padding: min(.8em,5vw) min(1em,5vw) min(.9em,5vw);
                            &:is(li:hover &) {color: var(--color-white);}
                            &::before {
                                position: absolute;
                                inset: 0;
                                opacity: 0;
                                content: "";
                                transition: all .3s;
                                pointer-events: none;
                                background-color: var(--color-accent);
                            }
                            &:is(li:hover &)::before {
                                opacity: 1;
                            }
                        }
                        & > .sub-menu {
                            position: absolute;
                            left: 0;
                            top: 100%;
                            width: 100%;
                            background-color: var(--color-white);
                        }
                    }
                }
                & .open-nav {
                    position: relative;
                    z-index: 2;
                    height: 28px;
                    color: var(--color-white);
                    row-gap: 8px;
                    display: flex;
                    cursor: pointer;
                    transition: .2s;
                    width: max-content;
                    align-items: center;
                    flex-direction: column;
                    justify-content: center;
                    & span {
                        width: 1.8rem;
                        height: 0.15rem;
                        line-height: 0;
                        transition: all .3s;
                        border-radius: 1rem;
                        pointer-events: none;
                        background: currentColor;
                        transform-origin: 55% center;
                    }
                    @media screen and (width >= 1200px) {
                        & {
                            display: none;
                        } 
                    }
                }
            }
        }
        & + #main {padding-top: 0;}
    }

    & .page-header {
        background-color: var(--color-accent);
        & .container {
            position: relative;
            padding-block: min(5em,10vw);
            & > * {color: var(--color-white);}
            & .label {
                font-family: 'Sofia Pro';
                text-transform: uppercase;
                font-size: clamp(min(13px,3.5vw),1vw,14px);
            }
            & h1 {
                font-weight: 500;
                font-family: 'Sofia Pro';
                font-size: clamp(min(18px,5vw),1.5vw,36px);
            }
        }
    }

    & .intro-content {
        & h2 {
            color: var(--color-dark);
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 16px;
            line-height: 1.3;
        }
        
        & p {
            color: var(--color-text);
            font-size: 16px;
            margin-bottom: 24px;
            line-height: 1.6;
        }
        
        & .info-box {
            background-color: var(--color-bg-light);
            border-left: 4px solid var(--color-accent);
            padding: 16px 20px;
            border-radius: 0 var(--radius) var(--radius) 0;
            font-size: 14px;
            color: var(--color-text);
        }
    }

    & .steps-list {
        display: flex;
        flex-direction: column;
        gap: 24px;
    
        & .step-item {
            display: flex;
            gap: 16px;
            align-items: flex-start;
            
            & .step-number {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background-color: var(--color-dark);
                color: var(--color-white);
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                font-size: 14px;
                flex-shrink: 0;
            }
            
            & .step-content {
                & h3 {
                    color: var(--color-dark);
                    font-size: 16px;
                    font-weight: 600;
                    margin-bottom: 4px;
                }
                
                & p {
                    color: var(--color-muted);
                    font-size: 14px;
                }
            }
        }
    }

    & .properties-section {
        padding: 48px 0;
        
        & .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 32px;
            flex-wrap: wrap;
            gap: 16px;
            
            & .title-group {
                & h2 {
                    color: var(--color-dark);
                    font-size: 24px;
                    font-weight: 600;
                    margin-bottom: 8px;
                }
                
                & p {
                    color: var(--color-muted);
                    font-size: 14px;
                }
            }
            
            & .offer-count {
                color: var(--color-accent);
                font-weight: 600;
                font-size: 14px;
            }
        }
        
        & .properties-grid {
            display: grid;
            gap: 24px;
            
            @media (min-width: 640px) {
                & {grid-template-columns: repeat(2, 1fr);}
            }
            
            @media (min-width: 1024px) {
                & {grid-template-columns: repeat(3, 1fr);}
            }
        }
    }

    & .property-card {
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: box-shadow 0.3s ease, transform 0.2s ease;
        
        &:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        
        & .card-image {
            position: relative;
            aspect-ratio: 16/10;
            background-color: var(--color-bg-light);
            overflow: hidden;
            
            & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
            
            & .placeholder-icon {
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--color-border);
                
                & svg {
                    width: 48px;
                    height: 48px;
                    opacity: 0.5;
                }
            }
            
            & .badge {
                position: absolute;
                top: 12px;
                left: 12px;
                padding: 6px 12px;
                border-radius: 20px;
                font-size: 12px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                
                &.badge-available {
                    background-color: var(--color-accent);
                    color: var(--color-white);
                }
                
                &.badge-coming {
                    background-color: var(--color-muted);
                    color: var(--color-white);
                }
                
                &.badge-last {
                    background-color: var(--color-dark);
                    color: var(--color-white);
                }
            }
        }
    }

    & .card-content {
        padding: 20px;
        
        & .location {
            font-size: 12px;
            color: var(--color-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        
        & .title {
            font-size: 18px;
            font-weight: 600;
            color: var(--color-dark);
            margin-bottom: 12px;
        }
        
        & .specs {
            font-size: 14px;
            color: var(--color-text);
            margin-bottom: 16px;
        
            & .price {
                color: var(--color-accent);
                font-weight: 600;
            }
            
            & .separator {
                margin: 0 4px;
                color: var(--color-muted);
            }
        }
        
        & .btn {
            display: block;
            width: 100%;
            padding: 12px;
            background-color: var(--color-accent);
            color: var(--color-white);
            text-align: center;
            text-decoration: none;
            border-radius: var(--radius);
            font-weight: 500;
            font-size: 14px;
            transition: filter 0.2s;
            border: none;
            cursor: pointer;
            
            &:hover {
                filter: brightness(0.9);
            }
        }
    }

    & .trust-section {
        padding: 48px 0;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        margin: 32px 0;
        
        & .trust-list {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
            
            @media (max-width: 768px) {
                flex-direction: column;
                gap: 16px;
            }
            
            & .trust-item {
                font-size: 13px;
                font-weight: 600;
                color: var(--color-dark);
                text-transform: uppercase;
                letter-spacing: 0.5px;
                white-space: nowrap;
            }
            
            & .dot {
                width: 8px;
                height: 8px;
                background-color: var(--color-accent);
                border-radius: 50%;
                
                @media (max-width: 768px) {
                    display: none;
                }
            }
        }
        }

        & .faq-section {
        padding: 48px 0 80px;
        
        & h2 {
            color: var(--color-dark);
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 24px;
        }
        
        & .faq-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        & .faq-item {
            border: 1px solid var(--color-border);
            border-radius: var(--radius);
            overflow: hidden;
            background-color: var(--color-white);
            
            &.active {
            & .faq-question {
                background-color: var(--color-bg-light);
                
                & .icon {
                transform: rotate(45deg);
                }
            }
            }
            
            & .faq-question {
                width: 100%;
                padding: 20px 24px;
                background: none;
                border: none;
                text-align: left;
                font-size: 16px;
                font-weight: 500;
                color: var(--color-accent);
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                transition: background-color 0.2s;
                font-family: inherit;
                
                &:hover {
                    background-color: var(--color-bg-light);
                }
                
                & .icon {
                    width: 20px;
                    height: 20px;
                    position: relative;
                    transition: transform 0.3s;
                    flex-shrink: 0;
                    margin-left: 16px;
                    
                    &::before,
                    &::after {
                    content: '';
                    position: absolute;
                    background-color: var(--color-accent);
                    }
                    
                    &::before {
                    width: 2px;
                    height: 100%;
                    left: 50%;
                    transform: translateX(-50%);
                    }
                    
                    &::after {
                    width: 100%;
                    height: 2px;
                    top: 50%;
                    transform: translateY(-50%);
                    }
                }
            }
            
            & .faq-answer {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding 0.3s ease;
                
                &.open {
                    max-height: 200px;
                    padding: 0 24px 20px;
                }
                
                & p {
                    color: var(--color-text);
                    font-size: 14px;
                    line-height: 1.6;
                }
            }
        }
    }
}