/*
 * fixes.css — Corrections complètes pour parité Production / Dev local
 * Corrige : Bootstrap 5 compat, grille Smart City 4 colonnes,
 *           barre de recherche centrée, catégories complètes, bouton Où
 */

/* ============================================
   1. BOOTSTRAP 5 COMPAT — classe .hidden manquante
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   2. HEADER — masquer les inputs parasites
   ============================================ */
input.hidden_input,
input[type="text"].hidden_input {
    display: none !important;
}

/* ============================================
   3. HERO — calque identique à www.zelift.com
   Ne PAS passer header-centralizer en flex :
   ça clippe le bouton ville (onglet « Où » / ville).
   ============================================ */

#home_zelift .header-centralizer,
#home_zelift .content-centralized,
#home_zelift .hero-search,
#home_zelift .hero-search form {
    overflow: visible !important;
}

/* Barre : fond transparent, 60% centré — le thème recharge un fond blanc après coup */
#home_zelift .hero-search {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 60% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    height: auto !important;
    min-height: 78px !important;
    padding: 15px !important;
    position: relative !important;
    margin-top: 40px !important;
    margin-left: 0 !important;
}

@media (max-width: 1200px) {
    #home_zelift .hero-search { width: 80% !important; }
}
@media (max-width: 991px) {
    #home_zelift .hero-search { width: 90% !important; }
}

/* Formulaire en table comme le thème prod (Bootstrap 5 casse display:table) */
#home_zelift .hero-search form {
    position: relative !important;
    display: table !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#home_zelift .hero-search form fieldset {
    position: relative !important;
    display: table-cell !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Barre blanche : pilule, ancre la loupe à cheval sur le bord gauche */
#home_zelift #open_moteur {
    position: relative !important;
    width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: 57px !important;
    overflow: visible !important;
    background: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

/* Ancienne loupe du thème (typingEffect) + halo blanc derrière le cercle violet */
#home_zelift .typingEffect,
#home_zelift .typingEffect:before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Cercle violet à cheval : dépasse à gauche et un peu en haut/bas */
#home_zelift .hero-search-icon.searchIcon {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-46%, -50%) !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #652e71 !important;
    border-radius: 50% !important;
    color: #fff !important;
    z-index: 8 !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

#home_zelift .hero-search-icon.searchIcon:before,
#home_zelift .hero-search-icon.searchIcon:after {
    content: none !important;
    display: none !important;
}

#home_zelift .hero-search-icon.searchIcon .hero-search-loupe {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    color: #fff !important;
}

#home_zelift #text_typing {
    position: absolute !important;
    left: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    z-index: 4 !important;
}

@media (max-width: 767px) {
    #home_zelift #open_moteur {
        height: 47px !important;
    }
    #home_zelift .hero-search-icon.searchIcon {
        width: 56px !important;
        height: 56px !important;
    }
    #home_zelift .hero-search-icon.searchIcon .hero-search-loupe {
        width: 22px !important;
        height: 22px !important;
    }
    #home_zelift #text_typing {
        left: 36px !important;
    }
}

/* Onglet ville : collé en haut à droite de la barre, comme la prod */
#home_zelift .search-cities-toggle {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    margin-top: -42px !important;
    right: 30px !important;
    width: auto !important;
    height: 42px !important;
    padding: 0 25px !important;
    background: #652e71 !important;
    color: #fff !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
    z-index: 20 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

#home_zelift .search-cities-toggle:hover {
    margin-top: -57px !important;
    height: 57px !important;
}

#home_zelift .search-cities-toggle:before {
    content: "" !important;
}

#home_zelift #chosen_city_name {
    color: #fff !important;
    font-size: 19px !important;
    float: left !important;
    margin-top: 6px !important;
}

#home_zelift .icon_marker {
    color: #fff !important;
    font-size: 19px !important;
    float: left !important;
    margin-top: 8px !important;
    margin-right: -7px !important;
    margin-left: 6px !important;
}


/* ============================================
   4. CATÉGORIES — centrées, afficher toutes les 16
   ============================================ */
#home_zelift .search-categories {
    width: 80% !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    padding: 15px !important;
    margin-top: 85px !important;
    overflow: visible !important;
    font-size: 0 !important;
    max-height: none !important;
    color: #fff !important;
    z-index: 4 !important;
}

#home_zelift .search-categories .categories {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 8px 15px !important;
    overflow: visible !important;
}

#home_zelift .search-categories .categories a {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    font-size: 11px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 70px !important;
}

/* ============================================
   5. SMART CITY — grille 4 colonnes avec images
   ============================================ */
.front-categories .cat-itens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.front-categories .cat-item {
    width: 23% !important;
    min-width: 200px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    float: none !important;
    display: inline-block;
}

.front-categories .cat-item .cat-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.front-categories .cat-item .cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 2;
}

.front-categories .cat-item .cat-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    z-index: 3;
    text-align: center;
    width: 90%;
}

.front-categories .cat-text .cat-pole {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

#vue_choose_city .city-pole,
.city-pole {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #9b6aad;
}

#vue_choose_city .city-pole-megapole,
.city-pole-megapole {
    color: #c9a227;
}

#vue_choose_city .city-pole-metropole,
.city-pole-metropole {
    color: #8e4aa3;
}

.front-categories .cat-item a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.front-categories .cat-item .cat-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: #fff;
    font-size: 14px;
    z-index: 3;
    background: rgba(101, 46, 113, 0.7);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-categories .cat-item .cat-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    color: #fff;
}

/* Smart City titre */
.title-smart-city {
    text-align: center;
    padding: 40px 0 20px;
}

.title-smart-city h2 {
    color: #652e71;
    font-size: 32px;
}

/* ============================================
   6. BULLES (Urbain, Dynamique, Premium, Innovant)
   ============================================ */
.row.listing.bulles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
}

.row.listing.bulles .bulle {
    flex: 0 0 25%;
    max-width: 25%;
}

/* ============================================
   7. SELLZONE PILLS — masquer l'overflow dans le header
   ============================================ */
.open-cities-list .search-categories {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.open-cities-list .search-categories.shown {
    max-height: 500px;
}

/* ============================================
   8. RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .front-categories .cat-item {
        width: 45% !important;
    }
    
    .row.listing.bulles .bulle {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .content-centralized {
        width: 90%;
    }
}

/* Menu Professionnels — espaces et typo comme www.zelift.com */
header .dropdown-menu,
header .dropdown-menu-mobile {
    font-family: "Roboto", sans-serif !important;
    font-size: 15px !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    min-width: 220px;
}
header .dropdown-menu > li > a,
header .dropdown-menu-mobile > li > a {
    display: block !important;
    padding: 8px 20px !important;
    color: #404040 !important;
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
header .dropdown-menu > li > a:hover,
header .dropdown-menu > li > a:focus,
header .dropdown-menu-mobile > li > a:hover,
header .dropdown-menu-mobile > li > a:focus {
    color: #652e71 !important;
    background: #f5f5f5 !important;
}

/* Popup connexion / inscription — parité www.zelift.com */
.login-popup,
.login-popup .panel-form,
.login-popup .panel-login,
.login-popup .panel-heading,
.login-popup .panel-body,
.login-popup .card-header,
.login-popup .card-body,
.login-popup span,
.login-popup p,
.login-popup a,
.login-popup label,
.login-popup input,
.login-popup .form-control,
.login-popup .form-control::placeholder {
    word-spacing: normal !important;
    letter-spacing: normal !important;
}
.login-popup,
.login-popup #message_login_pro,
.login-popup #message_inscrire_societe,
.login-popup #message_login_pro span,
.login-popup #message_inscrire_societe span,
.login-popup .login-forgot-password,
.login-popup .form-control,
.login-popup .form-control::placeholder {
    font-family: Arial, Helvetica, sans-serif !important;
}
.login-popup.container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}
.login-popup .toMargin0 {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 12vh !important;
    margin-top: 0 !important;
    height: auto !important;
}
.login-popup .panel-form.panel-login {
    width: 500px !important;
    max-width: 92vw !important;
    margin: 0 auto !important;
    top: 0 !important;
    float: none !important;
    left: auto !important;
}
.login-popup .col-xs-6,
.login-popup .col-link-login,
.login-popup .col-link-register {
    width: 50% !important;
    float: left !important;
    padding: 0 !important;
}
.login-popup .panel-heading a,
.login-popup .card-header a {
    white-space: nowrap !important;
}
.login-popup .login-social-hidden,
.login-popup .btn-facebook,
.login-popup .btn-google {
    display: none !important;
}
.login-popup .panel-form > .card-header,
.login-popup .panel-form > .panel-heading {
    color: rgb(101, 46, 113);
    background-color: #fff;
    border-color: #fff;
    text-align: center;
}
.login-popup .panel-form > .card-header a,
.login-popup .panel-form > .panel-heading a {
    font-family: "Capriola", sans-serif;
    text-decoration: none;
    color: #aaa;
    font-size: 15px;
    display: inline-block;
    height: 50px;
    line-height: 50px;
}
.login-popup .panel-form > .card-header a.active,
.login-popup .panel-form > .panel-heading a.active {
    color: rgb(101, 46, 113);
    font-size: 18px;
}
.login-popup #fos_user_registration_form::after {
    content: "";
    display: table;
    clear: both;
}
.login-popup #btn_register {
    background-color: rgb(101, 46, 113);
    color: #fff;
    text-transform: uppercase;
    border-color: rgb(101, 46, 113);
    padding: 14px 20px;
    width: auto;
    margin: 10px auto 0;
    display: inline-block;
}

@media (max-width: 576px) {
    .front-categories .cat-item {
        width: 100% !important;
    }
    
    .row.listing.bulles .bulle {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .search-categories .categories {
        gap: 5px 10px;
    }
}

/* Page Mes informations — espaces, onglets, formulaire */
.header_compte .pg-title,
.header_compte .pg-subtitle,
.header_compte .breadcrumbs,
.content_compte,
.content_compte *,
.tabs nav a,
.tabs nav a span,
.profile-form-wrap h3 {
    word-spacing: normal !important;
    letter-spacing: normal !important;
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
}
.header_compte .pg-title {
    font-size: 42px !important;
    font-weight: 700;
}
.header_compte .pg-subtitle {
    font-size: 20px !important;
}
.tabs {
    position: relative;
}
.tabs nav ul {
    display: inline-flex !important;
    float: none !important;
}
.tabs nav ul li {
    float: none !important;
    display: inline-block !important;
}
.tabs .logout.btn-empty,
a.logout.btn-empty {
    position: absolute;
    right: 0;
    top: 8px;
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    padding: 6px 18px;
    border: 1px solid #652e71;
    color: #652e71;
    background: #fff;
    text-transform: none;
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
}
.profile-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.profile-form-wrap .form-control,
#tabs input.form-control,
#tabs select.form-control {
    width: 100%;
    height: 43px;
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
}
.profile-form-wrap .register_btn,
.profile-form-wrap .change_password_btn,
#mdp_modify {
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
    word-spacing: normal !important;
}
#mdp_modify {
    display: inline-block;
    margin: 20px auto 0;
    padding: 8px 22px;
    border: 1px solid #652e71;
    color: #652e71;
    cursor: pointer;
}

.autocomplete-suggestions .autocomplete-suggestion a.firstApproximativeResult:before {
    content: "Pourraient aussi exister" !important;
}

/* Firefox : le :before + title selectpicker se superposent (tracking doublé). */
#help_zone .nothing-selected:before,
#contentChallenge #help_zone .nothing-selected:before {
    content: none !important;
}
#help_zone .bootstrap-select .dropdown-toggle,
#help_zone .bootstrap-select .dropdown-toggle span,
#help_zone .bootstrap-select .filter-option,
#help_zone .bootstrap-select .filter-option-inner,
#help_zone .bootstrap-select .filter-option-inner-inner,
#help_zone .bootstrap-select .nothing-selected {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-size: 14px !important;
}

/* Badge & Filigrane Demo Pro */
.demo_pro_badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(101, 46, 113, 0.92) 0%, rgba(142, 68, 173, 0.88) 100%) !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 12 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(2px) !important;
    pointer-events: none !important;
    display: block !important;
}
.demo_pro_badge i {
    margin-right: 3px !important;
    color: #ffd700 !important;
}

.demo_pro_watermark {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(-25deg) !important;
    color: rgba(255, 255, 255, 0.42) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.3) !important;
    border: 2px dashed rgba(255, 255, 255, 0.42) !important;
    padding: 3px 16px !important;
    border-radius: 6px !important;
    pointer-events: none !important;
    z-index: 11 !important;
    white-space: nowrap !important;
    user-select: none !important;
    display: block !important;
}

.badge-demo-pro {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #652e71 !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

/* Bouton Cookies : pastille ronde et discrète/transparente */
#zl-cmp-reopen {
    position: fixed !important;
    left: 14px !important;
    bottom: 14px !important;
    z-index: 2147483645 !important;
    background: rgba(80, 30, 90, 0.45) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
    padding: 5px 13px !important;
    font-size: 11px !important;
    font-family: 'Capriola', sans-serif !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    opacity: 0.55 !important;
    transition: all 0.25s ease !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

#zl-cmp-reopen:hover {
    background: rgba(101, 46, 113, 0.85) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(101, 46, 113, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Fix Bootstrap 5: tab-pane, fade, and listing-item-solution-detail */
.listing-item-solution-detail.show,
.CC19 .listing-item-solution-detail.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tab-pane.fade.in,
.tab-pane.fade.active,
.tab-pane.active {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.tab-pane.fade:not(.active):not(.show) {
    display: none !important;
}



