/* --- CONFIGURATION GÉNÉRALE --- */
body { 
    font-family: 'Lato', sans-serif; 
    /* L'image de pré en fond fixe */
    background-image: url('../images/fond_nature.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.8;
}

h1, h2, h3, .navbar-brand { font-family: 'Playfair Display', serif; }

/* --- NAVIGATION & LOGO CENTRAL --- */
.navbar {
    min-height: 70px;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.nav-logo img {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    transition: transform 0.3s;
}

.nav-logo img:hover { transform: translate(-50%, -50%) scale(1.05); }

.nav-spacer { width: 120px; }

.nav-link i {
    color: #5d6d3e;
    font-size: 1.2rem;
    margin-right: 4px;
    vertical-align: middle;
}

/* --- LE CONTENU (VOILE BLANC) --- */
.main-content-section {
    padding-top: 60px;
    padding-bottom: 60px;
}



.voile-blanc { 
    /* rgba(255, 255, 255, 0.85) : le 0.85 permet de voir le pré par transparence */
    background: rgba(255, 255, 255, 0.85) !important; 
    
    border-radius: 15px; 
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    /* Cet effet floute l'image de fond juste derrière le texte pour que ce soit très lisible */
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); /* Pour la compatibilité Safari */
}

/* On s'assure que les sections grisâtres à l'intérieur ne bloquent pas la vue */
#carte.bg-light {
    background-color: rgba(248, 249, 250, 0.5) !important; /* Plus transparent aussi */
}

/* On s'assure que les cartes internes restent jolies */
.card, .bg-light {
    border: none !important;
    background-color: rgba(248, 249, 250, 0.7) !important;
}

/* --- BOUTONS & BADGES --- */
.btn-terroir { background-color: #5d6d3e; border-color: #5d6d3e; color: white; }
.btn-terroir:hover { background-color: #4a5732; color: white; }

.badge-rating {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    border: 1px solid #eee;
}
.badge-rating:hover { transform: translateY(-3px); }

/* --- SECTION CARTE CONTACT --- */

#map { 
    height: 500px; 
    border-radius: 15px; 
    border: 1px solid #ddd; 
    z-index: 1; /* Assure que la carte reste sous les menus déroulants si besoin */
}

/* Style de la Légende (Positionnée en bas à droite par Leaflet) */
.map-legend {
    background: white;
    padding: 10px 15px;
    line-height: 24px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.map-legend i {
    width: 12px;
    height: 12px;
    float: left;
    margin-top: 6px;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Style du bouton "Me localiser" (Positionné en haut à gauche) */
.locate-button {
    background: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease-in-out;
    background-clip: padding-box;
}

.locate-button:hover { 
    background: #f8f9fa; 
    border-color: #999; 
    color: #000;
}

/* Correction pour les icônes Bootstrap dans la carte */
.locate-button i {
    font-size: 16px;
    line-height: 1;
}

/* Ajustement des popups Leaflet pour coller au style du site */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 5px;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}