.pac-container:after{
    content:none !important;
}

/* Trophy brand color */
.fa.fa-trophy {
    color: #F97D04ff !important;
}

/* Articles UI polish */
.article-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border-radius: .5rem;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.12) !important;
}
.article-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Provider photo on prestataire page: force square */
.provider-photo-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

.testimonial-reel img.img-fluid.rounded-circle {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.chat-widget-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 44px;
    border-radius: 9999px;
}

.chat-widget-panel {
    position: fixed;
    right: 20px;
    bottom: 76px;
    width: 360px;
    max-width: calc(100% - 40px);
    height: 520px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    z-index: 1085;
    transform: translateY(120%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-widget-panel.open { transform: translateY(0); }

.chat-header { padding: .5rem .75rem; border-bottom: 1px solid #e9ecef; }
.chat-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#chat-conversations { min-height: 0; }
#chat-messages { min-height: 0; }

.chat-message { display: flex; margin: .25rem 0; }
.chat-message.sent { justify-content: flex-end; }
.chat-message .bubble { max-width: 75%; padding: .375rem .625rem; border-radius: 1rem; }
.bubble-sent { background: #0d6efd; color: #fff; }
.bubble-recv { background: #f1f3f5; color: #212529; }

/* Mega Menu Styles */
.mega-menu {
    min-width: 800px;
    max-width: 1000px;
    left: 50% !important;
    transform: translateX(-50%);
}

@media (max-width: 991px) {
    .mega-menu {
        min-width: auto;
        max-width: 100%;
        position: static !important;
        transform: none;
        border: none;
        box-shadow: none;
    }
}

.mega-menu .dropdown-header {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid;
}

.mega-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 0.25rem 1rem;
    white-space: normal;
}

.mega-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Logo max width */
.logo-max-125 {
    max-width: 125px;
    height: auto;
    padding: 15px 0;
}

/* Header search field - larger on desktop */
.navbar .form-inline .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
}
.navbar .form-inline .form-control {
    min-width: 400px !important;
    flex: 1 1 auto !important;
}
.navbar .form-inline .input-group-append {
    display: flex !important;
}

/* Header user avatar - remove border */
.navbar .user-info .user-avatar img,
.navbar .user-avatar img.rounded-circle {
    border: none !important;
    box-shadow: none !important;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999998;
    display: none;
    cursor: pointer;
}

/* Mobile Menu Sidebar */
#offcanvas_menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    z-index: 9999999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--theme-color, #F97D04);
    color: white;
}

.mobile-menu-logo {
    max-width: 125px;
    height: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

/* Mobile Menu Search */
.mobile-menu-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu-search .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
}

.mobile-menu-search .btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav ul li {
    position: relative;
}

.mobile-menu-nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-nav ul li a:hover {
    background: #f8f9fa;
    color: var(--theme-color, #F97D04);
}

.mobile-menu-nav ul li a .lnr {
    font-size: 1.1rem;
}

/* Submenu Styles */
.mobile-menu-nav .has-submenu > a {
    justify-content: space-between;
}

.mobile-menu-nav .has-submenu .arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-nav .has-submenu.open .arrow {
    transform: rotate(180deg);
}

.mobile-menu-nav .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-menu-nav .has-submenu.open .submenu {
    max-height: 500px;
}

.mobile-menu-nav .submenu li a {
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    font-size: 0.9rem;
}

.mobile-menu-nav .submenu-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0.5rem 1.25rem;
}

/* Mobile Menu User Section */
.mobile-menu-user {
    padding: 1rem 0;
}

.user-profile {
    padding: 0 1.25rem 1rem;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    flex: 1;
}

.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-menu li a:hover {
    background: #f8f9fa;
    color: var(--theme-color, #F97D04);
}

.user-menu li a .lnr {
    font-size: 1.1rem;
}

.badge-theme {
    background: var(--theme-color, #F97D04);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Scrollbar Styling for Mobile Menu */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* 4K UHD - 3840 x 2160 */
@media (min-width: 2560px) {
    .logo-max-125 {
        max-width: 150px;
    }
    .navbar .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
    .navbar .form-control {
        min-width: 450px !important;
    }
}

/* QHD - 2560 x 1440 */
@media (min-width: 1920px) and (max-width: 2559px) {
    .logo-max-125 {
        max-width: 140px;
    }
    .navbar .form-control {
        min-width: 400px !important;
    }
}

/* Full HD - 1920 x 1080 */
@media (min-width: 1536px) and (max-width: 1919px) {
    .logo-max-125 {
        max-width: 125px;
    }
    .navbar .form-control {
        min-width: 350px !important;
    }
}

/* Laptops milieu de gamme - 1536 x 864 */
@media (min-width: 1440px) and (max-width: 1535px) {
    .logo-max-125 {
        max-width: 120px;
    }
    .navbar .form-control {
        min-width: 320px !important;
    }
}

/* MacBook - 1440 x 900 */
@media (min-width: 1366px) and (max-width: 1439px) {
    .logo-max-125 {
        max-width: 115px;
    }
    .navbar .form-control {
        min-width: 280px !important;
    }
}

/* Laptops entrée de gamme - 1366 x 768 */
@media (min-width: 1280px) and (max-width: 1365px) {
    .logo-max-125 {
        max-width: 110px;
    }
    .navbar .form-control {
        min-width: 250px !important;
    }
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* HD - 1280 x 720 */
@media (min-width: 1024px) and (max-width: 1279px) {
    .logo-max-125 {
        max-width: 100px;
        padding: 10px 0;
    }
    .navbar .form-control {
        min-width: 200px !important;
    }
    .navbar .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Tablettes paysage - 1024 x 768 */
@media (min-width: 992px) and (max-width: 1023px) {
    .logo-max-125 {
        max-width: 95px;
        padding: 10px 0;
    }
    .navbar .form-control {
        min-width: 180px !important;
    }
    .navbar .nav-link {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Tablettes portrait et petits écrans - 768px à 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .logo-max-125 {
        max-width: 100px;
        padding: 10px 0;
    }
    /* FORCER le masquage COMPLET du menu desktop */
    .navbar-collapse,
    .navbar-collapse.collapse,
    .navbar-collapse.show,
    #navbarSupportedContent,
    .navbar .navbar-nav,
    .navbar .nav-item,
    .navbar .nav-link,
    .navbar .form-inline,
    .navbar .user-info {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    /* Header adjustments */
    .navbar {
        padding: 0.5rem 0;
        flex-wrap: nowrap;
    }
    .navbar-brand {
        margin-right: auto;
    }
    /* Forcer l'affichage du bouton hamburger avec TOUTES les 3 barres */
    .navbar-toggler {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        padding: 10px !important;
        width: auto !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    .navbar-toggler .icon-bar {
        display: block !important;
        visibility: visible !important;
        width: 22px !important;
        height: 2px !important;
        opacity: 1 !important;
        transform: rotate(0deg) !important;
        margin: 4px 0 !important;
        background-color: #F97D04 !important;
    }
    .navbar-toggler .top-bar,
    .navbar-toggler .middle-bar,
    .navbar-toggler .bottom-bar,
    .navbar-toggler.collapsed .top-bar,
    .navbar-toggler.collapsed .middle-bar,
    .navbar-toggler.collapsed .bottom-bar {
        transform: rotate(0deg) !important;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
    }
    /* Content sections */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Article cards */
    .article-card .card-img-top {
        height: 200px;
    }
    /* Search results filters */
    .form-row .col-md-3,
    .form-row .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.5rem;
    }

    /* ===== PAGES UTILISATEUR - TABLETTE PORTRAIT ===== */

    /* Forcer layout côte à côte */
    .checkout .row,
    .user-profile-wrapper .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .checkout .col-lg-4,
    .checkout .row > .col-lg-4,
    .user-profile-wrapper .col-lg-4,
    .user-profile-wrapper .row > .col-lg-4 {
        flex: 0 0 35% !important;
        max-width: 35% !important;
    }
    .checkout .col-lg-8,
    .checkout .row > .col-lg-8,
    .user-profile-wrapper .col-lg-8,
    .user-profile-wrapper .row > .col-lg-8 {
        flex: 0 0 65% !important;
        max-width: 65% !important;
        margin-top: 0 !important;
    }

    /* Notifications */
    .msg-sec .media {
        flex-direction: column;
        text-align: center;
    }
    .msg-sec .media img {
        margin: 0 auto 0.75rem !important;
        width: 50px;
        height: 50px;
    }
    .msg-sec .media-body h5 {
        font-size: 0.9rem;
    }
    .msg-sec .media-body p {
        font-size: 0.8rem;
    }

    /* Sidebar utilisateur */
    .sidebar-user .user-card {
        padding: 1rem !important;
    }
    .sidebar-user .user-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .sidebar-user .user-avatar img {
        height: 70px !important;
        width: 70px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .sidebar-user .user-details h4 {
        font-size: 0.95rem;
    }
    .sidebar-user .rating-blk i {
        font-size: 0.8rem;
    }

    /* Titre des sections avec bouton */
    .stg-title {
        padding: 0.75rem 1rem !important;
    }
    .stg-title h3 {
        font-size: 0.95rem;
        margin-right: 0.5rem;
    }
    .stg-title .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        white-space: nowrap;
    }

    /* Liste des demandes */
    .list-group-item {
        padding: 0.75rem !important;
    }
    .list-group-item .font-weight-bold {
        font-size: 0.9rem;
    }
    .list-group-item .small {
        font-size: 0.75rem;
    }
    .list-group-item .btn-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Banner intérieur */
    .slider-wrapper {
        padding: 1rem 0 !important;
    }
    .inner-banner-heading h1 {
        font-size: 1.25rem;
    }
}

/* Smartphones grands écrans - 414 x 896 (iPhone XR/11) */
@media (max-width: 767px) {
    .logo-max-125 {
        max-width: 90px;
        padding: 8px 0;
    }

    /* Prestataires - 2 par ligne */
    .pdt-filter-wrapper .col-xl-4.col-md-6.pdt {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px;
        padding-right: 5px;
    }
    .pdt-filter-wrapper .card {
        margin-bottom: 10px;
    }
    .pdt-filter-wrapper .card-img-top {
        height: 120px;
        object-fit: cover;
    }
    .pdt-filter-wrapper .card-body {
        padding: 0.5rem !important;
    }
    .pdt-filter-wrapper .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem !important;
    }
    .pdt-filter-wrapper .card-section-1 {
        padding: 0.25rem 0 !important;
    }
    .pdt-filter-wrapper .card-section-1 p {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    .pdt-filter-wrapper .card-section-2 .rating-blk i {
        font-size: 0.6rem !important;
    }
    .pdt-filter-wrapper .card-section-2 .pdt-rating-btn span {
        font-size: 0.65rem;
    }
    .pdt-filter-wrapper .card-section-2 .pdt-contact-btn .display-5 {
        font-size: 0.9rem !important;
        padding: 0.25rem !important;
    }
    .pdt-filter-wrapper .card-section-4 .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    .pdt-filter-wrapper .wishlist-blk {
        top: 5px;
        right: 5px;
    }
    .pdt-filter-wrapper .image-overlay .btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    /* Articles/Blog - 2 par ligne */
    .insights-wrapper .col-xl-4.col-lg-4.col-md-6.insights {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px !important;
    }
    .insights-wrapper .card-img-top {
        height: 100px;
        object-fit: cover;
    }
    .insights-wrapper .card-body {
        padding: 0.5rem !important;
    }
    .insights-wrapper .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .insights-wrapper .card-section-1 {
        padding: 0.25rem 0 !important;
    }
    .insights-wrapper .card-section-1 p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .insights-wrapper .card-section-2 {
        font-size: 0.65rem;
    }
    .insights-wrapper .card-section-2 .lnr {
        font-size: 0.7rem;
    }
    .insights-wrapper .mb-6 h2 {
        font-size: 1.25rem;
    }
    .insights-wrapper .mb-6 h5 {
        font-size: 0.8rem;
    }

    /* Dashboard - cartes stats 2 par ligne */
    .user-dashboard .pdt-cat-grid .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px;
        padding-right: 5px;
    }
    .user-dashboard .pdt-cat-grid .bg-theme,
    .user-dashboard .pdt-cat-grid .bg-theme-secondary {
        padding: 1rem !important;
        margin-bottom: 10px !important;
    }
    .user-dashboard .pdt-cat-grid .icon-blk {
        padding: 0.5rem !important;
    }
    .user-dashboard .pdt-cat-grid .icon-blk span {
        font-size: 1.5rem !important;
        padding: 0.75rem !important;
    }
    .user-dashboard .pdt-cat-grid .content-blk h4 {
        font-size: 0.75rem;
        padding-top: 0.5rem !important;
        padding-bottom: 0.25rem !important;
    }
    .user-dashboard .pdt-cat-grid .content-blk h3 {
        font-size: 1.25rem;
    }
    .user-dashboard .stg-title {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .user-dashboard .stg-title h3 {
        font-size: 1rem;
    }
    /* Boutons actions */
    .user-dashboard .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    /* Chart section */
    .user-dashboard .card-chart .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .user-dashboard .card-chart .card-header h4 {
        font-size: 0.9rem;
    }
    .user-dashboard .card-chart .card-header .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        min-width: 60px !important;
    }
    .user-dashboard .card-chart .card-body {
        height: 250px !important;
    }

    /* Mobile menu width */
    #offcanvas_menu {
        max-width: 85vw;
    }
    .mobile-menu-header {
        padding: 0.75rem 1rem;
    }
    .mobile-menu-logo {
        max-width: 100px;
    }
    .mobile-menu-search {
        padding: 0.75rem 1rem;
    }
    .mobile-menu-nav ul li a {
        padding: 0.75rem 1rem;
    }
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    /* Chat widget */
    .chat-widget-panel {
        width: 100%;
        max-width: calc(100% - 20px);
        right: 10px;
        height: 450px;
    }
    .chat-widget-toggle {
        right: 15px;
        bottom: 15px;
    }
    /* Articles */
    .article-card .card-img-top {
        height: 180px;
    }
}

/* Smartphones standard - 375 x 667 (iPhone 6/7/8) */
@media (max-width: 414px) {
    .logo-max-125 {
        max-width: 80px;
        padding: 6px 0;
    }
    .mobile-menu-logo {
        max-width: 90px;
    }
    .mobile-menu-header {
        padding: 0.5rem 0.75rem;
    }
    .mobile-menu-close {
        font-size: 1.25rem;
    }
    .mobile-menu-nav ul li a {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    .mobile-menu-nav .submenu li a {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
        font-size: 0.85rem;
    }
    .user-menu li a {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    .user-avatar {
        width: 45px;
        height: 45px;
    }
    .chat-widget-panel {
        height: 400px;
    }
    .article-card .card-img-top {
        height: 160px;
    }
}

/* Image Overlay pour les cartes de prestataires */
.card-image {
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.card-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay .btn {
    background: #F97D04;
    border: 2px solid #F97D04;
    color: white;
    transition: all 0.2s ease;
}

.image-overlay .btn:hover {
    transform: scale(1.1);
    background: white;
    border-color: white;
    color: #F97D04;
}

.image-overlay .btn i {
    color: inherit;
}

/* Smartphones Android - 360 x 640 */
@media (max-width: 374px) {
    .logo-max-125 {
        max-width: 70px;
        padding: 5px 0;
    }
    .mobile-menu-logo {
        max-width: 80px;
    }
    .mobile-menu-nav ul li a {
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
    }
    .mobile-menu-nav .submenu li a {
        padding: 0.5rem 0.625rem 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    .user-menu li a {
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
    }
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    .chat-widget-panel {
        height: 350px;
        bottom: 60px;
    }
    .article-card .card-img-top {
        height: 140px;
    }
}
