﻿/*
Theme Name: Bueno Immobilier
Author: Antigravity
Description: Thème sur-mesure pour Bueno Immobilier
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {

    --primary-color: #534028;
    --dark-color: #4A463B;
}

body {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    color: #555;
}

img {
    max-width: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #8E7046;
    text-decoration: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f1f1f1;
    /* Light gray initially */
    transition: all 0.4s ease;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.navbar-scrolled {
    background: rgba(245, 241, 234, 0.95);
    /* Light gray/beige with glassmorphism on scroll */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 5px 0;
}

.main-header.navbar-beige-permanent {
    background: #f9f5eb !important;
    /* Fixed beige color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Language Switcher --- */
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.lang-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
}

.lang-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.lang-options {
    position: absolute;
    bottom: 75px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.language-switcher:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #eee;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.lang-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary-color);
}

.main-header .navbar {
    padding-bottom: 2px;
    padding-top: 2px;
}

.main-header .navbar-nav>li {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.main-header .navbar-nav>li>.nav-link {
    padding: 0 5px;
    line-height: 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 3px;
    position: relative;
    margin-top: 5px;
    /* Ajoute du souffle au-dessus du texte */
}

.main-header .navbar-nav>li>.nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: ease all 0.3s;
}

.main-header .navbar-nav>li>.nav-link:hover {
    color: var(--primary-color);
}

.main-header .navbar-nav>li>.nav-link:hover:after {
    left: 0;
    right: auto;
    width: 100%;
}

.logo {
    height: 65px;
    width: auto;
    mix-blend-mode: multiply;
    /* Rend le fond blanc transparent sur fond clair */
}

@media (max-width: 991px) {
    .main-header .navbar-collapse {
        border-bottom: 2px solid var(--dark-color);
        border-top: 2px solid var(--dark-color);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
    }

    .main-header .navbar-nav>li+li {
        border-top: 1px solid rgba(55, 55, 55, 0.1);
    }

    .main-header .navbar-nav>li>.nav-link {
        line-height: 50px;
    }

    .main-header .navbar-nav>li>.nav-link::after {
        display: none;
    }

    .main-header .navbar-toggler {
        display: flex;
        flex-direction: column;
        border: none;
        padding: 4px 9px;
        outline: none;
        box-shadow: none;
    }

    .main-header .navbar-toggler span {
        width: 25px;
        height: 2px;
        background: var(--dark-color);
        margin: 4px 0;
        transition: 0.3s;
    }
}

.main-header .navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.main-header .navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.main-header .navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.fixed-header .main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.125rem 0.25rem rgba(55, 55, 55, 0.07);
}

/* --- Fix pour la barre d'administration WordPress --- */
body.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }
}

.colored-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: ease all 0.3s;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 6px 6px 0 -1px var(--dark-color);
}

.colored-btn:hover {
    color: #fff;
    background: var(--dark-color);
    border-color: var(--dark-color);
    box-shadow: 5px 5px 0 -2px var(--primary-color);
}

/* --- Utilities Backgrounds --- */
.bg-gray {
    background-color: rgba(254, 196, 72, 0.1);
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-1 {
    background-color: #6ad5d0 !important;
}

.bg-2 {
    background-color: #FEC447;
}

.bg-3 {
    background-color: #f0bd9a;
}



main {
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Home Section */
.home-section {
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 60px;
}

.home-image img {
    height: 450px;
    width: 450px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--dark-color);
    position: relative;
    z-index: 1;
}


.about-text p {
    font-size: 18px;
}

.section-heading {
    padding-bottom: 20px;
    text-align: center;
}

.section-heading h3 {
    font-size: 50px;
    margin-top: auto;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#marging {
    margin-top: -110px;
    margin-bottom: 20px;
}


.feature-box {
    padding: 10px;
    border: 2px solid var(--dark-color);
    box-shadow: 0 0 0 0 var(--dark-color);
    display: flex;
    transition: 0.3s box-shadow;
}

.feature-box:hover {
    box-shadow: 5px 5px 0 0 var(--dark-color);
}

.feature-box .content {
    max-width: calc(100% - 70px);
    padding-left: 20px;
}

.feature-box h6 {
    font-size: 18px;
}

.feature-box p {
    margin: 0;
    color: var(--dark-color);
    font-size: 17px;
}

.feature-box .img {
    max-width: 100px;
    height: 100px;
    overflow: hidden;
    margin: 0;
    border: 2px solid var(--dark-color);
}

.langue {
    height: 110px;
    width: auto;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dots .owl-dot {
    display: inline-block;
    vertical-align: top;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid var(--dark-color);
    transition: ease all 0.55s;
    border-radius: 50%;
    margin: 0 4px;
}

.owl-dots .owl-dot.active {
    background: var(--dark-color);
}

/* --- Contact Infos --- */
#contact {
    padding-top: 60px;
    margin-bottom: 0px;
}

.contact-infos {
    margin: 0;
    margin-bottom: -10px;
    padding: 10px 0;
    list-style: none;
}

.contact-infos li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.contact-infos .icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-infos h5 {
    font-size: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-infos p {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.w-100 {
    margin-bottom: -150px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    padding: 1px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);

}

.footer .nav a {
    font-size: 25px;
    color: rgba(255, 255, 255, 0.75);
}

.footer .nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }

    .section-heading {
        padding-bottom: 40px;
    }

    .section-heading h3 {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    .home-section {
        padding-bottom: 70px;
    }

    .home-image img {
        height: 300px;
        width: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading h3 {
        font-size: 38px;
    }

    .feature-box {
        padding: 10px;
    }

    .feature-box h5 {
        font-size: 22px;
    }
}

/* LISTE CONTACT */
.contact-infos {
    list-style: none;
    padding: 0;
    margin-bottom: -80px;
    margin-left: -60px;
    margin-top: 30px;
}

.contact-infos li {
    display: flex;
    align-items: center;
    background: #1c140b;
    padding: 10px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(23, 25, 10, 0.854);
}

.contact-infos li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ICON STYLE */
.contact-infos .icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

/* GRADIENT BACKGROUNDS */
.contact-infos .bg-1 {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
}

.contact-infos .bg-2 {
    background: linear-gradient(45deg, #ff512f, #dd2476);
}

.contact-infos .bg-3 {
    background: linear-gradient(45deg, #0084ff, #00c6ff);
}

.contact-infos h5 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 16px;
}

.contact-infos a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-infos a:hover {
    color: #fff;
}

.contact-infos .bg-3+.ps-3 a {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 15px;
    border-radius: 25px;
    background: linear-gradient(45deg, #0084ff, #00c6ff);
    color: #fff !important;
    font-size: 14px;
}

.contact-infos .bg-3+.ps-3 a:hover {
    opacity: 0.85;
}

@media (max-width: 991px) {
    .contact-infos {
        margin-left: 0;
        margin-bottom: -40px;
        flex-direction: column;
        padding: 0 10px;
    }

    .contact-infos li {
        width: 100%;
        justify-content: flex-start;
        padding: 15px;
        border-radius: 10px;
    }

    .contact-infos .icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .contact-infos h5 {
        font-size: 14px;
    }

    .contact-infos p,
    .contact-infos a {
        font-size: 16px;
    }
}

/* Mobiles (max 767px) */
@media (max-width: 767px) {
    .contact-infos {
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 0;
        padding: 0 5px;
    }

    .contact-infos li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
    }

    .contact-infos .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-infos h5 {
        font-size: 13px;
    }

    .contact-infos p,
    .contact-infos a {
        font-size: 14px;
    }
}

.slider-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    margin-top: 0;
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

.facebook-btn {
    position: fixed;
    bottom: 95px;
    /* au-dessus du WhatsApp */
    right: 20px;
    background: #1877F2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    z-index: 999;
}

.facebook-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp-small {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 40px;
    transition: 0.3s ease;
}

.btn-whatsapp-small:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
}

.messenger-btn {
    position: fixed;
    bottom: 170px;
    right: 20px;
    background: #0084FF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    z-index: 999;
}

.messenger-btn:hover {
    transform: scale(1.1);
}

.instagram-btn {
    position: fixed;
    bottom: 245px;
    right: 20px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    z-index: 999;
}

.instagram-btn:hover {
    transform: scale(1.1);
}

.expert-section {
    padding: 100px 0;
    background: #f5f1ea;
}

.expert-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.expert-image {
    position: relative;
    flex: 1;
}

.main-img {
    width: 100%;
    border-radius: 20px;
}

.expert-photo {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.expert-content {
    flex: 1;
}

.expert-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #3d2b1f;
}

.expert-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.btn-expert {
    background: #8c6b4f;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-expert:hover {
    background: #6e523c;
}

.contact-form-modern h4 {
    margin-top: 0px;
    color: #ededed;
    font-weight: 600;
    text-align: center;
    font-family: "Jost", sans-serif;
    margin-bottom: 25px;
    line-height: 1.3;
}

.contact-form-modern input[type="text"],
.contact-form-modern input[type="email"],
.contact-form-modern textarea {
    width: 100%;
    padding-top: 0px;
    border: none;
    border-bottom: 2px solid #ededed;
    background-color: transparent;
    font-size: 1rem;
    color: #ededed;
    line-height: 40px;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    border-bottom-color: #271a0c;
    outline: none;
}

.contact-form-modern .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-modern .form-check-label {
    font-size: 0.9rem;
    color: #7a7065;
}


.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background-color: #1a1404;
    color: #fff;

    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modern i {
    margin-right: 8px;
}

.btn-modern:hover {
    background-color: #b88b60;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .contact-form-modern {
        padding: 25px 20px;
    }

    .contact-form-modern .row {
        flex-direction: column;
        gap: 15px;
    }
}

.imga {
    height: 600px;
    width: 100%;
    margin-left: -30px;
    border: 3px solid #ffffff;
    border-radius: 3%;

}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    /* Compense exactement la hauteur de la barre de navigation (logo 80px + bordures) */
}

body {
    overflow-x: hidden;
    width: 100%;
}


img {
    max-width: 100%;
    height: auto;
}

.object-fit-cover {
    object-fit: cover;
}

/* --- Property Cards --- */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.property-img-wrapper img {
    transition: transform 0.5s ease;
}

.property-card:hover .property-img-wrapper img {
    transform: scale(1.1);
}



.container {
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 767px) {

    .logo {
        height: 60px;
    }


    .slider-img {
        height: 400px;
    }

    .home-image img {
        height: 280px;
        width: 280px;
        margin: 0 auto;
        display: block;
    }


    .expert-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .expert-photo {
        width: 80px;
        height: 80px;
        right: 10px;
        bottom: -20px;
    }


    #marging,
    .image2,
    .imga,
    .contact-infos {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }


    .imga {
        height: auto;
        border-width: 3px;

    }



    .section-heading h3 {
        font-size: 28px !important;
        letter-spacing: 2px;
    }

    .expert-content h3 {
        font-size: 24px;
        text-align: center;
    }


    .whatsapp,
    .facebook-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        right: 15px;
    }

    .facebook-btn {
        bottom: 80px;
    }

    .whatsapp {
        bottom: 15px;
    }


    .contact-form-modern {
        padding: 15px;
    }

    .btn-modern {
        width: 100%;
    }
}

/*<script>
const input = document.querySelector("#phone");

window.intlTelInput(input, {

    initialCountry: "auto",

    geoIpLookup: function(callback) {
        fetch("https://ipapi.co/json")
        .then(res => res.json())
        .then(data => callback(data.country))
        .catch(() => callback("MA"));
    },

    utilsScript:
    "https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/js/utils.js"

});
</script>*/