/* Immo-Pro.tn : surcharges de design (chargé après style.css) */
:root {
    --ip-primary: #0f766e;
    --ip-primary-dark: #115e59;
    --ip-accent: #f59e0b;
    --ip-ink: #12302f;
    --ip-muted: #5b6b70;
    --ip-soft: #f1f7f6;
    --ip-line: #dbe8e6;
    --ip-radius: 16px;
}
body { background: #fff; color: var(--ip-muted); }
h1, h2, h3, h4, h5, h6 { color: var(--ip-ink); letter-spacing: -0.01em; }

/* Titres de section : sans soulignement ni capitales espacées */
.site-title { text-transform: none; font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.site-title-tagline {
    display: inline-block; letter-spacing: 1.5px; font-size: 13px; font-weight: 700;
    color: var(--ip-primary); background: #ccfbf1; padding: 5px 14px; border-radius: 999px;
}
.site-title-tagline::before { display: none; }
.site-heading p { color: var(--ip-muted); }

/* Boutons en pilule */
.theme-btn, .theme-border-btn { border-radius: 999px; font-weight: 700; }
.theme-btn { box-shadow: 0 8px 22px -6px rgba(15,118,110,.55); }
.theme-btn:hover { box-shadow: 0 10px 26px -6px rgba(15,118,110,.6); }
.theme-border-btn { border-width: 2px; }

/* Fonds alternés plus doux */
.product-area.bg, .bg { background: var(--ip-soft) !important; }

/* Cartes d'annonces */
.product-item {
    border-radius: var(--ip-radius); border: 1px solid var(--ip-line);
    box-shadow: 0 6px 20px -12px rgba(18,48,47,.25); overflow: hidden; background: #fff;
}
.product-item:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(18,48,47,.35); }
.product-img img { border-radius: 0; }
.product-title a, .product-content h4 a { color: var(--ip-ink); font-weight: 700; }
.product-price, .product-price span { color: var(--ip-primary); font-weight: 800; }

/* Zone de recherche */
.search-wrapper { border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(18,48,47,.45); border: 1px solid var(--ip-line); }
.search-keyword a { background: var(--ip-soft); color: var(--ip-primary-dark); border-radius: 999px; padding: 2px 12px; margin-left: 6px; font-weight: 600; }
.search-keyword a:hover { background: var(--ip-primary); color: #fff; }

/* Barre de filtres horizontale : grille 4 colonnes, tous les champs identiques */
.filter-bar {
    background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius);
    padding: 20px; box-shadow: 0 10px 28px -18px rgba(18,48,47,.35);
}
.filter-bar h5 { display: none; }
.filter-bar .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.filter-bar .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
.filter-bar .form-group { margin: 0; }
.filter-bar .form-control, .filter-bar .nice-select {
    width: 100%; height: 56px; line-height: 54px; border: 1px solid var(--ip-line); border-radius: 14px;
    padding-top: 0; padding-bottom: 0; background: #fff; float: none; display: block;
}
.filter-bar .form-control { padding-left: 46px; line-height: normal; }
.filter-bar .nice-select { padding-left: 46px; padding-right: 40px; }
.filter-bar .form-group-icon > i { top: 50%; transform: translateY(-50%); }
.filter-bar .sf-btn {
    width: 100%; height: 56px; border: 1px solid var(--ip-primary); border-radius: 14px; background: var(--ip-primary);
    color: #fff; font-weight: 700; font-size: 16px; transition: .2s; cursor: pointer;
}
.filter-bar .sf-btn:hover { background: var(--ip-primary-dark); border-color: var(--ip-primary-dark); }
.filter-bar .sf-btn span { margin-right: 6px; }
.filter-bar .sf-submit-end { grid-column: 4; }
@media (max-width: 991px) { .filter-bar .sf-submit-end { grid-column: auto; } }
@media (max-width: 991px) { .filter-bar .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .filter-bar .row { grid-template-columns: 1fr; } }
/* même bouton dans la barre latérale (fiche store) */
.product-sidebar .sf-btn { width: 100%; height: 50px; border-radius: 12px; border: 0; background: var(--ip-primary); color: #fff; font-weight: 700; }
.product-sidebar .sf-cell { margin-bottom: 12px; }

/* Bandeau publicitaire dans le fil d'annonces */
.ad-row {
    position: relative; margin: 6px 0 30px; padding: 22px 16px 14px; text-align: center;
    background: var(--ip-soft); border: 1px dashed #9fcac5; border-radius: var(--ip-radius);
}
.ad-row-label {
    position: absolute; top: -10px; left: 18px; background: var(--ip-accent); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    padding: 2px 10px; border-radius: 999px;
}
.ad-row img { max-height: 160px; width: auto; max-width: 100%; border-radius: 10px; object-fit: contain; }

/* Pages de villes */
.cities-area { background: #fff; padding-top: 90px; padding-bottom: 90px; }
.city-card {
    height: 100%; padding: 26px 22px; border-radius: var(--ip-radius); background: #fff;
    border: 1px solid var(--ip-line); border-top: 4px solid var(--ip-primary);
    box-shadow: 0 6px 20px -12px rgba(18,48,47,.25); transition: all .25s ease;
}
.city-card:hover { transform: translateY(-4px); border-top-color: var(--ip-accent); box-shadow: 0 18px 34px -16px rgba(18,48,47,.35); }
.city-card-name { font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.city-card-count { display: block; font-size: 14px; color: var(--ip-muted); margin-bottom: 16px; }
.city-card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.city-card-links a {
    font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
    background: var(--ip-soft); color: var(--ip-primary-dark);
}
.city-card-links a:hover { background: var(--ip-primary); color: #fff; }

/* Pied de page */
.footer-area { background: #0b2a29; }
.footer-widget-title { color: #fff; }
.footer-list a:hover, .footer-contact a:hover { color: var(--ip-accent); }
.copyright { background: #082120; }

/* Stores : filtres en pastilles */
.store-filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
.store-pill {
    padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
    background: var(--ip-soft); color: var(--ip-primary-dark); border: 1px solid transparent;
}
.store-pill i { margin-right: 6px; }
.store-pill:hover, .store-pill.active { background: var(--ip-primary); color: #fff; }
.store-item { border-radius: var(--ip-radius); border: 1px solid var(--ip-line); background: #fff; overflow: hidden; box-shadow: 0 6px 20px -12px rgba(18,48,47,.25); }
.store-item:hover { transform: translateY(-3px); border-color: var(--ip-primary); }

/* ===== Carte d'annonce Immo-Pro ===== */
.ip-card {
    position: relative; display: flex; flex-direction: column; height: 100%; margin-bottom: 24px;
    background: #fff; border: 1px solid var(--ip-line); border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 24px -16px rgba(18,48,47,.35); transition: transform .25s ease, box-shadow .25s ease;
}
.ip-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(18,48,47,.4); }
.ip-card.is-premium { border-color: var(--ip-accent); }
.ip-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cfe3e0; }
.ip-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ip-card:hover .ip-card-media img { transform: scale(1.06); }
.ip-chip {
    position: absolute; top: 12px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .3px;
    padding: 4px 12px; border-radius: 999px; color: #fff; background: var(--ip-primary);
}
.ip-chip-op { left: 12px; }
.ip-chip-op.is-loc { background: #2563eb; }
.ip-chip-op.is-promo { background: #7c3aed; }
.ip-chip-star { right: 12px; background: var(--ip-accent); }
.ip-card-price { color: var(--ip-primary); font-weight: 800; font-size: 22px; line-height: 1.1; margin-bottom: 6px;
    font-family: "Plus Jakarta Sans", sans-serif; }
.ip-card-price small { font-size: 13px; font-weight: 600; color: var(--ip-muted); }
.ip-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 18px 14px; }
.ip-card-cat { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ip-primary); }
.ip-card-title { font-size: 18px; font-weight: 800; margin: 4px 0 6px; line-height: 1.3; min-height: 2.6em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-card-title a { color: var(--ip-ink); display: inline; }
.ip-card-title a:hover { color: var(--ip-primary); }
.ip-card-loc { font-size: 14px; margin: 0 0 12px; color: var(--ip-muted); }
.ip-card-loc i { color: var(--ip-accent); margin-right: 4px; }
.ip-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.ip-card-specs li { background: var(--ip-soft); color: var(--ip-primary-dark); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; list-style: none; }
.ip-card-specs i { margin-right: 4px; }
.ip-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ip-line); }
.ip-card-owner { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ip-ink); min-width: 0; }
.ip-card-owner b { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--ip-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ip-card-go { font-size: 13px; font-weight: 800; color: var(--ip-primary); white-space: nowrap; }
.ip-card:hover .ip-card-go { color: var(--ip-accent); }

/* Logo */
.navbar .navbar-brand img { height: 46px; width: auto; max-width: none; }
.footer-logo img { height: 46px; width: auto; }
.auth-logo img, img[src*="img/logo/logo"] { max-width: 240px; height: auto; }
.navbar .navbar-brand img { max-width: none; }

/* En-tête : fond blanc => liens sombres (le modèle d'origine avait du texte blanc sur le slider) */
.header .main-navigation { background: #fff !important; box-shadow: 0 2px 14px -8px rgba(18,48,47,.35); position: relative; z-index: 1000; }
.navbar .custom-nav { border-bottom: 0; }
.navbar .nav-item .nav-link { color: var(--ip-ink) !important; font-weight: 600; }
.navbar .nav-item .nav-link:hover, .navbar .nav-item:hover > .nav-link { color: var(--ip-primary) !important; }
.header-account-link { color: var(--ip-ink) !important; font-weight: 600; }
.header-account-link:hover { color: var(--ip-primary) !important; }
.navbar-toggler-btn-icon i { color: var(--ip-primary) !important; }

/* Bandeau d'accueil par défaut (sans slider) */
.hero-default { background: linear-gradient(135deg, #0b524c 0%, #0f766e 55%, #14998d 100%); padding-top: 70px; padding-bottom: 130px; color: #fff; }
.hero-default-title { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.hero-default-title span { color: #fcd34d; }
.hero-default-sub { color: rgba(255,255,255,.9); font-size: 18px; margin-top: 12px; }
@media (max-width: 767px) { .hero-default-title { font-size: 28px; } .hero-default { padding-top: 40px; padding-bottom: 100px; } }
.header-account-link { white-space: nowrap; }
.navbar .navbar-brand { margin-right: 28px; }
.hero-default::before { display: none; }

/* Slider = espace publicitaire : aucune surcouche sombre sur les visuels */
.hero-single::before,.hero-slider .hero-single::before{display:none !important;background:none !important;}
.hero-slider .hero-single{background-color:transparent;}

/* ===== Relooking v10 : icônes, recherche, villes, stores, services ===== */
.title-ico {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: 10px;
    border-radius: 14px; background: linear-gradient(135deg, var(--ip-primary), #14998d); color: #fff;
    font-size: 21px; vertical-align: middle; box-shadow: 0 8px 18px -8px rgba(15,118,110,.7);
}
.site-title .title-ico { transform: translateY(-3px); }
.site-title-tagline i { margin-right: 6px; }
.search-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.search-head .title-ico { margin: 0; flex: 0 0 auto; }
.search-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.search-head p { margin: 0; font-size: 14px; color: var(--ip-muted); }
.search-form .form-group-icon > i { color: var(--ip-primary); }
.search-keyword i { color: var(--ip-accent); margin-right: 4px; }
.search-keyword a i { color: var(--ip-primary); margin-right: 3px; }
.search-keyword a:hover i { color: #fff; }

/* Cartes d'annonces : petites icônes dans les titres */
.ip-card-title a::before { content: "\f015"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; color: var(--ip-primary); margin-right: 7px; font-size: .85em; }
.ip-card-cat::before { content: "\f02b"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; color: var(--ip-accent); }
.ip-card-loc i, .ip-card-specs i { color: var(--ip-primary); }

/* Villes avec photo */
.city-card { padding: 0; overflow: hidden; border-top: 0; border-radius: var(--ip-radius); background: #fff; border: 1px solid var(--ip-line); }
.city-card-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ip-soft); }
.city-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.city-card:hover .city-card-photo img { transform: scale(1.06); }
.city-card-badge { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--ip-primary-dark); font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.city-card-body { padding: 14px 16px 16px; }
.city-card-name { font-size: 19px; }
.city-card-name i { color: var(--ip-accent); font-size: .8em; margin-right: 4px; }
.city-card-links a i { margin-right: 4px; }
@media (max-width: 575px) { .city-card-body { padding: 10px 12px 12px; } .city-card-name { font-size: 16px; } .city-card-links a { padding: 3px 9px; font-size: 12px; } }

/* En-tête de page (stores / services) */
.page-intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 20px 24px; border-radius: 20px; color: #fff;
    background: linear-gradient(120deg, #0b524c, var(--ip-primary) 60%, #14998d); box-shadow: 0 18px 36px -22px rgba(15,118,110,.8); }
.page-intro .title-ico { background: rgba(255,255,255,.18); box-shadow: none; width: 54px; height: 54px; font-size: 25px; margin: 0; }
.page-intro h1 { color: #fff; font-size: 26px; font-weight: 800; margin: 0; }
.page-intro p { margin: 2px 0 0; color: rgba(255,255,255,.88); font-size: 15px; }
.page-intro .page-intro-count { margin-left: auto; background: #fff; color: var(--ip-primary-dark); font-weight: 800; border-radius: 999px; padding: 6px 16px; font-size: 14px; }

/* Stores */
.store-item { display: block; text-align: center; margin-bottom: 24px; position: relative; }
.store-item .store-img { height: 74px; background: linear-gradient(120deg, #0f766e, #14998d); }
.store-item .store-img img { position: relative; top: 34px; width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; background: #fff; margin: 0 auto; display: block; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.store-item .store-content { padding: 46px 10px 14px; }
.store-item .store-content h6 { font-weight: 800; margin: 0 0 8px; color: var(--ip-ink); font-size: 15px; word-break: break-word; }
.store-visit { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ip-primary-dark); background: var(--ip-soft); border-radius: 999px; padding: 4px 12px; }
.store-visit i { margin-right: 4px; }
.store-item:hover .store-visit { background: var(--ip-primary); color: #fff; }

/* Services */
.svc-card { position: relative; background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); overflow: hidden; margin-bottom: 26px; box-shadow: 0 6px 20px -12px rgba(18,48,47,.25); transition: .25s; height: calc(100% - 26px); display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(18,48,47,.35); border-color: var(--ip-primary); }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ip-soft); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-chip { position: absolute; left: 12px; top: 12px; background: var(--ip-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.svc-chip i { margin-right: 5px; }
.svc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.svc-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.svc-title i { color: var(--ip-primary); margin-right: 7px; font-size: .85em; }
.svc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ip-muted); margin-bottom: 14px; }
.svc-meta i { color: var(--ip-accent); margin-right: 5px; }
.svc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--ip-line); font-size: 13px; }
.svc-foot .svc-go { color: var(--ip-primary); font-weight: 800; }
