body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    color: #eeeeee; 
    background-color: #0b0b0b; 
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* --- Header Réorganisé --- */
header { 
    background-color: rgba(0, 0, 0, 0.95); 
    padding: 0.8rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 3px solid #f1c40f; 
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu à gauche */
nav { display: flex; gap: 10px; order: 1; }

/* Logo à droite */
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    order: 2;
}

.site-logo {
    height: 50px;
    width: auto;
    border-radius: 4px;
}
header h1 { 
    margin: 0; 
    font-size: 1.5em; 
    font-style: italic; 
    text-transform: uppercase; 
    color: white;
}
header h1 span { color: #f1c40f; } 

.nav-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: 0.3s;
    border: 1px solid transparent;
}
.nav-btn:hover {
    border-color: #f1c40f;
    color: #f1c40f;
}
.nav-btn.active {
    background-color: #f1c40f;
    color: #000;
}

/* --- Hero --- */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), 
                url('https://images.unsplash.com/photo-1660933518272-e2a88543f0d8?q=80&w=2938&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover; 
    color: white; 
    text-align: center; 
    padding: 140px 20px; 
    border-bottom: 2px solid #222;
}
.hero h2 { font-size: 3.5em; margin-bottom: 15px; letter-spacing: -1px; }
.hero p { font-size: 1.3em; color: #f1c40f; max-width: 700px; margin: 0 auto; font-weight: 300; line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* --- SYSTÈME DE FILTRES --- */
.filter-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    margin-top: -80px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid #333;
    position: relative;
    z-index: 10;
}
.filter-title { color: #f1c40f; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; font-size: 0.9em; letter-spacing: 1px; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}
.filter-group label { display: block; font-size: 0.75em; color: #888; margin-bottom: 5px; text-transform: uppercase; }
.filter-group select, .filter-group input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    outline: none;
}

/* Checkboxes d'options en ligne 3 */
.filter-checkboxes {
    grid-column: 1 / -1; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    background: #222; 
    padding: 15px; 
    border-radius: 5px; 
    margin-top: 10px;
}
.filter-checkboxes label {
    font-size: 0.8em;
    text-transform: none;
    color: #fff;
}
.filter-checkboxes label.checkboxes-title {
    width: 100%; 
    margin-bottom: 10px; 
    color: #f1c40f;
    text-transform: uppercase;
    font-size: 0.75em;
}

/* Désactivation des flèches d'input type number */
input[type=number] { -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin:0; }
input::-o-inner-spin-button, input::-o-outer-spin-button { -o-appearance: none; margin:0; }

.filter-group select:focus { border-color: #f1c40f; }

.btn-filter {
    grid-column: 1 / -1;
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-filter:hover { background: #d4ac0d; }

/* --- Bloc "Vendre Ma W201" --- */
.btn-vendre-container {
    text-align: center; 
    margin: 30px 0 10px 0;
}
.btn-vendre {
    display: inline-block; 
    padding: 14px 28px; 
    background-color: #1a1a1a; 
    color: #f1c40f; 
    border: 2px solid #f1c40f; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.1em; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.1);
}
.btn-vendre:hover {
    background-color: #f1c40f; 
    color: #000; 
    box-shadow: 0 4px 20px rgba(241, 196, 15, 0.4);
}

/* --- Grille et Cartes d'Annonces --- */
.results-grid {
    display: grid; 
    gap: 20px; 
    margin-top: 40px;
}
.annonce-card {
    background: #1a1a1a; 
    border-radius: 10px; 
    overflow: hidden; 
    display: flex; 
    border: 1px solid #333;
}
.annonce-img {
    width: 300px; 
    height: 200px; 
    object-fit: cover;
}
.annonce-content {
    padding: 20px; 
    flex: 1;
}
.annonce-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
}
.annonce-header h3 {
    color: #f1c40f; 
    margin: 0;
}
.annonce-prix {
    background: #f1c40f; 
    color: #000; 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 0.9em;
}
.annonce-meta {
    font-size: 0.9em; 
    margin: 10px 0;
}
.annonce-desc {
    font-size: 0.85em; 
    color: #ccc; 
    line-height: 1.4; 
    margin-bottom: 15px;
}

/* Liens originaux */
.lien-externe {
    display: inline-block; 
    color: #f1c40f; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9em; 
    margin-top: 5px;
}

/* Encadré contact vendeur interne */
.contact-vendeur {
    background: #222; 
    padding: 10px 15px; 
    border-radius: 5px; 
    border-left: 3px solid #f1c40f; 
    margin-bottom: 15px; 
    font-size: 0.9em; 
    color: #fff;
}
.contact-vendeur a {
    color: #f1c40f; 
    text-decoration: none; 
    font-weight: bold;
}

/* Bloc "Aucun Résultat" */
.no-results {
    text-align: center; 
    padding: 40px; 
    background: #111; 
    border-radius: 10px; 
    border: 1px dashed #444;
}
.no-results-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
}
.no-results-subtitle {
    color: #888;
    margin: 0;
}

/* --- Badge d'annonce exclusive Ma190.fr --- */
.badge-exclu {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(231, 76, 60, 0.1); 
    border: 1px dashed #e74c3c;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulseExclu 2s infinite ease-in-out; 
}

@keyframes pulseExclu {
    0% { opacity: 0.9; }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }
    100% { opacity: 0.9; }
}

/* --- Section Histoire --- */
.history-section {
    background: #111;
    padding: 60px 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid #222;
    line-height: 1.8;
}
.history-section h2 { color: #f1c40f; text-transform: uppercase; margin-top: 0; }
.history-content { color: #ccc; font-size: 1.05em; }

.passion-text {
    text-align: center;
    margin: 80px 0;
    padding: 0 50px;
}
.passion-text h2 { color: #f1c40f; font-size: 2.5em; margin-bottom: 20px; }
.passion-text p { font-size: 1.15em; line-height: 1.8; color: #ccc; font-style: italic; }

.badge-france {
    background: #f1c40f; 
    color: #444;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid #fff;
}

footer { background-color: #000; color: #444; text-align: center; padding: 40px 20px; border-top: 1px solid #222; margin-top: 50px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column-reverse; gap: 15px; }
    .logo-area { order: 1; }
    nav { order: 2; width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero h2 { font-size: 2.2em; }
    .filter-section { margin-top: -40px; padding: 20px; }
    .passion-text { padding: 0 10px; font-size: 0.9em; }
    .nav-btn { font-size: 0.75em; padding: 6px 12px; }
    .annonce-card { flex-direction: column; }
    .annonce-img { width: 100%; height: 220px; }
}
/* --- Alignement des actions de filtres (Recherche + Reset) --- */
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.btn-filter {
    margin-top: 0 !important; /* Écrase l'ancienne marge */
}
.btn-reset {
    text-align: center;
    color: #888;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    transition: 0.3s;
    background: #111;
}
.btn-reset:hover {
    color: #f1c40f;
    border-color: #f1c40f;
    background: #1a1a1a;
}

/* --- Style du bouton Voir le numéro --- */
.wrapper-tel {
    display: inline-block;
    margin-top: 4px;
}
.btn-voir-tel {
    background: #333;
    color: #f1c40f;
    border: 1px solid #444;
    padding: 4px 10px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.btn-voir-tel:hover {
    background: #f1c40f;
    color: #000;
    border-color: #f1c40f;
}

/* --- Alignement responsive pour les actions de filtres --- */
@media (min-width: 768px) {
    .filter-actions {
        flex-direction: row;
        align-items: center;
    }
    .btn-filter {
        flex: 3; /* Le bouton principal prend plus de place */
    }
    .btn-reset {
        flex: 1; /* Le bouton reset est plus compact sur grand écran */
        padding: 15px; /* Aligné sur la hauteur du bouton recherche */
    }
}
/* Organisation adaptative de la zone des boutons d'action */
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.btn-filter {
    margin-top: 0 !important;
}

.btn-reset {
    text-align: center;
    color: #888;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #333;
    transition: 0.3s;
    background: #111;
}

.btn-reset:hover {
    color: #f1c40f;
    border-color: #f1c40f;
    background: #1a1a1a;
}

/* Gestion de l'agencement interne des Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Style appliqué au bouton de masquage anti-scraping */
.wrapper-tel {
    display: inline-block;
    margin-top: 4px;
}

.btn-voir-tel {
    background: #222;
    color: #f1c40f;
    border: 1px solid #444;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.btn-voir-tel:hover {
    background: #f1c40f;
    color: #000;
    border-color: #f1c40f;
}

.tel-revele {
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;
}

/* Version desktop pour les boutons */
@media (min-width: 768px) {
    .filter-actions {
        flex-direction: row;
        align-items: center;
    }
    .btn-filter {
        flex: 3;
    }
    .btn-reset {
        flex: 1;
        padding: 16px;
    }
}
.footer-legal {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 0.85em;
    color: #aaaaaa; /* Couleur globale du texte des mentions */
    line-height: 1.6;
    text-align: justify;
}

/* Le lien prend la même couleur que le texte autour et garde son soulignement discret */
.footer-legal a {
    color: inherit; /* Force le lien à utiliser le #aaaaaa du parent */
    text-decoration: none;
    border-bottom: 1px dashed #aaaaaa; 
    transition: none; /* Désactive l'effet de transition */
}

/* Au survol, le lien reste STRICTEMENT identique */
.footer-legal a:hover {
    color: inherit !important;
    border-bottom-color: #aaaaaa !important;
    background: none !important;
}
.counter-pepites {
    text-align: center;
    font-size: 1.3em;
    color: #fff;
    margin: 25px 0 15px 0;
    letter-spacing: 0.5px;
}

.counter-pepites strong {
    color: #f1c40f; /* Met le nombre en jaune or */
    font-size: 1.2em;
    background: #111;
    padding: 2px 10px;
    border-radius: 4px;
    border: 0px solid #333;
}