/* ==========================
   RESET & BOX-SIZING
========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Fix Chrome/Edge/Firefox overlay */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ==========================
   GLOBAL
========================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eaf4ff;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================
   LOGO
========================== */
.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    color: #222;
}

.logo-title span {
    color: #ffcc00;
}

.baseline {
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    color: #000;
}

/* ==========================
   HEADER
========================== */
header {
    background: #eaf4ff;
    padding: 10px 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

header .stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
}

header .stat {
    font-weight: bold;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 14px;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    color: #000;
}

/* ==========================
   BANNIERE RESPONSIVE PRO
========================== */
.banner {
    width: 100%;
    height: 35vw;
    min-height: 360px;
    max-height: 520px;
    background-image: url('../banniere.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #1f2f3f;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ==========================
   FORMULAIRE PREMIUM
========================== */
.search-box {
    background: rgba(255, 255, 255, 0.93);
    border: 2px solid #ffd100;
    border-radius: 15px;
    padding: 35px;
    max-width: 1300px;
    width: 95%;
    margin: -70px auto 60px auto;
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 100;
}

.search-box h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #d62828;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.search-box label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.search-box .form-control,
.search-box .form-select {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-box .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* ==========================
   BOUTON RECHERCHE
========================== */
.btn-search {
    background: #d62828;
    color: #fff;
    padding: 12px 40px;
    border-radius: 10px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-search:hover {
    background: #b71c1c;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.btn-search:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* ==========================
   AUTOCOMPLÉTION
========================== */
.ac-wrapper {
    position: relative;
    overflow: visible;
}

#ac-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: none;
}

#ac-list .ac-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    -webkit-transition: background 0.2s;
    -o-transition: background 0.2s;
    transition: background 0.2s;
}

#ac-list .ac-item:hover,
#ac-list .ac-item.active {
    background: #eaf4ff;
}

/* ==========================
   TABLES DES ANNONCES
========================== */
.card {
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.card-header {
    font-size: 18px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 10;
}

table td,
table th {
    padding: 10px;
    font-size: 14px;
    text-align: left;
}

/* Liens dans les cellules de tableau */
table tbody td a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
}

table tbody td a:hover {
    color: #0066cc;
}

/* Hover sur les lignes */
.table-hover tbody tr {
    -webkit-transition: background 0.2s;
    -o-transition: background 0.2s;
    transition: background 0.2s;
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background: #eaf4ff !important;
}

/* Les boutons dans les tableaux */
table .btn {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* Container principal avec z-index */
.main-content-fix,
main.container {
    position: relative;
    z-index: 10;
}

/* ==========================
   FOOTER
========================== */
.footer {
    background: #3b4d63;
    color: #fff;
    border-top: 3px solid #dc3545;
}

.footer a {
    color: #fff;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffd100;
}

.footer .row {
    text-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.footer .col-md-4 {
    margin-bottom: 20px;
}

/* ==========================
   BLOCS ANNONCES
========================== */
.row.g-12 {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.col-md-12 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.col-md-12 .card {
    width: 100%;
    max-width: 600px;
}

/* ==========================
   RESPONSIVE TABLETTE
========================== */
@media (max-width: 992px) {
    .banner {
        height: 300px;
        min-height: 300px;
    }

    .search-box {
        padding: 25px;
        margin-top: -40px;
    }

    header {
        padding: 10px 20px;
    }
}

/* ==========================
   RESPONSIVE MOBILE
========================== */
@media (max-width: 768px) {
    /* Masquer la bannière sur mobile */
    .banner {
        display: none;
    }

    /* Header mobile */
    header {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        text-align: center;
        gap: 12px;
        padding: 15px 10px;
    }

    header .logo-block {
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin-bottom: 5px;
    }

    header .stats {
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    header .stat {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        text-align: center;
        font-size: 13px;
        padding: 5px 10px;
    }

    header .btn-danger {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin-top: 5px;
    }

    /* Formulaire de recherche mobile */
    .search-box {
        margin-top: 20px;
        border-radius: 12px;
        width: 95%;
        padding: 18px;
    }

    .search-box h4 {
        text-align: center;
        font-size: 18px;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .search-box .row > div {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Bouton pleine largeur */
    .btn-search {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }

    /* Autocomplétion mobile */
    .ac-wrapper {
        position: relative;
    }

    /* Blocs annonces mobile */
    .col-md-6 {
        width: 100%;
        -webkit-box-flex: 0;
        -ms-flex: none;
        flex: none;
        max-width: 100%;
    }

    .col-md-6 .card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .card {
        max-width: 100%;
        margin: 10px 0;
    }

    /* Tables mobile */
    table td,
    table th {
        font-size: 13px;
        padding: 6px;
    }

    /* Footer mobile */
    .footer .row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .footer .col-md-4 {
        width: 100%;
    }
}

/* ==========================
   RESPONSIVE PETIT MOBILE
========================== */
@media (max-width: 576px) {
    .logo-title {
        font-size: 20px;
    }

    .baseline {
        font-size: 12px;
    }

    .search-box {
        padding: 15px;
    }

    .search-box h4 {
        font-size: 16px;
    }

    header .stat {
        font-size: 12px;
        padding: 4px 8px;
    }

    table td,
    table th {
        font-size: 12px;
        padding: 4px;
    }
}

/* ==========================
   FIX SAFARI iOS
========================== */
@supports (-webkit-touch-callout: none) {
    .search-box {
        -webkit-backdrop-filter: blur(5px);
    }
}

/* ==========================
   FIX INTERNET EXPLORER 11
========================== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .search-box {
        background: #ffffffee;
    }
    
    .logo {
        width: auto;
    }
}

/* ==========================
   PRINT STYLES
========================== */
@media print {
    .banner,
    .search-box,
    header .btn-danger {
        display: none;
    }
}

/* Styles DPE (Inchangés) */
        .badge-dpe { font-weight: bold; color: #000; padding: 4px 8px; border-radius: 4px; min-width: 30px; display: inline-block; text-align: center; }
        .dpe-A { background-color: #008000; color: white !important; }
        .dpe-B { background-color: #3cb371; }
        .dpe-C { background-color: #9acd32; }
        .dpe-D { background-color: #ffd700; }
        .dpe-E { background-color: #ffa500; }
        .dpe-F { background-color: #ff4500; }
        .dpe-G { background-color: #8b0000; color: white !important; }
        .dpe-NC { background-color: #ccc; }
		
		
		
		/* Style spécifique pour le Footer */
.footer-dark {
    background-color: #343a40 !important; /* Gris anthracite très foncé */
    color: #ffffff !important; /* Texte blanc pur */
}

.footer-dark h5 {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-dark p, .footer-dark li {
    color: #adb5bd; /* Gris clair pour le texte secondaire */
}

.footer-dark a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer-dark a:hover {
    color: #ff8c00 !important; /* Rappel de ton orange au survol */
}

.footer-hr {
    border-top: 1px solid #495057;
    margin: 20px 0;
}
/* ==========================================
   NOUVEAU HEADER PROFESSIONNEL
   ========================================== */

/* Structure globale */


/* Logo & Slogan */
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    line-height: 1;
}
.logo-slogan {
    font-size: 10px;
    color: #777;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Boutons de navigation (Locations / Ventes) */
.btn-nav-header {
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bouton Publier (Le bouton d'action principal) */
.btn-cta-red {
    background-color: #D60021;
    color: white !important;
    border: none;
    font-weight: 700;
    border-radius: 8px

.main-header {
    position: sticky;
    top: 0;
    z-index: 9999 !important; /* Force le header à passer devant tout le reste */
    background: white;
}

/* Force le menu à passer au dessus de tout le contenu */
.main-header {
    position: sticky;
    top: 0;
    z-index: 2000 !important;
}

/* Sur mobile, on empile proprement */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-top: 1px solid #eee;
    }
    .navbar-nav {
        align-items: flex-start !important; /* Aligne à gauche dans le menu mobile */
    }
    .navbar-nav .btn, .navbar-nav .nav-link {
        width: 100%; /* Les boutons prennent toute la largeur sur mobile */
        margin-bottom: 10px;
        justify-content: center;
    }
}
.why-link {
    transition: all 0.3s ease;
    border-radius: 50px;
}

.why-link:hover {
    color: #0d6efd !important; /* Change en bleu au survol */
    background-color: #f8f9fa; /* Ajoute un fond très léger */
}

