/* V5.3 - Style Restauré (Logo, Hero V1, Fiscalité Cards) */

:root {
    --kg-blue: #192b44;/*#0e2e4e;*/
    --kg-gold: #b9b11d;
    --kg-grey: #6c6c6c;
    --kg-light: #f8f9fa;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800|Open+Sans:400,600&display=swap');

body { font-family: 'Open Sans', sans-serif; color: var(--kg-grey); background-color: #fdfdfd; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--kg-blue); font-weight: 700; }

/* --- HEADER & LOGO --- */
.navbar-kg { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 5px 0; }
.navbar-brand img { 
    height: 55px; 
    width: auto; /* CRITIQUE : Empêche l'étirement */
    max-width: 100%;
}
.nav-link { text-transform: uppercase; font-weight: 700 !important; color: #fff !important; font-size: 0.95rem; padding: 1rem !important; }
.nav-link:hover { color: var(--kg-gold) !important; }
.navbar-toggler {
    background-color:#fff !important;
}
/* Top Bar Buttons (Style V1) */
.top-bar-section { background-color: #fff; border-bottom: 1px solid #eee; padding: 8px 0; }
.btn-top-gold { 
    background-color: var(--kg-gold); color: #fff; border-radius: 3px; padding: 6px 15px; 
    font-size: 0.85rem; font-weight: 700; text-decoration: none; display: inline-block; margin-left: 5px; 
    text-transform: uppercase; transition: all 0.3s; 
}
.btn-top-gold:hover { background-color: #9a9315; color: #fff; transform: translateY(-1px); }

.btn-top-blue { 
    background-color: var(--kg-blue); color: #fff; border-radius: 3px; padding: 6px 15px; 
    font-size: 0.85rem; font-weight: 700; text-decoration: none; display: inline-block; margin-left: 5px;
    text-transform: uppercase;
}
.btn-top-blue:hover { background-color: #082038; color: #fff; }

/* --- HERO SECTION V1 (RESTAURÉ) --- */
.hero-section { position: relative; background-size: cover; background-position: center; height: 420px; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(14, 46, 78, 0.65); }
.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-title-line1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; /* Gros titre */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-title-line2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem; /* Ville très grosse */
    font-weight: 800;
    color: var(--kg-gold); /* JAUNE KG */
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e0e0e0;
    font-weight: 600;
}

/* --- EXPERT CARD --- */
.expert-card { background: #fff; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; margin-top: -70px; position: relative; z-index: 10; overflow: hidden; padding: 10px; }
.expert-img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.expert-name { color: var(--kg-blue); font-weight: 800; font-size: 1.6rem; margin-bottom: 0; }
.expert-role { color: #666; font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }

/* Bouton Bilan Offert (Bleu Foncé V1) */
.btn-blue-dark {
    background-color: var(--kg-blue) !important; color: #fff !important; font-weight: 800 !important;
    border-radius: 4px; padding: 15px 30px; text-transform: uppercase; border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s; font-size: 1rem;
}
.btn-blue-dark:hover { background-color: #082038 !important; transform: translateY(-2px); }

/* --- FISCALITE (BOITAGE RESTAURÉ) --- */
.fisc-grid-card {
    background: #fff;
    border: 1px solid #e1e1e1; /* Bordure visible */
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--kg-blue); /* Top bleu */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Ombre légère */
}
.fisc-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Ombre forte */
    border-top-color: var(--kg-gold); /* Top or */
}
.fisc-grid-title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--kg-blue); margin-bottom: 15px; font-size: 1.2rem; text-transform: uppercase; }
.fisc-grid-icon { font-size: 2.2rem; color: #ddd; position: absolute; top: 20px; right: 20px; transition: 0.3s; }
.fisc-grid-card:hover .fisc-grid-icon { color: var(--kg-gold); opacity: 1; transform: scale(1.1); }

/* --- SIDEBAR & SCORE (V5.6 - Design Affiné) --- */

/* Sidebar collée juste sous le header */
.sidebar-sticky { 
    position: sticky; 
    top: 10px; /* Ajusté pour arriver pile sous la barre de menu (hauteur ~80px) */
    z-index: 90; /* Juste en dessous du header (1030) */
    padding-top: 0; 
}

/* Bloc Score : Dégradé plus riche et "Joli" */
.score-box { 
    /* Dégradé diagonal : Gris Anthracite lumineux -> Noir Profond */
    background: linear-gradient(135deg, #3a3a3a 0%, #080808 100%); 
    border-radius: 12px; /* Arrondi plus doux */
    color: white; 
    text-align: center; 
    padding: 25px 15px 10px 15px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.3); /* Ombre portée plus classe */
    margin-bottom: 20px !important;
    border: 1px solid rgba(255,255,255,0.1); /* Fin liseré pour le luxe */
}

.score-val { 
    color: var(--kg-gold); 
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem; 
    font-weight: 800; 
    line-height: 1; 
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Relief sur le texte */
}

/* Conteneur Radar */
.radar-container-dark {
    position: relative;
    height: 200px; 
    width: 100%;
    margin-top: 10px;
    overflow: visible; /* Important pour ne pas couper les textes */
}

/* TOC */
.toc-card { border: 1px solid #eee; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); background: #fff; overflow: hidden; margin-bottom: 20px; }
.toc-header { background-color: var(--kg-blue); color: #fff; padding: 15px 20px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.toc-link { color: #555; display: block; padding: 10px 20px; border-bottom: 1px solid #f0f0f0; text-decoration: none; font-size: 0.9rem; }
.toc-link:hover { background-color: #f9f9f9; color: var(--kg-blue); padding-left: 25px; }

/* PROGRAMMES */
.card-prog { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: 0.4s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card-prog:hover { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.card-prog-img { width: 100%; height: 220px; object-fit: cover; transition: 0.5s; }
.card-prog:hover .card-prog-img { transform: scale(1.05); }

/* --- FOOTER PREMIUM (Design V1 Restauré) --- */
footer {
    background-color: #121212 !important; /* Noir profond */
    color: #b0b0b0 !important; /* Gris clair pour le texte */
    font-size: 0.9rem;
    margin-top: 80px;
    padding-top: 70px;
    padding-bottom: 30px;
    border-top: 5px solid var(--kg-gold); /* Liseré Or au dessus */
}

/* Titres des colonnes */
.footer-title {
    color: #ffffff !important; /* Blanc pur */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

/* Le petit trait Or sous le titre */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--kg-gold);
}

/* Liste des liens */
.footer-links {
    padding-left: 0;
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Séparateur très subtil */
    padding-bottom: 8px;
}
.footer-links a {
    color: #ccc !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}
.footer-links a:hover {
    color: var(--kg-gold) !important;
    padding-left: 8px; /* Petit glissement vers la droite */
}
.footer-links i {
    color: var(--kg-gold);
    margin-right: 8px;
    width: 15px;
    text-align: center;
}

/* Articles Récents (Images + Texte) */
.footer-posts .d-flex {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-posts a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-posts a:hover {
    color: var(--kg-gold) !important;
}
.footer-posts img {
    border: 1px solid #333;
    transition: opacity 0.3s;
}
.footer-posts img:hover {
    opacity: 0.8;
}

/* Nuage de mots (Villes) */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-link {
    background-color: #2a2a2a;
    color: #ddd !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #333;
}
.tag-link:hover {
    background-color: var(--kg-gold);
    color: #fff !important;
    border-color: var(--kg-gold);
    transform: translateY(-2px);
}
.tag-link.fw-bold {
    border-left: 3px solid var(--kg-gold); /* Marquer les villes sièges */
}

/* Copyright en bas */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* MOBILE */
.sticky-cta-mobile { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: white; padding: 10px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex; gap: 10px; }
.btn-sticky { flex: 1; font-weight: 700; font-size: 0.9rem; padding: 12px 0; border-radius: 4px; text-align: center; text-decoration: none; }

/* TEXTES & CONTENU (Correctif Compression) */
.read-more-wrap { 
    position: relative; 
    transition: all 0.3s ease-in-out; 
    display: block;
}

/* Force la hauteur max quand la classe .collapsed est présente */
.read-more-wrap.collapsed { 
    max-height: 150px !important; 
    overflow: hidden !important; 
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.read-more-trigger { 
    display: inline-block; 
    margin-top: 15px; 
    cursor: pointer; 
    color: var(--kg-gold); 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    border-bottom: 2px solid transparent; 
}
.read-more-trigger:hover { 
    border-bottom-color: var(--kg-gold); 
}
/* --- BANNIERE COOKIES RGPD --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 99999;
    display: none; /* Masqué par défaut, géré par JS */
    border-top: 3px solid var(--kg-gold);
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.cookie-text {
    font-size: 0.9rem;
    color: #ccc;
    flex: 1;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.btn-cookie-accept {
    background-color: var(--kg-gold);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cookie-accept:hover { background-color: #9a9315; transform: translateY(-1px); }

.btn-cookie-refuse {
    background-color: transparent;
    color: #999;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cookie-refuse:hover { border-color: #ccc; color: #fff; }
/* --- FIX LOGO KG PATRIMOINE --- */
/* --- FIX LOGO KG PATRIMOINE (35px) --- */
.logo-kg {
    height: 35px !important;       /* Hauteur demandée */
    width: auto !important;        /* Largeur automatique = Ratio respecté */
    max-width: none !important;    /* Empêche Bootstrap d'écraser la largeur */
    object-fit: contain;           /* Assure que l'image ne soit jamais rognée */
    display: block;
    margin-top: 5px;               /* Petit ajustement pour centrer verticalement si besoin */
}

/* Ajustement Mobile si nécessaire */
@media (max-width: 768px) {
    .logo-kg {
        height: 40px !important;   /* Un peu plus petit sur mobile */
    }
}

/* --- RESEAUX SOCIAUX ULTRA PREMIUM --- */

/* Style de base (Rond, fin, élégant) */
.social-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Taille discrète mais clickable */
    height: 32px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.4s ease;
    margin: 0 4px;
}

/* VERSION HEADER (Fond blanc -> Icônes Gris foncé qui deviennent Or) */
.header-socials .social-premium {
    border: 1px solid #e0e0e0; /* Bordure gris très pâle */
    color: #333; /* Icone gris foncé */
    background-color: transparent;
}
.header-socials .social-premium:hover {
    border-color: var(--kg-gold);
    background-color: var(--kg-gold);
    color: #fff;
    transform: translateY(-2px); /* Petit effet de lévitation */
    box-shadow: 0 4px 10px rgba(185, 177, 29, 0.3); /* Ombre portée dorée */
}

/* VERSION FOOTER (Fond noir -> Icônes Blanches qui deviennent Or) */
.footer-socials .social-premium {
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure quasi invisible */
    color: rgba(255, 255, 255, 0.7); /* Blanc cassé */
    background-color: transparent;
    width: 40px; /* Un peu plus grand dans le footer */
    height: 40px;
    font-size: 1.1rem;
}
.footer-socials .social-premium:hover {
    border-color: var(--kg-gold);
    background-color: var(--kg-gold);
    color: #fff;
    transform: scale(1.1); /* Zoom léger */
}
/* =========================================
   NAVIGATION & MENUS (V4 - Harmonie Totale)
   ========================================= */

/* --- 1. BARRE DE NAVIGATION PRINCIPALE (Niveau 1) --- */
.navbar-kg { 
    background: #192b44; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    padding: 0; /* Compact */
}

.navbar-nav .nav-link { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; /* Gras pour les têtes de menu */
    text-transform: uppercase; 
    color: #fff !important; /* Noir presque pur */
    font-size: 0.85rem; /* Taille harmonisée */
    padding: 1.2rem 1rem !important; /* Espace clicable confortable */
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show { 
    color: var(--kg-gold) !important; 
    background-color: rgba(185, 177, 29, 0.05); /* Fond subtil au survol */
}

/* --- 2. CONTENEUR DÉROULANT (La Boîte) --- */
.dropdown-menu {
    border: none;
    border-radius: 0;
    border-top: 3px solid var(--kg-gold); /* Signature Luxe */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
    margin-top: 0;
    min-width: 300px; /* Largeur standardisée */
    background: #fff;
}

/* --- 3. ITEMS DÉROULANTS (Tous les liens : Standards & Premium) --- */
/* On cible à la fois la classe bootstrap standard ET notre classe premium */
.dropdown-item, 
.dropdown-item-premium {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 20px; /* Espacement compact unifié */
    clear: both;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium pour la lisibilité */
    font-size: 0.8rem; /* Taille compacte pro */
    line-height: 1.3;
    color: #444; /* Gris foncé doux */
    text-decoration: none;
    background-color: transparent;
    border-bottom: 1px solid #f4f4f4; /* Séparateur ultra-fin */
    transition: all 0.2s ease;
    white-space: normal; /* Autorise le retour à la ligne si nécessaire */
}

.dropdown-item:last-child, 
.dropdown-item-premium:last-child {
    border-bottom: none;
}

/* --- 4. EFFETS & VARIATIONS --- */

/* Survol (Hover) commun */
.dropdown-item:hover, 
.dropdown-item-premium:hover,
.dropdown-item:focus, 
.dropdown-item-premium:focus {
    color: var(--kg-gold) !important;
    background-color: #fafafa;
    padding-left: 25px; /* Le petit glissement élégant */
}

/* Style spécial "Dernier Article" (Le plus récent) */
.dropdown-item-premium.latest {
    font-weight: 800 !important; /* Très gras */
    color: #000 !important;
    background-color: rgba(185, 177, 29, 0.04);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* Badge NEW (Uniquement sur .latest) */
.dropdown-item-premium.latest::after {
    content: 'NEW';
    font-size: 0.6rem;
    color: #fff;
    background-color: var(--kg-gold);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: auto; /* Pousse à droite */
    font-weight: 700;
}

/* --- 5. MOBILE (Ajustements) --- */
@media (max-width: 991px) {
    .dropdown-menu {
        border-top: none;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 10px;
    }
    .dropdown-item, .dropdown-item-premium {
        padding: 12px 15px; /* Plus gros pour les doigts */
        font-size: 0.9rem;
    }
}
/* =========================================
   OUVERTURE MENU AU SURVOL (Desktop Uniquement)
   ========================================= */

@media (min-width: 992px) {
    /* 1. Afficher le menu au survol de la souris */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        margin-top: 0; /* Colle le menu à la barre pour éviter de perdre le focus */
        animation: fadeUpMenu 0.3s ease forwards; /* Animation douce */
    }

    /* 2. Désactiver le clic qui ferme le menu (UX) */
    .nav-item.dropdown .dropdown-menu {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    /* 3. Animation d'apparition Luxe */
    @keyframes fadeUpMenu {
        from {
            opacity: 0;
            transform: translateY(10px); /* Vient un peu du bas */
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* =========================================
   PAGE PROGRAMME DÉTAIL (V2)
   ========================================= */

/* --- HERO & BADGES --- */
.hero-program {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-fiscalite-hero {
    background-color: var(--kg-gold);
    color: #fff;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- GALERIE PHOTOS --- */
.main-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    background: #fff;
}
.main-img {
    width: 100%;
    height: 450px; /* Plus grand pour le confort */
    object-fit: cover;
    transition: transform 0.5s ease;
}
.thumb-row {
    margin-top: 10px;
}
.thumb-img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.thumb-img:hover {
    border-color: var(--kg-blue);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- TABLEAU DES LOTS (Style V2) --- */
.table-lots-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 3rem;
}
.table-lots thead th {
    background-color: var(--kg-blue);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    padding: 15px;
}
.table-lots tbody td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
}
.table-lots tr:last-child td {
    border-bottom: none;
}
.table-lots tr:hover {
    background-color: #fafafa;
}
.price-tag-v2 {
    color: var(--kg-blue);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}
.fee-note-v2 {
    display: block;
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
}

/* --- DPE BADGES (Consistants) --- */
.dpe-badge {
    display: inline-block;
    width: 24px; height: 24px;
    line-height: 24px;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 2px;
}
.dpe-A { background-color: #009c53; } .dpe-B { background-color: #52b153; }
.dpe-C { background-color: #79bd00; } .dpe-D { background-color: #f4e70f; color:#333; }
.dpe-E { background-color: #f4b400; } .dpe-F { background-color: #eb8235; }
.dpe-G { background-color: #d7221f; } .dpe-V { background-color: #ccc; }

/* --- CARTE & POPUPS (Leaflet Fix) --- */
.map-container-v2 {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}
.popup-v2-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.popup-v2-body {
    padding: 12px;
    text-align: center;
}
.popup-v2-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popup-v2-price {
    color: var(--kg-gold);
    font-weight: 800;
    margin-bottom: 8px;
}
/* CORRECTION BOUTON BLEU SUR BLEU */
.popup-v2-btn {
    display: inline-block;
    background-color: var(--kg-blue);
    color: #fff !important; /* Force le blanc */
    font-size: 0.75rem;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.popup-v2-btn:hover {
    background-color: #0a2339; /* Plus foncé au survol */
    color: #fff !important;
}

/* --- CARTES VOISINS --- */
.card-voisin {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}
.card-voisin:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-voisin-img {
    height: 200px;
    object-fit: cover;
}
.card-voisin-body {
    padding: 1.5rem;
}
/* --- TITRES & TEXTES (Harmonisation V2) --- */
.section-title-prog {
    color: #0e2e4e; /* Bleu foncé KG (au lieu du bleu clair Bootstrap) */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    border-left: 4px solid var(--kg-gold);
    padding-left: 15px;
    margin-bottom: 1.5rem;
}

/* --- SIDEBAR CONTACT (Sticky Fix) --- */
.sidebar-sticky-wrapper {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 100px; /* Décalage par rapport au haut de l'écran */
    z-index: 900;
}
.contact-card {
    background: #fff;
    border-top: 5px solid #0e2e4e; /* Bleu foncé */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* --- CARTE (Style Gris Épuré) --- */
.map-container-v2 {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    background-color: #f8f9fa; /* Fond gris clair pendant le chargement */
}


/* --- FINITIONS OR & BLEU --- */
.text-gold { color: var(--kg-gold) !important; }
.bg-dark-premium { background-color: #0b1d30 !important; } /* Bleu très profond */

/* Séparateur élégant sous les titres */
.divider-gold {
    width: 60px;
    height: 3px;
    background-color: var(--kg-gold);
    margin: 20px auto;
    border-radius: 2px;
}

/* Cartes Premium (Ombre douce + Bordure fine) */
.card-premium-hover {
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}
.card-premium-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 46, 78, 0.1); /* Ombre bleutée */
    border-bottom: 3px solid var(--kg-gold);
}

/* Boutons "Luxe" (Fins et étirés) */
.btn-premium {
    background: transparent;
    color: var(--kg-blue);
    border: 1px solid var(--kg-blue);
    padding: 12px 30px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 0; /* Angles droits = plus sérieux */
    transition: 0.3s;
}
.btn-premium:hover {
    background: var(--kg-blue);
    color: #fff;
}
.btn-premium-gold {
    background-color: var(--kg-gold);
    color: #fff;
    border: none;
    padding: 15px 35px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(185, 177, 29, 0.3);
}
.btn-premium-gold:hover {
    background-color: #9a9315;
    transform: translateY(-2px);
    color: #fff;
}
/* Style pour le module Onglets/Tabs */
.custom-pills .nav-link {
    background-color: #fff;
    color: #555;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.custom-pills .nav-link:hover {
    background-color: #f9f9f9;
    color: #0e2e4e; /* Votre Bleu */
    transform: translateX(5px);
}
.custom-pills .nav-link.active {
    background-color: #0e2e4e !important;
    color: #fff !important;
    border-left: 5px solid #b9b11d; /* Votre Or */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}