    body { font-family: 'Segoe UI', Tahoma, sans-serif; margin: 0; background: #f4f7f6; color: #333; line-height: 1.6; }
    
    /* Bandeau supérieur optimisé */
    #panel { 
        padding: 15px; 
        background: #2c3e50; 
        color: white; 
        display: flex; 
        gap: 15px; 
        align-items: center; 
        flex-wrap: wrap; 
        position: sticky; 
        top: 0; 
        z-index: 1001; 
        height: auto; 
    }

    .input-group { display: flex; flex-direction: column; }
    .check-group { display: flex; align-items: center; gap: 6px; font-size: 0.8em; cursor: pointer; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; }
    input[type="number"] { padding: 6px; border-radius: 4px; border: none; width: 60px; text-align: center; font-weight: bold; }
    label { font-size: 0.7em; margin-bottom: 4px; color: #bdc3c7; text-transform: uppercase; }
    
    #map { height: 500px; width: 100%; border-bottom: 2px solid #ddd; }
    
    .obs-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
    .table-container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }
    table { width: 100%; border-collapse: collapse; margin-top: 10px; }
    th { background: #ecf0f1; text-align: left; padding: 12px; font-size: 0.85em; border-bottom: 2px solid #dee2e6; }
    td { padding: 10px; border-bottom: 1px solid #eee; font-size: 0.85em; }
    
    .btn { padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; color: white; }
    .btn-csv { background: #2980b9; }
    .btn-print { background: #27ae60; }
    .btn-reset { background: #e74c3c; }
    #status-msg { color: #f1c40f; font-weight: bold; font-size: 0.9em; margin-left: auto; }
    .marker-icon { background: white; border: 2px solid; border-radius: 50%; text-align: center; line-height: 24px; font-size: 16px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }

    .info-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; border-top: 1px solid #ccc; padding-top: 30px; }
    .info-card { background: #fff; padding: 20px; border-radius: 8px; border-left: 5px solid #2980b9; }
    .disclaimer-card { background: #fff; padding: 20px; border-radius: 8px; border-left: 5px solid #e74c3c; grid-column: span 2; }
    h4 { margin-top: 0; color: #2c3e50; text-transform: uppercase; font-size: 0.9em; }
    .coverage-list { font-size: 0.9em; padding-left: 20px; }
    .coverage-list li { margin-bottom: 8px; }

    /* Responsive Mobile */
    @media (max-width: 768px) {
        #panel { flex-direction: row; justify-content: flex-start; }
        .input-group { flex: 1 1 70px; }
        #address_search { width: 100% !important; margin-top: 5px; }
        .info-section { grid-template-columns: 1fr; }
    }

@media print {
    /* 1. Masquer les éléments structurels du site et les outils */
    header, footer, .sidebar, #menu-toggle, .pub, .ads, 
    #panel, .leaflet-control-container, .btn, #status-msg, 
    .info-section, .contact-section { 
        display: none !important; 
    }

    /* 2. Forcer le contenu principal à prendre toute la largeur */
    body, .main-content, .obs-container { 
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 3. Ajuster la carte pour qu'elle tienne sur la page */
    #map { 
        height: 500px !important; 
        width: 100% !important;
        border: 1px solid #ccc !important;
        page-break-after: avoid; 
    }

    /* 4. Optimiser le tableau pour la lecture papier */
    .table-container { 
        box-shadow: none !important; 
        border: none !important;
        padding: 0 !important;
    }

    table { 
        width: 100% !important; 
        border-collapse: collapse !important;
    }

    th, td { 
        border: 1px solid #ddd !important; /* Bordures visibles à l'impression */
        font-size: 9pt !important;
        color: black !important;
    }

    /* Empêcher de couper un obstacle en plein milieu d'une page */
    tr { 
        page-break-inside: avoid; 
    }

    /* Afficher le titre du rapport proprement */
    h1 { 
        font-size: 18pt !important;
        text-align: center;
        margin-bottom: 20px;
    }
}
 /* Cache le footer print par défaut sur le site */
.footer-print { 
    display: none; 
}

@media print {
    /* 1. Nettoyage total des structures externes */
    html, body, .main-content, section.main-content { 
        margin: 0 !important; 
        padding: 0 !important; 
        width: 100% !important;
        position: static !important;
        overflow: visible !important;
    }

    /* Suppression des éléments demandés */
    footer.site-footer, .sidebar, #menu-toggle, #panel, .leaflet-control-container, .btn, #status-msg, .info-section { 
        display: none !important; 
    }

    /* 2. Recentrage de la carte */
    #map { 
        width: 100% !important; 
        height: 450px !important;
        margin: 10px 0 !important;
        border: 1px solid #333 !important;
        left: 0 !important; /* Force l'alignement à gauche */
    }

    /* 3. Affichage et style du footer print */
    .footer-print { 
        display: block !important; 
        position: fixed; 
        bottom: 0; 
        width: 100%; 
        font-size: 9pt; 
        color: #555;
        border-top: 1px solid #ccc;
        padding-top: 5px;
    }

    /* Ajuster l'inventaire pour ne pas chevaucher le footer print */
    .obs-container { 
        padding-bottom: 50px !important; 
    }
}