/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #666666;
    --accent-color: #e55a2b;
    --success-color: #27ae60;
    --warning-color: #ff6b35;
    --light-gray: #f5f5f5;
    --dark-gray: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    font-size: clamp(14px, 2vw, 16px);
}

/* Header et Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.nav-brand i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--secondary-color);
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

/* Menu Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-item i {
    font-size: 1.1rem;
    min-width: 1.1rem;
}

/* Contenu principal */
.main-content {
    margin-top: var(--header-height);
    padding: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - var(--header-height));
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

/* Tableau de bord */
.dashboard-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.dashboard-header p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 4px 6px var(--shadow);
    transition: var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow);
}

.card-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: clamp(2.5rem, 6vw, 3rem);
    color: var(--secondary-color);
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.card-content p {
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-header p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Formulaires */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Groupes de cases à cocher et boutons radio */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    padding: clamp(0.4rem, 2vw, 0.5rem);
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: fit-content;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.checkbox-label:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    min-width: 16px;
    height: 16px;
}

.form-section {
    margin-bottom: 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.75rem);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px; /* Meilleure accessibilité tactile */
    justify-content: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
}

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

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

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

.btn-success:hover {
    background: #219a52;
}

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

.btn-warning:hover {
    background: var(--accent-color);
}

.form-actions {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Filtres */
.filters {
    background: var(--white);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: clamp(0.5rem, 2vw, 0.6rem);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Historique */
.history-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow);
    overflow: hidden;
}

.history-list {
    max-height: 70vh;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid #eee;
    transition: var(--transition);
    gap: 1rem;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    flex: 1;
}

.history-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.history-info p {
    color: var(--dark-gray);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.history-actions .btn {
    padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.6rem, 2vw, 0.8rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    min-height: 36px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--success-color);
    color: var(--white);
    padding: clamp(0.8rem, 2.5vw, 1rem);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    max-width: min(400px, calc(100vw - 40px));
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.notification.hidden {
    display: none;
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: var(--warning-color);
}

.notification.info {
    background: #3498db;
}

.notification-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.2rem;
    margin-left: auto;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* MEDIA QUERIES RESPONSIVE */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

/* Mobile et tablettes portrait */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px var(--shadow);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        gap: 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item span {
        display: block;
    }
    
    .navbar {
        padding: 1rem;
        height: var(--header-height);
    }
    
    .main-content {
        padding: 1rem;
        margin-top: var(--header-height);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        min-height: 180px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        max-width: none;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .history-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .checkbox-label {
        padding: 0.75rem;
        background: var(--white);
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius);
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: calc(var(--header-height) + 10px);
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .dashboard-grid {
        gap: 1rem;
    }
    
    .history-actions .btn {
        flex: 1;
        min-width: 0;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
        min-height: 140px;
    }
    
    .form-container {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
}

/* Écrans larges */
@media (min-width: 1400px) {
    .main-content {
        max-width: 1400px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
    }
}



/* Styles d'impression */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        font-size: 12pt;
    }
    
    .navbar,
    .nav-toggle,
    .form-actions,
    .filters,
    .notification,
    .history-actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }
    
    .form-container,
    .form-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
    
    .dashboard-grid {
        display: block !important;
    }
    
    .dashboard-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
}

/* ===========================
   STYLES POUR LA GESTION DES SITES
   =========================== */

/* Container principal des sites */
.sites-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

/* Onglets de navigation */
.sites-tabs {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--dark-gray);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-btn i {
    margin-right: 0.5rem;
}

/* Contenu des onglets */
.sites-tab-content {
    display: none;
    padding: 2rem;
}

.sites-tab-content.active {
    display: block;
}

/* Liste des sites */
.sites-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.sites-filters input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.sites-list {
    display: grid;
    gap: 1rem;
}

.site-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.site-item:hover {
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--primary-color);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.site-info h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.site-info p {
    margin: 0.25rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.site-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.site-status {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Statuts spéciaux pour les visites */
.status-item.status-overdue {
    color: #dc3545;
    font-weight: bold;
}

.status-item.status-urgent {
    color: #ffc107;
    font-weight: bold;
}

.status-item.status-normal {
    color: #28a745;
}

.status-item.status-none {
    color: #6c757d;
    font-style: italic;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.normal { background: var(--success-color); }
.status-dot.warning { background: var(--warning-color); }
.status-dot.danger { background: #dc3545; }

/* Formulaire de site */
.site-form {
    max-width: 800px;
}

/* Classe spécifique pour les formulaires de sites */
.site-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.form-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Liste des visites */
.visits-list {
    display: grid;
    gap: 1rem;
}

.visit-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.visit-item.urgent {
    border-left: 4px solid var(--warning-color);
    background: rgba(255, 107, 53, 0.02);
}

.visit-item.overdue {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.visit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.visit-info h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.visit-info p {
    margin: 0.25rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.visit-date {
    text-align: right;
    font-weight: 600;
}

.visit-date.urgent {
    color: var(--warning-color);
}

.visit-date.overdue {
    color: #dc3545;
}

.visit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.visit-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Carte des sites */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Marqueurs personnalisés avec labels */
.custom-marker-with-label {
    background: transparent !important;
    border: none !important;
}

.marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.site-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.marker-pin {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Effets de zoom sur la carte */
.leaflet-zoom-level-6 .site-label,
.leaflet-zoom-level-7 .site-label {
    font-size: 9px;
    padding: 2px 4px;
    max-width: 60px;
}

.leaflet-zoom-level-8 .site-label,
.leaflet-zoom-level-9 .site-label {
    font-size: 10px;
    padding: 3px 6px;
    max-width: 80px;
}

.leaflet-zoom-level-10 .site-label,
.leaflet-zoom-level-11 .site-label {
    font-size: 11px;
    padding: 4px 8px;
    max-width: 100px;
}

.leaflet-zoom-level-12 .site-label,
.leaflet-zoom-level-13 .site-label,
.leaflet-zoom-level-14 .site-label,
.leaflet-zoom-level-15 .site-label,
.leaflet-zoom-level-16 .site-label,
.leaflet-zoom-level-17 .site-label,
.leaflet-zoom-level-18 .site-label {
    font-size: 12px;
    padding: 4px 10px;
    max-width: 150px;
}

/* Zoom sur les marqueurs au survol */
.marker-container:hover .site-label {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.marker-container:hover .marker-pin {
    transform: scale(1.2);
    z-index: 1001;
}

/* Animation d'apparition des marqueurs */
@keyframes markerAppear {
    0% {
        transform: scale(0) translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.marker-container {
    animation: markerAppear 0.6s ease-out;
}

/* Styles pour la migration */
.migration-container {
    padding: 20px;
}

.migration-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.migration-info p {
    margin: 5px 0;
    color: #495057;
}

.migration-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.migration-list {
    margin-top: 20px;
}

.residence-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.residence-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.residence-checkbox {
    flex-shrink: 0;
}

.residence-info {
    flex-grow: 1;
}

.residence-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.residence-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.residence-actions {
    display: flex;
    gap: 10px;
}

.migration-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
}

.migration-form.active {
    display: block;
}

.migration-results {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.migration-results.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.migration-results.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.migration-progress {
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

/* Responsive pour les onglets */
@media (max-width: 768px) {
    .sites-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .sites-tab-content {
        padding: 1rem;
    }
    
    .site-form-row {
        grid-template-columns: 1fr;
    }
    
    .sites-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sites-filters input {
        min-width: auto;
    }
    
    .site-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-actions {
        justify-content: flex-start;
    }
    
    .visit-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .visit-date {
        text-align: left;
    }
    
    .visit-actions {
        justify-content: flex-start;
    }
} 