/* ============================================
   VESPIMAP - FEUILLE DE STYLE UNIFIÉE
   Palette : Noir & Orange
   Version consolidée et optimisée
   ============================================ */

/* ============================================
   VARIABLES CSS (Identité visuelle)
   ============================================ */
:root {
    /* Couleurs principales - Palette Noir & Orange */
    --primary-color: #ff7a18;
    --primary-hover: #ff9933;
    --primary-dark: #e66900;
    --black: #000000;
    --black-soft: #1a1a1a;
    --black-medium: #2d2d2d;
    --white: #ffffff;
    
    /* Couleurs fonctionnelles */
    --success-color: #28a745;
    --success-hover: #218838;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --warning-color: #ff7a18;
    --info-color: #4db8ff;
    --trap-color: #4CAF50;
    --nest-color: #f44336;
    
    /* Gris et neutres */
    --gray-light: #f4f4f4;
    --gray-medium: #ccc;
    --gray-dark: #333;
    --text-light: #666;
    --text-lighter: #e0e0e0;
    
    /* Design */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 60px rgba(255, 122, 24, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 24px;
}

/* ============================================
   RESET & STRUCTURE DE BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-dark);
    background-color: var(--gray-light);
    overflow: hidden;
    line-height: 1.6;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ============================================
   HEADER (BARRE DE NAVIGATION)
   ============================================ */
#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--primary-color);
    height: 60px;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

#page-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.hide-mobile {
    display: inline;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-button {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-button:hover {
    background: var(--primary-color);
    color: var(--black);
    transform: translateY(-2px);
}

/* Menu Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 3000;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   LAYOUT PRINCIPAL (CARTE & GRAPHIQUES)
   ============================================ */
.main-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

.map-container {
    flex: 1.6;
    height: 100%;
    position: relative;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.charts-container {
    flex: 1;
    padding: 24px;
    background: var(--white);
    overflow-y: auto;
    border-left: 1px solid var(--gray-medium);
}

/* Système d'onglets */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--gray-light);
    border-radius: 10px;
}

.tab {
    flex: 1;
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--gray-dark);
}

.active-tab {
    background: var(--black);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.chart-container {
    display: none;
    width: 100%;
}

.active-chart {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ============================================
   POPUPS & MODALS (AUTHENTIFICATION)
   ============================================ */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
}

.popup-content {
    background: var(--white);
    width: 90%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-lg);
    animation: slideUpCentered 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.popup-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 2px solid #eee;
    font-size: 15px;
    transition: var(--transition);
}

.popup-content input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.15);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.5);
}

.error-message {
    color: var(--danger-color);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--gray-medium);
    cursor: pointer;
    transition: var(--transition);
}

.close-popup:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ============================================
   POPUPS LEAFLET (CARTE) - THÈME SOMBRE
   ============================================ */
.leaflet-popup {
    max-width: 320px;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
    padding: 10px;
}

.leaflet-popup-content b {
    display: block;
    margin-top: 8px;
    font-weight: bold;
}

.leaflet-popup-tip {
    background-color: #fff;
    border: 1px solid #ddd;
}

.leaflet-popup-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 18px;
    color: #888;
    cursor: pointer;
}

.leaflet-popup-close-button:hover {
    color: #333;
}

/* FORCE OVERRIDE LEAFLET - THÈME SOMBRE */
.leaflet-container .leaflet-popup-content-wrapper {
    background: var(--black-soft) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius) !important;
    padding: 5px !important;
    border: 1px solid var(--primary-color) !important;
}

.leaflet-container .leaflet-popup-tip {
    background: var(--black-soft) !important;
    border: 1px solid var(--primary-color) !important;
}

.leaflet-container .leaflet-popup-content {
    color: var(--white) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
}

.leaflet-container .leaflet-popup-content h3,
.leaflet-container .leaflet-popup-content h4,
.leaflet-container .leaflet-popup-content b {
    color: var(--primary-color) !important;
    display: block;
    margin-bottom: 5px;
}

.leaflet-container .leaflet-popup-content button {
    background: var(--primary-color) !important;
    color: var(--black) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 8px 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    width: 100%;
    margin-top: 8px !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
}

.leaflet-container .leaflet-popup-content button:hover {
    background: var(--primary-hover) !important;
    color: var(--black) !important;
}

.leaflet-container .leaflet-popup-content input,
.leaflet-container .leaflet-popup-content select {
    background: var(--black-medium) !important;
    color: white !important;
    border: 1px solid #555 !important;
    padding: 6px !important;
    margin-bottom: 10px !important;
    border-radius: 4px !important;
    }

/* ============================================
   POPUPS CRÉATION PIÈGE/NID
   ============================================ */
.trap-popup,
.nest-popup {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--gray-dark);
    display: flex;
    flex-direction: column;    
}

.trap-popup h3,
.nest-popup h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary-color);
    text-align: center;
}

.trap-popup label,
.nest-popup label {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--primary-hover);
}

.trap-popup input,
.nest-popup input,
.nest-popup select {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid var(--gray-medium);
    box-sizing: border-box;
}

/* Boutons dans les popups */
.popup-button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

.popup-button-container button {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    color: white;
    border: none;
    transition: background-color 0.2s, transform 0.2s;
}

.popup-button-container button:hover {
    transform: scale(1.05);
}

.delete-btn {
    background-color: var(--danger-color);
}

.delete-btn:hover {
    background-color: var(--danger-hover);
}

.add-releve-btn {
    background-color: var(--info-color);
}

.add-releve-btn:hover {
    background-color: #0078D7;
}

.change-status-btn {
    background-color: var(--success-color);
}

.change-status-btn:hover {
    background-color: var(--success-hover);
}

/* ============================================
   CHOIX DE POSITIONNEMENT GPS/MANUEL
   ============================================ */
.positioning-choice {
    text-align: center;
    padding: 10px;
}

.positioning-choice h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

.choice-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--black-soft) 0%, var(--black-medium) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.choice-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 122, 24, 0.4);
}

.choice-btn i {
    font-size: 2em;
    margin-bottom: 10px;
}

.choice-btn span {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: block;
}

.choice-btn small {
    font-size: 0.85em;
    opacity: 0.8;
    display: block;
}

/* Boutons de création */
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.trap-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
}

.nest-btn {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--primary-color) 100%);
    color: white;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.create-btn i {
    font-size: 1.2em;
}

/* ============================================
   MODALES BIENVENUE & AIDE
   ============================================ */

/* Modal Base - Overlay */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenu Modal */
.modal .modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* En-tête Modal */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: none;
    color: var(--white);
}

.modal-header h2 i {
    font-size: 32px;
}

.modal-header p {
    opacity: 0.95;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    color: var(--white);
}

.modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
    font-size: 20px;
}

.modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Corps Modal */
.modal-body {
    padding: 30px;
}

/* Sections */
.section {
    margin-bottom: 30px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-dark);
    margin: 0;
}

.section-content {
    padding-left: 52px;
    color: #555;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 12px;
}

.section-content ol {
    padding-left: 20px;
    line-height: 1.8;
    margin: 12px 0;
}

.section-content ol li {
    margin-bottom: 8px;
}

/* Liste de caractéristiques */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-dark);
}

/* Cartes d'information */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-card {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: var(--primary-color);
}

.info-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-card span {
    font-size: 13px;
    opacity: 0.9;
}

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
}

.alert i {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

/* Footer Modal */
.modal-footer {
    padding: 20px 30px;
    background: var(--gray-light);
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-dark);
}

.modal-footer input[type="checkbox"] {
    cursor: pointer;
    width: auto;
    margin: 0;
}

.modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.5);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Scrollbar personnalisée pour modales */
.modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal .modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ============================================
   PAGE MAILLAGE (carte.php)
   ============================================ */

/* Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--gray-light);
}

.login-card {
    background: var(--white);
    padding: 30px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.login-card h2 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Header pour carte.php */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Controls */
#controls {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 320px;
    max-height: 85vh;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255,255,255,.98);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

#controls::-webkit-scrollbar {
    width: 8px;
}

#controls::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#controls::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

#controls::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Forms */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-light);
}

input,
select,
textarea {
    padding: 10px 12px;
    margin-bottom: 5px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.1);
}

/* Buttons génériques */
button {
    width: 100%;
    padding: 12px;
    /*margin-bottom: 10px;*/
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    transform: scale(.97);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Info Section */
#info-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-sm);
}

#info-section p {
    margin: 8px 0;
    font-size: 14px;
}

#info-section strong {
    color: var(--primary-color);
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

/* Loading Indicator */
#loading {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.95);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
    z-index: 1000;
}

/* Print Area */
#printArea {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printArea,
    #printArea * {
        visibility: visible;
    }

    #printArea {
        position: absolute;
        inset: 0;
        display: block !important;
    }

    #controls,
    #hamburgerMenu,
    #toggleControls,
    header,
    #map {
        display: none !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE (MOBILE & TABLET)
   ============================================ */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .nav-buttons {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: var(--black);
        flex-direction: column;
        padding: 40px 24px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 3000;
    }

    .nav-buttons.open {
        right: 0;
    }

    .nav-button {
        width: 100%;
        border-color: rgba(255, 255, 255, 0.1);
        padding: 16px;
    }

    .main-container {
        flex-direction: column;
        height: calc(100vh - 60px);
        margin-top: 60px;
        overflow: hidden;
    }

    .map-container {
        height: 100%;
        flex: 1;
        overflow: hidden;
    }

    .charts-container {
        display: none;
    }

    .leaflet-popup {
        z-index: 2500 !important;
    }

    .positioning-choice {
        min-width: 240px;
    }

    .choice-btn {
        padding: 15px;
    }

    .choice-btn i {
        font-size: 1.6em;
    }

    .choice-btn span {
        font-size: 1em;
    }

    .popup-buttons {
        min-width: 200px;
    }

    .create-btn {
        padding: 12px;
        font-size: 13px;
    }

    /* Modales */
    .modal .modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 0;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-header h2 i {
        font-size: 24px;
    }

    .modal-body {
        padding: 20px;
    }

    .section-content {
        padding-left: 0;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .modal-footer button {
        width: 100%;
    }

    .modal-footer label {
        width: 100%;
        justify-content: center;
    }

    /* Page carte.php */
    #hamburgerMenu {
        display: flex
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 2000;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 5px;
        font-size: 1.5em;
        cursor: pointer;
    }

    #hamburgerMenu:hover {
        background: var(--primary-hover);
    }

    #controls {
        display: none;
        left: 10px;
        right: 10px;
        width: auto;
        top: 65px;
    }

    header {
        font-size: 1.2em;
        padding: 20px;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .leaflet-popup {
        max-width: 90vw;
        font-size: 13px;
    }

    .trap-popup input,
    .nest-popup input,
    .nest-popup select {
        font-size: 12px;
        padding: 4px 6px;
    }

    .popup-button-container button {
        font-size: 12px;
        padding: 6px 0;
    }

    .popup-buttons .create-btn {
        font-size: 14px;
        padding: 8px;
    }

    /* Modales */
    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
        gap: 8px;
    }

    .modal-header h2 i {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 13px;
    }

    .modal-body {
        padding: 15px;
    }

    .section-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .feature-item {
        padding: 10px;
        font-size: 13px;
    }

    .alert {
        font-size: 13px;
        padding: 12px 15px;
    }

    /* Page carte.php */
    #controls {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    input,
    select,
    button {
        font-size: 14px;
    }
	    #hamburgerMenu {
        display: flex
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 2000;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 5px;
        font-size: 1.5em;
        cursor: pointer;
    }
}

/* ============================================
   UTILITIES & HELPERS
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================
   AJUSTEMENTS SPÉCIFIQUES CARTE.PHP
   (Correspond à la charte de index.html)
   ============================================ */

/* Login page - réutilise .popup-content avec ajustements */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--black);
    overflow: hidden;
}

/* Badge de sécurité */
.security-badge {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lock-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Page carte avec overflow hidden pour la map */
body.page-fullmap {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--gray-light);
}

/* Sidebar controls - style cohérent avec charts-container */
.sidebar-controls {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 340px;
    max-height: 85vh;
    padding: 25px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.sidebar-controls::-webkit-scrollbar {
    width: 8px;
}

.sidebar-controls::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-controls::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.sidebar-controls::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Labels dans sidebar - style cohérent avec index.html */
.sidebar-controls label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--gray-dark);
}

/* Inputs et selects dans sidebar - style cohérent */
.sidebar-controls input,
.sidebar-controls select,
.sidebar-controls textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
    color: var(--gray-dark);
    transition: var(--transition);
}

.sidebar-controls input:focus,
.sidebar-controls select:focus,
.sidebar-controls textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.15);
}

.sidebar-controls input::placeholder {
    color: var(--gray-medium);
}

/* Boutons dans sidebar - réutilise les styles de base mais avec ajustements */
.sidebar-controls button {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: var(--primary-color);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
}

.sidebar-controls button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 24, 0.4);
}

.sidebar-controls button:active {
    transform: scale(.97);
}

.sidebar-controls button:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Info box - style cohérent avec les sections d'info */
.info-box {
    margin-top: 25px;
    padding: 20px;
    background: var(--gray-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.info-box p {
    margin: 10px 0;
    font-size: 15px;
    color: var(--gray-dark);
}

.info-box strong {
    color: var(--primary-color);
    font-weight: 700;
}

.info-box span {
    color: var(--gray-dark);
}

/* Loading indicator */
.loading-overlay {
    display: none;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: bold;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* Menu hamburger - style cohérent avec index.html */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--black);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Print area */
.print-area {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    .print-area,
    .print-area * {
        visibility: visible;
    }

    .print-area {
        position: absolute;
        inset: 0;
        display: block !important;
    }

    .sidebar-controls,
    .menu-toggle,
    #header-container,
    #map {
        display: none !important;
    }
}

/* Quote summary - style cohérent */
.quote-summary {
    background: var(--gray-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.quote-summary h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.quote-summary p {
    margin: 8px 0;
    color: var(--gray-dark);
}

.quote-summary strong {
    color: var(--primary-color);
}

/* Texte coloré pour zoneControls */
.sidebar-controls p {
    color: var(--gray-dark);
    font-size: 0.9em;
    line-height: 1.6;
}

/* ============================================
   SYSTÈME D'ACCORDÉON POUR CARTE.PHP
   ============================================ */

/* Section accordéon */
.accordion-section {
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-section.active {
    border-color: var(--primary-color);
}

/* Header de l'accordéon */
.accordion-header {
    padding: 15px;
    background: var(--gray-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-section.active .accordion-header {
    background: var(--primary-color);
    color: var(--black);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.accordion-number {
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary-color);
}

.accordion-section.active .accordion-number {
    background: var(--black);
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.accordion-section.active .accordion-icon {
    transform: rotate(180deg);
}

/* Contenu de l'accordéon */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.accordion-section.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 20px;
}

/* Labels dans accordéon */
.accordion-body label {
    margin-top: 0;
}

.accordion-body label:first-child {
    margin-top: 0;
}

/* Styles spécifiques pour les modales de carte.php */
#helpModal .modal-content p,
#quoteModal .modal-content p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

#helpModal .modal-content ul,
#quoteModal .modal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

#helpModal .modal-content ul li,
#quoteModal .modal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-dark);
}

#helpModal .modal-content strong,
#quoteModal .modal-content strong {
    color: var(--gray-dark);
}

#helpModal .modal-content b,
#quoteModal .modal-content b {
    color: var(--primary-color);
}

/* Inputs dans les modales de carte.php */
#quoteModal .modal-content input,
#quoteModal .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
    color: var(--gray-dark);
    transition: var(--transition);
}

#quoteModal .modal-content input:focus,
#quoteModal .modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.15);
}

#quoteModal .modal-content input::placeholder,
#quoteModal .modal-content textarea::placeholder {
    color: var(--gray-medium);
}

/* Bouton dans modal de devis */
#quoteModal .modal-content button[type="submit"] {
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#quoteModal .modal-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.5);
}

/* Checkbox dans modal d'aide */
#helpModal .modal-content label {
    color: var(--gray-dark);
}

/* Centrage des modales pour carte.php */
#helpModal,
#quoteModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#helpModal.show,
#quoteModal.show {
    display: flex !important;
}

#helpModal .modal-content,
#quoteModal .modal-content {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin: 0 auto;
	padding: 20px;
}

/* Responsive carte.php */
@media (max-width: 768px) {
    #header-container {
        font-size: 1.2em;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-controls {
        display: none;
        left: 10px;
        right: 10px;
        width: auto;
        top: 75px;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }
    
    .accordion-section.active .accordion-content {
        max-height: 800px;
    }
}

@media (max-width: 480px) {
    .sidebar-controls {
        padding: 15px;
    }
    
    .popup-content {
        padding: 30px 25px;
    }
    
    .accordion-header {
        padding: 12px;
    }
    
    .accordion-body {
        padding: 15px;
    }
}
/* =============================================
   STYLES POUR L'INTERFACE DE RELEVÉ SIMPLIFIÉE
   À ajouter dans style.css
   ============================================= */

/* Popup moderne */
.releve-popup-modern .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.releve-popup-modern .leaflet-popup-content {
    margin: 0;
    min-width: 450px;
    max-width: 500px;
}

.releve-popup-content {
    padding: 20px;
}

/* Champs de formulaire */
.releve-field {
    margin-bottom: 20px;
}

.releve-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.9em;
}

.releve-field input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.releve-field input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

/* Sections */
.releve-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

.releve-section h4 {
    margin: 0 0 12px 0;
    color: var(--gray-dark);
}

/* Options d'échelle */
.scale-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scale-option {
    cursor: pointer;
    display: block;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.scale-option:hover .scale-label {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.scale-option input[type="radio"]:checked + .scale-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.1), rgba(255, 122, 24, 0.05));
    font-weight: 600;
}

.scale-text {
    font-size: 0.9em;
    color: var(--gray-dark);
}

.scale-desc {
    font-size: 0.8em;
    color: var(--gray-medium);
}

.scale-option input[type="radio"]:checked + .scale-label .scale-text {
    color: var(--primary-color);
}

/* Autres insectes - format compact */
.other-insect-field {
    margin-bottom: 12px;
}

.other-insect-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: var(--gray-dark);
}

.quick-scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.quick-option {
    cursor: pointer;
}

.quick-option input[type="radio"] {
    display: none;
}

.quick-option span {
    display: block;
    padding: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.quick-option:hover span {
    border-color: var(--primary-color);
}

.quick-option input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Résumé */
.releve-summary {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid #dee2e6;
}

.summary-stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.stat-label {
    display: block;
    font-size: 0.75em;
    color: var(--gray-medium);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--gray-dark);
}

/* Alertes */
.releve-alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

/* Boutons */
.releve-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.save-releve-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .releve-popup-modern .leaflet-popup-content {
        min-width: 90vw;
    }
    
    .quick-scale {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .releve-summary {
        flex-direction: column;
    }
    
    .releve-buttons {
        flex-direction: column-reverse;
    }
    
    .btn-secondary,
    .save-releve-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scale-label {
        padding: 8px 10px;
    }
    
    .scale-text {
        font-size: 0.85em;
    }
    
    .scale-desc {
        font-size: 0.7em;
    }
    
    .quick-option span {
        padding: 6px 4px;
        font-size: 0.75em;
    }
}
/* ===============================================
   CSS POUR POPUP DE RELEVÉ COMPACT
   À ajouter dans style.css
   =============================================== */

/* Popup compact */
.releve-popup-compact .leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.releve-popup-compact .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
    max-width: 95vw;
}

.popup-content-inner {
    width: 100% !important;
    max-width: 100% !important;
	padding: 10px;
}

/* Ajustements pour les inputs dans le popup */
.releve-popup-compact input[type="date"],
.releve-popup-compact select {
    box-sizing: border-box;
    max-width: 100%;
}

/* Mobile */
@media (max-width: 480px) {
    .releve-popup-compact .leaflet-popup-content {
        width: 260px !important;
    }
    
    .releve-popup-compact .leaflet-popup-content-wrapper {
        padding: 12px;
    }
}
/* Éclaircir l'icône du calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: opacity(0.6) brightness(1.2);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: opacity(0.8) brightness(1.3);
}
/* =============================================
   CSS POUR LES SECTIONS D'ONGLETS
   À ajouter dans style.css
   ============================================= */

/* Section d'onglets */
.tabs-section {
    margin-bottom: 20px;
}

.tabs-section-title {
    color: #495057;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.tabs-section-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Ajuster les onglets dans les sections */
.tabs-section .tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.tabs-section .tab {
    flex: 1;
    min-width: auto;
}

/* Responsive pour les sections */
@media (max-width: 768px) {
    .tabs-section-title {
        font-size: 0.8em;
        padding: 6px 10px;
    }
    
    .tabs-section .tabs {
        flex-wrap: wrap;
    }
    
    .tabs-section .tab {
        min-width: 80px;
    }
}
/* =============================================
   STYLES POUR LES STATISTIQUES - AJOUTÉ
   ============================================= */

/* =============================================
   STYLES POUR LES STATISTIQUES VESPIMAP
   ============================================= */

/* =============================================
   RÉSUMÉS STATISTIQUES
   ============================================= */

/* Container résumé pièges (orange) */
.stats-summary-traps {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

/* Container résumé nids (jaune) */
.stats-summary-nests {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Titre du résumé */
.stats-summary-title {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    text-align: center;
}

/* Grille des blocs statistiques */
.stats-grid {
    display: grid;
    gap: 15px;
}

/* Grille 5 colonnes (pièges) */
.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Grille 4 colonnes (nids) */
.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Bloc statistique de base */
.stats-block {
    background: #ffc107a1;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ffc107b0;
}

/* Bloc statistique avec bordure rouge (frelons) */
.stats-block-red {
    background: rgba(220, 53, 69, 0.3);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

/* Bloc statistique avec bordure jaune (autres insectes) */
.stats-block-yellow {
    background: rgba(255, 193, 7, 0.3);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(255, 193, 7, 0.5);
}

/* Bloc statistique avec bordure verte (sélectivité/traités) */
.stats-block-green {
    background: rgba(40, 167, 69, 0.3);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(40, 167, 69, 0.5);
}

/* Label du bloc */
.stats-block-label {
    font-size: 0.75em;
    opacity: 0.9;
    margin-bottom: 4px;
    color: black;
}

/* Valeur du bloc */
.stats-block-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #00000091;
}

/* Badge lecture seule */
.stats-readonly-badge {
    font-size: 0.9em;
    opacity: 0.8;
    margin-left: 10px;
}

/* =============================================
   LISTES DÉTAILLÉES
   ============================================= */

/* Container de liste */
.stats-list-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

/* Titre de liste */
.stats-list-title {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

/* Titre avec bordure orange (pièges) */
.stats-list-title-traps {
    border-bottom: 2px solid var(--primary-color);
}

/* Titre avec bordure jaune (nids) */
.stats-list-title-nests {
    border-bottom: 2px solid #ffc107;
}

/* Icône dans le titre */
.stats-list-icon {
    margin-right: 8px;
}

/* Icône orange (pièges) */
.stats-list-icon-traps {
    color: var(--primary-color);
}

/* Icône jaune (nids) */
.stats-list-icon-nests {
    color: #ffc107;
}

/* Badge lecture seule dans liste */
.stats-list-readonly {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 10px;
}

/* Wrapper du tableau avec scroll */
.stats-table-wrapper {
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

/* Tableau */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

/* En-tête du tableau */
.stats-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.stats-table th {
    padding: 10px;
    text-align: center;
    color: #495057;
}

.stats-table th:first-child {
    text-align: left;
}

/* Lignes du tableau */
.stats-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.stats-table td {
    padding: 10px;
    text-align: center;
    color: #6c757d;
}

.stats-table td:first-child {
    text-align: left;
}

/* Lien cliquable dans la première colonne */
.stats-table-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.stats-table-link:hover {
    text-decoration: underline;
}

/* Lien jaune pour les nids */
.stats-table-link-nests {
    color: #ffc107;
}

/* Valeurs colorées dans le tableau */
.stats-table-value-red {
    font-weight: bold;
    color: #dc3545;
}

.stats-table-value-yellow {
    font-weight: bold;
    color: #ffc107;
}

.stats-table-value-green {
    font-weight: bold;
    color: #28a745;
}

.stats-table-value-orange {
    font-weight: bold;
    color: var(--primary-color);
}

/* Badge état dans le tableau */
.stats-badge-active {
    padding: 3px 8px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.85em;
}

.stats-badge-treated {
    padding: 3px 8px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Petite taille de texte */
.stats-text-small {
    font-size: 0.9em;
}

/* Texte en gras */
.stats-text-bold {
    font-weight: 500;
}

/* =============================================
   MESSAGES VIDES
   ============================================= */

.stats-empty-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-5,
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-block-value {
        font-size: 1.8em;
    }
    
    .stats-summary-title {
        font-size: 1.2em;
    }
    
    .stats-table-wrapper {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid-5,
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-summary-traps,
    .stats-summary-nests {
        padding: 15px;
    }
    
    .stats-list-container {
        padding: 15px;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    font-size: 0.95em;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation d'entrée */
.toast-enter {
    opacity: 0;
    transform: translateX(100px) scale(0.95);
}

.toast-show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Animation de sortie */
.toast-exit {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
}

/* Icône */
.toast-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
}

/* Message */
.toast-message {
    flex: 1;
    color: var(--gray-dark);
    font-weight: 500;
}

/* Bouton de fermeture */
.toast-close {
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray-dark);
}

/* Types de toasts */
.toast-success {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), white);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), white);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(to right, rgba(255, 122, 24, 0.05), white);
}

.toast-info {
    border-left: 4px solid var(--info-color);
    background: linear-gradient(to right, rgba(77, 184, 255, 0.05), white);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   KPI CARDS - Dashboard Style
   ============================================ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

/* Animation d'entrée */
.kpi-card-show {
    opacity: 1;
    transform: translateY(0);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.kpi-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.kpi-card:hover::before {
    width: 6px;
}

/* Icône */
.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    transition: all 0.3s;
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contenu */
.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.kpi-value {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
    color: var(--gray-dark);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.kpi-unit {
    font-size: 0.6em;
    font-weight: 600;
    color: #6c757d;
}

/* Variantes de couleurs */
.kpi-primary .kpi-icon {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(255, 122, 24, 0.05));
    color: var(--primary-color);
}

.kpi-primary::before {
    background: var(--primary-color);
}

.kpi-success .kpi-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.05));
    color: var(--success-color);
}

.kpi-success::before {
    background: var(--success-color);
}

.kpi-warning .kpi-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    color: #ffc107;
}

.kpi-warning::before {
    background: #ffc107;
}

.kpi-info .kpi-icon {
    background: linear-gradient(135deg, rgba(77, 184, 255, 0.15), rgba(77, 184, 255, 0.05));
    color: var(--info-color);
}

.kpi-info::before {
    background: var(--info-color);
}

.kpi-danger .kpi-icon {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05));
    color: var(--danger-color);
}

.kpi-danger::before {
    background: var(--danger-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kpi-card {
        padding: 16px;
    }

    .kpi-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3em;
    }

    .kpi-value {
        font-size: 1.6em;
    }

    .kpi-label {
        font-size: 0.8em;
    }
}

/* Mode compact */
.kpi-compact .kpi-card {
    padding: 15px;
    gap: 12px;
}

.kpi-compact .kpi-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2em;
}

.kpi-compact .kpi-value {
    font-size: 1.5em;
}

/* Loading state */
.kpi-card.loading .kpi-value {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: kpi-loading 1.5s infinite;
    border-radius: 4px;
    height: 28px;
    width: 80px;
}

@keyframes kpi-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   AMÉLIORATION HIÉRARCHIE VISUELLE
   ============================================ */

/* Container principal des stats avec fond dégradé */
.charts-container {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 200px);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* Section séparateur visuel */
.stats-section {
    margin-bottom: 30px;
}

.stats-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.stats-section-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--gray-dark);
    letter-spacing: 0.5px;
}

.stats-section-header i {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Amélioration des résumés de stats */
.stats-summary-traps,
.stats-summary-nests {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.stats-summary-traps:hover,
.stats-summary-nests:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stats-summary-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--gray-dark);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-summary-title i {
    color: var(--primary-color);
}

/* Onglets de navigation améliorés */
.tabs-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tabs-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--gray-dark);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    min-width: fit-content;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s;
    color: #6c757d;
}

.tab:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--gray-dark);
}

.tab.active-tab {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

/* Containers de graphiques améliorés */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: none;
}

.chart-container.active-chart {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message vide amélioré */
.stats-empty-message {
    text-align: center;
    color: #6c757d;
}

.stats-empty-message i {
    display: block;
}

/* Switch de mode amélioré */
.stats-mode-btn,
.stats-switch-btn {
    position: relative;
    overflow: hidden;
}

.stats-mode-btn::before,
.stats-switch-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.stats-mode-btn:active::before,
.stats-switch-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Responsive amélioré */
@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .charts-container {
        padding: 15px;
    }

    .stats-grid-5,
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tabs {
        gap: 6px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .stats-grid-5,
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}
button#leave-group-btn {
    width: 20%;
    padding: 12px;
    /* margin-bottom: 10px; */
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
}
/* =============================================
   CSS POUR LES POPUPS DE RELEVÉS - VERSION AMÉLIORÉE
   Remplacez tout le CSS des relevés par celui-ci
   ============================================= */

/* ==========================================
   POPUP LISTE DES RELEVÉS - LAYOUT AMÉLIORÉ
   ========================================== */

/* Wrapper Leaflet */
.releves-list-popup .leaflet-popup-content-wrapper {
    padding: 20px !important;
    max-width: 450px !important;
    box-sizing: border-box !important;
}

.releves-list-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* En-tête avec titre et compteur */
.releves-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.releves-title {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.releves-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Zone scrollable */
.releves-scroll {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    padding-right: 5px;
    box-sizing: border-box !important;
}

/* Scrollbar personnalisée */
.releves-scroll::-webkit-scrollbar {
    width: 6px;
}

.releves-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.releves-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.releves-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Carte de relevé */
.releve-card {
    background: white !important;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.releve-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 122, 24, 0.15);
}

/* Ligne date + bouton - SIMPLIFIÉ */
.releve-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.releve-date {
    font-size: 0.95em;
    color: #495057 !important;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
}

/* Bouton éditer - COMPACT */
.edit-releve-btn {
    padding: 6px 12px;
    font-size: 0.85em;
    background: #007bff !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 30% !important;
}

.edit-releve-btn:hover {
    background: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.edit-releve-btn i {
    font-size: 0.9em;
}

/* Badge type d'appât */
.releve-info {
    margin-bottom: 10px;
}

.releve-appat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fff5e6, #ffe8cc);
    border: 1px solid #ffb84d;
    border-radius: 15px;
    font-size: 0.85em;
    color: #856404 !important;
    font-weight: 600;
}

/* Section captures */
.releve-captures {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.releve-capture-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.capture-frelons {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border-left: 3px solid #dc3545;
}

.capture-autres {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-left: 3px solid #17a2b8;
}

.capture-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.capture-label {
    flex: 1;
    font-size: 0.9em;
    color: #495057 !important;
    font-weight: 500;
}

.capture-count {
    font-size: 1em;
    font-weight: 700;
    color: #495057 !important;
    padding: 2px 10px;
    background: white;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

/* Message vide */
.releve-empty {
    font-size: 0.9em;
    color: #999 !important;
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Bouton fermer */
.close-releves-list-btn {
    width: 100%;
    padding: 12px;
    background: #6c757d !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.close-releves-list-btn:hover {
    background: #5a6268 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.close-releves-list-btn i {
    font-size: 1em;
}

/* ==========================================
   POPUP ÉDITION DE RELEVÉ  
   ========================================== */

/* Wrapper */
.releve-popup-compact .leaflet-popup-content-wrapper {
    padding: 15px !important;
    max-width: 400px !important;
    box-sizing: border-box !important;
}

.releve-popup-compact .leaflet-popup-content {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Groupe de champs */
.releve-form-group {
    margin-bottom: 15px;
    box-sizing: border-box !important;
}

/* Labels */
.releve-form-label {
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
    color: #495057 !important;
}

/* Inputs et selects */
.releve-form-input,
.releve-form-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    font-size: 0.95em;
    box-sizing: border-box !important;
    background: white !important;
    color: #495057 !important;
}

.releve-form-select {
    cursor: pointer;
}

.releve-form-input:focus,
.releve-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

/* Section Frelons Asiatiques */
.releve-section-frelons {
    background: linear-gradient(135deg, #fff5e6, #ffe8cc);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    box-sizing: border-box !important;
}

.releve-section-frelons .releve-form-label {
    color: var(--primary-color) !important;
}

.releve-section-frelons .releve-form-input {
    border-color: #ffb84d;
}

/* Section Autres Insectes */
.releve-section-autres {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d;
    box-sizing: border-box !important;
}

/* Boutons d'action */
.releve-buttons {
    display: flex;
    gap: 10px;
    box-sizing: border-box !important;
}

.save-releve-edit-btn {
    flex: 1;
}

.delete-releve-btn {
    flex: 0 0 auto;
    background: #dc3545 !important;
    color: white !important;
    width: 45% !important;
}

.delete-releve-btn:hover {
    background: #c82333 !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

    .releves-list-popup .leaflet-popup-content-wrapper,
    .releve-popup-compact .leaflet-popup-content-wrapper {
        max-width: 95vw !important;
    }

    .releves-scroll {
        max-height: 300px;
    }

    .releve-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .edit-releve-btn-list {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .releves-list-popup .leaflet-popup-content-wrapper {
        padding: 15px !important;
    }

    .releve-card {
        padding: 12px;
    }

    .capture-label {
        font-size: 0.85em;
    }
}