* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f9fafb; min-height: 100vh; }

body.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        
        /* Login */
        .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
        .login-box { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); max-width: 420px; width: 100%; }
        .login-box h1 { color: #2563eb; margin-bottom: 10px; text-align: center; font-size: 2rem; }
        .login-box p { color: #6b7280; text-align: center; margin-bottom: 30px; font-size: 0.95rem; }
        .login-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; font-size: 0.9rem; }
        .login-form input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 16px; margin-bottom: 16px; }
        .login-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
        .login-btn { width: 100%; background: #2563eb; color: white; padding: 12px; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; }
        .login-btn:hover { background: #1d4ed8; }
        .login-error { background: #fee2e2; color: #991b1b; padding: 12px; border-radius: 6px; margin-bottom: 20px; text-align: center; font-size: 0.9rem; }
        .login-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; padding: 12px; border-radius: 6px; margin-top: 20px; font-size: 0.85rem; }
        
		/* ============================================
		   HEADER - Styles à ajouter dans main.css
		   ============================================ */

		/* Container principal du header */
		.app-header {
			background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
			padding: 1rem 1.5rem;
			box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		}

		.app-header-content {
			display: flex;
			justify-content: space-between;
			align-items: flex-start;
			gap: 1rem;
		}

		/* Partie gauche - Titre */
		.app-header-left {
			color: white;
			flex: 1;
		}

		.app-header-title {
			margin: 0;
			font-size: 1.5rem;
			font-weight: 700;
		}

		.app-header-subtitle {
			margin: 0.25rem 0 0 0;
			opacity: 0.9;
			font-size: 0.9rem;
		}

		.app-header-copyright {
			margin: 0.25rem 0 0 0;
			opacity: 0.7;
			font-size: 0.75rem;
		}

		/* Partie droite - Boutons */
		.app-header-right {
			display: flex;
			flex-direction: column;
			gap: 0.5rem;
			align-items: flex-end;
		}

		/* Boutons du header */
		.header-badge {
			position: relative;
			background: rgba(255, 255, 255, 0.2);
			color: white;
			border: 1px solid rgba(255, 255, 255, 0.3);
			padding: 0.5rem 1rem;
			border-radius: 0.375rem;
			cursor: pointer;
			font-size: 0.85rem;
			min-width: 140px;
			text-align: center;
			font-weight: 600;
			transition: all 0.3s ease;
		}

		.header-badge:hover {
			background: rgba(255, 255, 255, 0.3);
			transform: translateY(-1px);
		}

		/* Badge Devis SMS */
		.header-badge-devis {
			background: rgba(245, 158, 11, 0.9);
		}

		.header-badge-devis:hover {
			background: rgba(245, 158, 11, 1);
		}

		.header-badge-devis.has-pending {
			background: rgba(245, 158, 11, 0.9);
		}

		.header-badge-devis.no-pending {
			background: rgba(255, 255, 255, 0.2);
		}

		/* Badge Connexion */
		.header-badge-online {
			background: rgba(16, 185, 129, 0.9);
		}

		.header-badge-offline {
			background: rgba(245, 158, 11, 0.9);
		}

		/* Badge Déconnexion */
		.header-badge-logout {
			background: rgba(220, 38, 38, 0.9);
			text-decoration: none;
		}

		.header-badge-logout:hover {
			background: rgba(220, 38, 38, 1);
		}

		/* Compteur rouge sur les badges */
		.badge-counter {
			position: absolute;
			top: -8px;
			right: -8px;
			background: #ef4444;
			color: white;
			border-radius: 9999px;
			width: 24px;
			height: 24px;
			font-size: 0.75rem;
			font-weight: 700;
			display: flex;
			align-items: center;
			justify-content: center;
			z-index: 100;
			box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
		}

		/* Animation pulse pour le compteur */
		@keyframes pulse {
			0%, 100% {
				transform: scale(1);
				opacity: 1;
			}
			50% {
				transform: scale(1.1);
				opacity: 0.8;
			}
		}

		.badge-counter.pulse {
			animation: pulse 2s ease-in-out infinite;
		}

		/* Bandeau utilisateur connecté */
		.user-connected-banner {
			background: #f0fdf4;
			border-left: 4px solid #22c55e;
			padding: 0.75rem 1.5rem;
		}

		.user-connected-text {
			font-weight: 600;
			color: #166534;
		}

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

		@media (max-width: 768px) {
			.app-header {
				padding: 1rem;
			}
			
			.app-header-content {
				gap: 0.75rem;
			}
			
			.app-header-title {
				font-size: 1.25rem;
			}
			
			.app-header-subtitle {
				font-size: 0.8rem;
			}
			
			.app-header-copyright {
				font-size: 0.7rem;
			}
			
			.app-header-right {
				gap: 0.5rem;
			}
			
			/* Sur mobile : juste les icônes */
			.header-badge {
				min-width: auto;
				padding: 0.5rem;
				font-size: 1.25rem;
			}
			
			/* Masquer le texte, garder juste l'icône */
			.header-badge-text {
				display: none;
			}
			
			.user-connected-banner {
				padding: 0.5rem 1rem;
			}
			
			.user-connected-text {
				font-size: 0.85rem;
			}
		}

		@media (max-width: 480px) {
			.app-header-title {
				font-size: 1.1rem;
			}
			
			.app-header-subtitle {
				font-size: 0.75rem;
			}
			
			.header-badge {
				font-size: 1.1rem;
			}
		}
        /* Header */
        .header { background: #2563eb; color: white; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
        .header h1 { font-size: 1.875rem; font-weight: bold; margin: 0; }
        .header p { font-size: 0.7rem; font-weight: normal; opacity: 0.7; margin: 0.25rem 0 0 0; }
        .header-right { display: flex; align-items: center; gap: 1rem; }
        .user-badge { background: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; }
        .notif-badge { position: relative; background: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; }
        .notif-badge:hover { background: rgba(255,255,255,0.3); }
        .notif-count { position: absolute; top: -8px; right: -8px; background: #ef4444; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; animation: pulse 2s infinite; }
        @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
        .logout-btn { background: rgba(255,255,255,0.2); color: white; padding: 0.5rem 1rem; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem; text-decoration: none; display: inline-block; }
        .logout-btn:hover { background: rgba(255,255,255,0.3); }
        
        /* Container */
        .container { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
        
		/* Mobile - padding réduit */
		@media (max-width: 768px) {
			.container {
				padding: 0.5rem;
			}
		}
		
        /* Tabs */
        .tabs { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1.5rem; }
        .tabs-header { display: flex; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
        .tab { flex: 1; padding: 1rem 1.5rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; text-align: center; white-space: nowrap; min-width: max-content; }
        .tab:hover { background: #f9fafb; }
        .tab.active { color: #2563eb; border-bottom-color: #2563eb; }
        
        /* Toolbar */
        .toolbar { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
        .search-box { flex: 1; min-width: 200px; }
        .search-box input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; }
        
        /* Buttons */
        .btn { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
        .btn-primary { background: #2563eb; color: white; }
        .btn-primary:hover { background: #1d4ed8; }
        .btn-secondary { background: #d1d5db; color: #374151; }
        .btn-secondary:hover { background: #9ca3af; }
        .btn-success { background: #10b981; color: white; }
        .btn-success:hover { background: #059669; }
        .btn-export { background: #8b5cf6; color: white; }
        .btn-export:hover { background: #7c3aed; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; }
        
        /* Cards & Forms */
        .card { background: white; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1rem; }
        .form { background: white; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1.5rem; }
        .form h3 { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
        .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
        .form-group { display: flex; flex-direction: column; }
        .form-group label { font-weight: 600; margin-bottom: 0.5rem; color: #374151; }
        .form-group input, .form-group select, .form-group textarea { padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; font-family: inherit; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
        .form-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
        
		/* Calendrier - marges réduites */
		.calendrier-container .card {
			margin: 0.5rem 0 !important;
			padding: 0.75rem !important;
		}
		
        /* Badges */
        .badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
        .badge-blue { background: #dbeafe; color: #1e40af; }
        .badge-yellow { background: #fef3c7; color: #92400e; }
        .badge-green { background: #d1fae5; color: #065f46; }
        .badge-red { background: #fee2e2; color: #991b1b; }
        .badge-purple { background: #e9d5ff; color: #6b21a8; }
        
        /* Photos */
        .photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
        .photo-btn { padding: 1rem; border: 2px dashed #d1d5db; border-radius: 0.5rem; background: white; cursor: pointer; transition: all 0.2s; font-weight: 600; color: #374151; }
        .photo-btn:hover { border-color: #2563eb; background: #f9fafb; }
        .photo-btn.camera { border-color: #10b981; color: #10b981; }
        .photo-btn.camera:hover { background: #d1fae5; }
        .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
        .photo-item { position: relative; border-radius: 0.5rem; overflow: hidden; cursor: pointer; }
        .photo-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
        .photo-remove { position: absolute; top: 0.25rem; right: 0.25rem; background: #ef4444; color: white; border: none; border-radius: 50%; width: 1.5rem; height: 1.5rem; cursor: pointer; font-size: 0.75rem; }
        
        /* Signature */
        .signature-container { margin-top: 1rem; border: 2px dashed #d1d5db; border-radius: 0.5rem; padding: 1rem; }
        .signature-canvas { border: 2px solid #2563eb; border-radius: 0.5rem; background: white; cursor: crosshair; touch-action: none; width: 100%; max-width: 600px; display: block; margin: 0 auto; }
        .signature-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; justify-content: center; flex-wrap: wrap; }
        .signature-preview { max-width: 300px; border: 1px solid #e5e7eb; border-radius: 0.5rem; margin-top: 0.5rem; }
        
        /* Dashboard */
        .dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.dashboard { width: 100%; }
        .stat-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
        .stat-card.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
        .stat-card.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
        .stat-card.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
        .stat-card.purple { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); }
        .stat-card h3 { font-size: 0.875rem; font-weight: 600; opacity: 0.9; margin-bottom: 0.5rem; text-transform: uppercase; }
        .stat-card .stat-value { font-size: 3rem; font-weight: bold; margin-bottom: 0.5rem; }
        .stat-card .stat-label { font-size: 0.875rem; opacity: 0.8; }
        .today-section { background: white; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .today-section h2 { font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-bottom: 1rem; }
        .intervention-card { background: #f9fafb; border-left: 4px solid #2563eb; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
        .intervention-card.encours { border-left-color: #f59e0b; }
        .intervention-card.terminee { border-left-color: #10b981; }
        .intervention-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
        .intervention-time { font-size: 1.25rem; font-weight: bold; color: #2563eb; }
        .intervention-info h4 { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; }
        .intervention-info p { font-size: 0.875rem; color: #6b7280; }
        .intervention-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
        .quick-status-btn { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
        .quick-status-btn.start { background: #fef3c7; color: #92400e; }
        .quick-status-btn.start:hover { background: #fde68a; }
        .quick-status-btn.complete { background: #d1fae5; color: #065f46; }
        .quick-status-btn.complete:hover { background: #a7f3d0; }
        
        /* Notifications Panel */
        .notif-panel { position: fixed; top: 80px; right: 20px; width: 400px; max-width: calc(100vw - 40px); background: white; border-radius: 0.75rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); max-height: 600px; overflow-y: auto; z-index: 1000; display: none; }
        .notif-panel.active { display: block; animation: slideIn 0.3s ease-out; }
        @keyframes slideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes slideDown { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
        .notif-header { padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
        .notif-header h3 { font-size: 1.125rem; font-weight: bold; color: #1f2937; }
        .notif-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; }
        .notif-item { padding: 1rem 1.5rem; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.2s; }
        .notif-item:hover { background: #f9fafb; }
        .notif-item.urgent { border-left: 4px solid #ef4444; background: #fef2f2; }
        .notif-item h4 { font-size: 1rem; font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; }
        .notif-item p { font-size: 0.875rem; color: #6b7280; }
        .notif-time { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
        .notif-empty { padding: 3rem 1.5rem; text-align: center; color: #9ca3af; }
        
        /* Lightbox */
        .lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
        .lightbox.active { display: flex; justify-content: center; align-items: center; }
        .lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
        .lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; background: rgba(0,0,0,0.5); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .lightbox-close:hover { background: rgba(255,255,255,0.2); }
        
        /* Calendrier */
        .calendrier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; background: white; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-wrap: wrap; gap: 1rem; }
        .calendrier-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; width: 100%; }
        .calendrier-nav button { background: #2563eb; color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; font-weight: 600; white-space: nowrap; }
        .calendrier-nav button:hover { background: #1d4ed8; }
        .calendrier-nav h2 { margin: 0 1rem; font-size: 1.5rem; font-weight: bold; color: #1f2937; min-width: 200px; text-align: center; flex: 1; }
        .calendrier-vues { display: flex; gap: 0.5rem; width: 100%; }
        .vue-btn { background: #f3f4f6; color: #374151; border: none; padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; font-weight: 600; flex: 1; }
        .vue-btn.active { background: #2563eb; color: white; }
        .calendrier-grid { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; }
        .calendrier-jours-header { display: grid; grid-template-columns: repeat(7, 1fr); background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
        .jour-header { padding: 0.75rem; text-align: center; font-weight: 600; color: #374151; font-size: 0.875rem; }
        .calendrier-jours { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(100px, auto); }
        .jour-cell { min-height: 100px; border: 1px solid #e5e7eb; padding: 0.25rem; position: relative; cursor: pointer; transition: background 0.2s; overflow: hidden; }
        .jour-cell:hover { background: #f9fafb; }
        .jour-cell.autre-mois { background: #f9fafb; opacity: 0.5; }
        .jour-cell.aujourdhui { background: #dbeafe; border: 2px solid #2563eb; }
        .jour-numero { font-weight: bold; color: #1f2937; margin-bottom: 0.25rem; font-size: 0.75rem; }
        .intervention-mini { background: #dbeafe; color: #1e40af; padding: 0.2rem 0.3rem; border-radius: 0.25rem; font-size: 0.65rem; margin-bottom: 0.2rem; cursor: grab; border-left: 3px solid #2563eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .intervention-mini.encours { background: #fef3c7; color: #92400e; border-left-color: #f59e0b; }
        .intervention-mini.terminee { background: #d1fae5; color: #065f46; border-left-color: #10b981; }
        .intervention-mini.annulee { background: #fee2e2; color: #991b1b; border-left-color: #ef4444; }
        .intervention-mini:active { cursor: grabbing; opacity: 0.7; }
        .jour-cell.drag-over { background: #bfdbfe; border: 2px dashed #2563eb; }
        
        /* Itinéraire */
        .itineraire-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 1rem; }
        .itineraire-modal.active { display: flex; }
        .itineraire-content { background: white; border-radius: 0.75rem; max-width: 1200px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
        .itineraire-header { padding: 1.5rem; border-bottom: 2px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
        .itineraire-header h2 { font-size: 1.5rem; font-weight: bold; color: #1f2937; margin: 0; }
        .itineraire-close { background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; font-weight: 600; }
        .itineraire-close:hover { background: #dc2626; }
        .itineraire-body { display: grid; grid-template-columns: 400px 1fr; height: 600px; }
        .itineraire-liste { padding: 1.5rem; overflow-y: auto; border-right: 1px solid #e5e7eb; }
        .itineraire-map { position: relative; }
        #map { width: 100%; height: 100%; }
        .etape-item { background: #f9fafb; padding: 1rem; border-radius: 0.5rem; margin-bottom: 0.75rem; border-left: 4px solid #2563eb; }
        .etape-numero { display: inline-block; background: #2563eb; color: white; width: 28px; height: 28px; border-radius: 50%; text-align: center; line-height: 28px; font-weight: bold; font-size: 0.875rem; margin-right: 0.5rem; }
        .etape-info { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }
        .stats-itineraire { background: #f0f9ff; border: 1px solid #bae6fd; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
        .stats-itineraire h3 { font-size: 1rem; font-weight: bold; color: #0369a1; margin-bottom: 0.5rem; }
        .stat-line { display: flex; justify-content: space-between; font-size: 0.875rem; color: #0c4a6e; margin-bottom: 0.25rem; }
        
        /* Alerts */
        .alert { padding: 1rem 1.5rem; border-radius: 0.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
        .alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
        .alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .alert button { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.25rem; color: inherit; }
        
        /* Menu SMS */
        .sms-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.2s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .sms-menu { background: white; border-radius: 1rem; max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; max-height: 90vh; display: flex; flex-direction: column; }
        @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .sms-menu-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; position: relative; }
        .sms-menu-header h3 { margin: 0; font-size: 1.5rem; font-weight: bold; color: #1f2937; }
        .sms-menu-close { position: absolute; top: 1rem; right: 1rem; background: #f3f4f6; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; color: #6b7280; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .sms-menu-close:hover { background: #e5e7eb; color: #1f2937; transform: rotate(90deg); }
        .sms-menu-body { padding: 1rem; overflow-y: auto; max-height: calc(90vh - 120px); }
        .sms-option { width: 100%; background: white; border: 2px solid #e5e7eb; border-radius: 0.75rem; padding: 1rem; margin-bottom: 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 1rem; transition: all 0.2s; text-align: left; }
        .sms-option:hover { border-color: #2563eb; background: #f0f9ff; transform: translateX(4px); }
        .sms-option:active { transform: scale(0.98); }
        .sms-icon { font-size: 2rem; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #f0f9ff; border-radius: 0.5rem; }
        .sms-text { flex: 1; }
        .sms-text strong { display: block; font-size: 1rem; color: #1f2937; margin-bottom: 0.25rem; }
        .sms-text small { font-size: 0.875rem; color: #6b7280; }
        .sms-divider { height: 1px; background: #e5e7eb; margin: 0.5rem 0 1rem 0; }
        .sms-option-custom { border-color: #8b5cf6; }
        .sms-option-custom:hover { border-color: #7c3aed; background: #f5f3ff; }
        .sms-option-custom .sms-icon { background: #f5f3ff; }
        .sms-option-rappel { border-color: #f59e0b; background: #fffbeb; animation: pulseRappel 2s ease-in-out infinite; }
        .sms-option-rappel:hover { border-color: #d97706; background: #fef3c7; }
        .sms-option-rappel .sms-icon { background: #fef3c7; }
        @keyframes pulseRappel { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
        .sms-sent { background: #d1fae5 !important; border-color: #10b981 !important; }
        .sms-sent:hover { background: #a7f3d0 !important; }
        .sms-sent .sms-icon { background: #a7f3d0 !important; }
        
		/* ============================================
		   STYLES POUR MODULE AVIS CLIENTS
		   À ajouter dans la section <style> de index-secure.php
		   ============================================ */

		/* Stats des avis */
		.avis-stats-grid { 
			display: grid; 
			grid-template-columns: 2fr repeat(3, 1fr); 
			gap: 1rem; 
			margin-bottom: 1.5rem; 
		}

		.stat-card-large { 
			grid-column: span 1; 
		}

		.stat-icon { 
			font-size: 3rem; 
			margin-bottom: 0.5rem; 
		}

		/* Répartition des notes */
		.notes-distribution { 
			display: flex; 
			flex-direction: column; 
			gap: 0.75rem; 
		}

		.note-bar { 
			display: flex; 
			align-items: center; 
			gap: 1rem; 
		}

		.note-label { 
			min-width: 60px; 
			font-weight: 600; 
			color: #374151; 
		}

		.note-progress { 
			flex: 1; 
			height: 24px; 
			background: #f3f4f6; 
			border-radius: 12px; 
			overflow: hidden; 
			position: relative; 
		}

		.note-progress-fill { 
			height: 100%; 
			background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%); 
			transition: width 0.3s ease; 
			border-radius: 12px; 
		}

		.note-count { 
			min-width: 40px; 
			text-align: right; 
			font-weight: 600; 
			color: #6b7280; 
		}

		/* Cartes d'avis */
		.avis-card { 
			background: white; 
			border: 2px solid #e5e7eb; 
			border-radius: 0.75rem; 
			padding: 1.25rem; 
			margin-bottom: 1rem; 
			transition: all 0.2s; 
		}

		.avis-card:hover { 
			box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
			transform: translateY(-2px); 
		}

		.avis-public { 
			border-left: 4px solid #10b981; 
			background: #f0fdf4; 
		}

		.avis-prive { 
			border-left: 4px solid #6b7280; 
			background: #f9fafb; 
		}

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

		.avis-client { 
			font-size: 1.125rem; 
			font-weight: bold; 
			color: #1f2937; 
			margin-bottom: 0.25rem; 
		}

		.avis-note { 
			font-size: 1.25rem; 
			color: #f59e0b; 
			margin-bottom: 0.25rem; 
		}

		.avis-date { 
			font-size: 0.875rem; 
			color: #6b7280; 
		}

		.avis-commentaire { 
			font-size: 0.95rem; 
			color: #4b5563; 
			line-height: 1.6; 
			font-style: italic; 
			padding: 0.75rem; 
			background: white; 
			border-radius: 0.5rem; 
			border-left: 3px solid #fbbf24; 
		}

		/* Sélecteur de note */
		.rating-selector { 
			display: flex; 
			gap: 0.5rem; 
			flex-wrap: wrap; 
		}

		.rating-star { 
			padding: 0.75rem 1.25rem; 
			border: 2px solid #e5e7eb; 
			background: white; 
			border-radius: 0.5rem; 
			cursor: pointer; 
			font-size: 1rem; 
			font-weight: 600; 
			transition: all 0.2s; 
		}

		.rating-star:hover { 
			border-color: #fbbf24; 
			background: #fffbeb; 
			transform: scale(1.05); 
		}

		.rating-star.selected { 
			border-color: #f59e0b; 
			background: #fef3c7; 
			color: #92400e; 
		}

		/* Badge demande avis envoyée */
		.badge-avis-sent { 
			background: #dbeafe; 
			color: #1e40af; 
			padding: 0.25rem 0.75rem; 
			border-radius: 1rem; 
			font-size: 0.75rem; 
			font-weight: 600; 
			display: inline-flex; 
			align-items: center; 
			gap: 0.25rem; 
		}

		/* Modal pour formulaire avis */
		.modal-overlay { 
			position: fixed; 
			top: 0; 
			left: 0; 
			width: 100%; 
			height: 100%; 
			background: rgba(0,0,0,0.5); 
			display: flex; 
			align-items: center; 
			justify-content: center; 
			z-index: 10000; 
			padding: 1rem; 
		}

		.modal-content { 
			background: white; 
			border-radius: 1rem; 
			max-width: 600px; 
			width: 100%; 
			max-height: 90vh; 
			overflow: hidden; 
			display: flex; 
			flex-direction: column; 
			box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
		}

		.modal-header { 
			padding: 1.5rem; 
			border-bottom: 2px solid #e5e7eb; 
			display: flex; 
			justify-content: space-between; 
			align-items: center; 
		}

		.modal-header h3 { 
			margin: 0; 
			font-size: 1.5rem; 
			font-weight: bold; 
			color: #1f2937; 
		}

		.modal-close { 
			background: #f3f4f6; 
			border: none; 
			width: 32px; 
			height: 32px; 
			border-radius: 50%; 
			cursor: pointer; 
			font-size: 1.25rem; 
			color: #6b7280; 
			display: flex; 
			align-items: center; 
			justify-content: center; 
			transition: all 0.2s; 
		}

		.modal-close:hover { 
			background: #e5e7eb; 
			color: #1f2937; 
			transform: rotate(90deg); 
		}

		.modal-body { 
			padding: 1.5rem; 
			overflow-y: auto; 
			flex: 1; 
		}

		.modal-footer { 
			padding: 1.5rem; 
			border-top: 2px solid #e5e7eb; 
			display: flex; 
			gap: 0.75rem; 
			justify-content: flex-end; 
		}

		/* Responsive */
		@media (max-width: 768px) {
			.avis-stats-grid { 
				grid-template-columns: 1fr; 
			}
			
			.stat-card-large { 
				grid-column: span 1; 
			}
			
			.rating-selector { 
				flex-direction: column; 
			}
			
			.rating-star { 
				width: 100%; 
			}
		}
        /* Utils */
        .icon-btn { padding: 0.5rem; border-radius: 0.5rem; border: none; cursor: pointer; background: transparent; font-size: 1.125rem; }
        .icon-btn:hover { background: #f3f4f6; }
        .empty { text-align: center; padding: 3rem; color: #9ca3af; }
        .loading { text-align: center; padding: 3rem; color: #6b7280; }
        .status-bar { background: #d1fae5; color: #065f46; padding: 0.5rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; }
        
/* Large screens */
@media (min-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
}

        /* Responsive */
        @media (max-width: 768px) {
            .container { padding: 1rem; }
            .toolbar { flex-direction: column; }
            .photo-grid { grid-template-columns: repeat(3, 1fr); }
            .header-right { flex-direction: column; gap: 0.5rem; align-items: flex-end; }
            .dashboard-grid { grid-template-columns: 1fr; gap: 0.5rem; }
            .dashboard { margin: 0; padding: 0; width: 100%; }
    .stat-card { padding: 1.25rem; }
    .stat-card h3 { font-size: 0.75rem; }
    .stat-card .stat-value { font-size: 2.5rem; }
            .calendrier-jours { grid-auto-rows: minmax(80px, auto); }
            .jour-cell { min-height: 80px; padding: 0.2rem; }
            .itineraire-body { grid-template-columns: 1fr; height: auto; }
            .itineraire-liste { border-right: none; border-bottom: 1px solid #e5e7eb; max-height: 300px; }
            .itineraire-map { height: 400px; }
        }
        
        /* Paramètres */
        .param-section {
            margin-bottom: 30px;
            padding: 25px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        
        .param-section h3 {
            margin-top: 0;
            color: #1e293b;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 12px;
            margin-bottom: 20px;
        }
        
        .info-box {
            font-size: 14px;
            line-height: 1.6;
        }
        
        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 15px;
            transition: border-color 0.2s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
            font-size: 14px;
        }
        
        .form-group small {
            display: block;
            margin-top: 6px;
            font-size: 13px;
            color: #6b7280;
        }

/* Calendrier - classes additionnelles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.calendar-day-header {
    background: #f3f4f6;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f9fafb;
}

.calendar-day.today {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.calendar-day.selected {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.calendar-day.other-month {
    background: #f9fafb;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 0;
    }
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
        font-size: 0.875rem;
    }
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}
/* ============================================
   CALENDRIER - CSS MOBILE OPTIMISÉ
   ============================================ */

/* VUE MOIS - Grille responsive */
	.calendar-grid {
		display: grid;
		grid-template-columns: repeat(7, 1fr);
		gap: 0;
		background: #e5e7eb;
		border: 1px solid #e5e7eb;
		border-radius: 0;
		overflow: hidden;
	}

.calendar-day-header {
    background: #f3f4f6;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    max-height: 150px;
}

.calendar-day:hover {
    background: #f9fafb;
}

.calendar-day.today {
    background: #eff6ff;
    border: 2px solid #2563eb !important;
}

.calendar-day.selected {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.calendar-day.other-month {
    background: #f9fafb;
    opacity: 0.5;
}

/* ============================================
   MOBILE OPTIMISÉ - Tablette et moins
   ============================================ */

@media (max-width: 1024px) {
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        min-height: 90px;
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .calendar-day-header {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   MOBILE - Smartphone portrait
   ============================================ */


	@media (max-width: 768px) {
		.calendrier-container {
			padding: 0 !important;
		}
		
		.calendrier-container .card {
			margin: 0.25rem 0 !important;
			padding: 0.5rem !important;
			border-radius: 0.5rem;
		}
		
		.calendar-grid {
			border-radius: 0;
			gap: 0;
		}
		.calendar-day {
			min-height: 100px;
			max-height: 120px;
			padding: 0.2rem;
			font-size: 0.7rem;
			overflow-y: auto;
		}
		
		/* Container pour permettre le scroll */
		.card:has(.calendar-grid) {
			overflow-x: auto;
			-webkit-overflow-scrolling: touch;
		}
		
		/* En-têtes jours mini */
		.calendar-day-header {
			padding: 0.4rem 0.2rem;
			font-size: 0.65rem;
			font-weight: 700;
			min-width: 50px;
		}
		
		/* Cases jours compactes */
		.calendar-day {
			min-height: 70px;
			padding: 0.2rem;
			font-size: 0.7rem;
			min-width: 50px;
		}
		
		/* Numéro du jour */
		.calendar-day > div:first-child {
			font-size: 0.75rem !important;
			margin-bottom: 0.15rem !important;
		}
		
		/* Interventions ultra-compactes MAIS VISIBLES */
		.calendar-day > div > div {
			font-size: 0.65rem !important;
			padding: 0.25rem 0.3rem !important;
			margin-bottom: 0.2rem !important;
			line-height: 1.2 !important;
			display: block !important;
		}
	}

/* ============================================
   MOBILE MINI - Smartphone petit
   ============================================ */

	@media (max-width: 480px) {
		/* Grille avec scroll sur petit écran */
		.calendar-grid {
			grid-template-columns: repeat(7, minmax(48px, 1fr));
			overflow-x: auto;
			-webkit-overflow-scrolling: touch;
		}
		
		/* Cases encore plus compactes */
		.calendar-day-header {
			min-width: 48px;
			padding: 0.25rem 0.05rem;
			font-size: 0.55rem;
		}
		
		.calendar-day {
			min-height: 55px;
			padding: 0.1rem;
			min-width: 48px;
	}
    
    .calendar-day-header {
        padding: 0.25rem 0.05rem;
        font-size: 0.55rem;
    }
    
    /* Numéro jour mini */
    .calendar-day > div:first-child {
        font-size: 0.65rem !important;
        padding: 0.05rem !important;
        margin-bottom: 0.05rem !important;
    }
    
    /* Interventions mini mais lisibles */
    .calendar-day > div > div {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.15rem !important;
        margin-bottom: 0.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
    }
}

/* ============================================
   MOBILE LANDSCAPE - Paysage
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .calendar-day {
        min-height: 80px;
    }
}

/* ============================================
   VUE SEMAINE - Scroll horizontal mobile
   ============================================ */

.vue-semaine-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
}

.vue-semaine-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
}

.vue-semaine-jour {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 200px;
}

.vue-semaine-jour.today {
    background: #dbeafe;
    border-color: #2563eb;
}

/* Mobile - Scroll horizontal */
@media (max-width: 768px) {
    .vue-semaine-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0;
    }
    
    .vue-semaine-grid {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem;
        min-width: min-content;
    }
    
    .vue-semaine-jour {
        flex: 0 0 140px;
        scroll-snap-align: start;
        padding: 0.5rem;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .vue-semaine-jour {
        flex: 0 0 120px;
        padding: 0.4rem;
        min-height: 160px;
    }
}


/* ============================================
   CONTENEUR CALENDRIER
   ============================================ */

.calendrier-container {
	padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .calendrier-container {
        padding: 0;
    }
    
    .calendrier-container .card {
        border-radius: 0.5rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }
}

/* ============================================
   CALENDRIER - NAVIGATION RESPONSIVE
   ============================================ */

/* Navigation supérieure */
.calendrier-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
}

.calendrier-titre {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    flex: 1;
}

/* Navigation inférieure */
.calendrier-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 1rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Boutons navigation */
.calendrier-nav-btn {
    white-space: nowrap;
}

.calendrier-vue-btn {
    flex: 1;
    min-width: 70px;
}

/* Texte long par défaut */
.nav-text-short {
    display: none;
}

.nav-text-long {
    display: inline;
}

/* ============================================
   MOBILE - Calendrier responsive
   ============================================ */

@media (max-width: 768px) {
    /* Titre plus petit */
    .calendrier-titre {
        font-size: 1.1rem;
    }
    
    /* Texte court sur mobile */
    .nav-text-short {
        display: inline;
    }
    
    .nav-text-long {
        display: none;
    }
    
    /* Boutons plus compacts */
    .calendrier-nav-btn {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
    }
    
    .calendrier-vue-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Navigation en colonne si nécessaire */
    .calendrier-nav-bottom {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calendrier-nav-bottom > div {
        width: 100%;
    }
    
    .calendrier-nav-bottom > button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Très petit écran */
    .calendrier-titre {
        font-size: 0.95rem;
    }
    
    .calendrier-nav-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .calendrier-vue-btn {
        font-size: 0.8rem;
    }
}

/* ============================================
   CALENDRIER MOBILE - INTERVENTIONS VISIBLES
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        min-height: 90px;
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .calendar-day-header {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 0;
        border-radius: 0.25rem;
    }
    
    .calendar-day-header {
        padding: 0.4rem 0.2rem;
        font-size: 0.65rem;
        font-weight: 700;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 0.2rem;
        font-size: 0.7rem;
    }
    
    /* Numéro du jour visible */
    .calendar-day > div > div:first-child {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    /* INTERVENTIONS VISIBLES - compactes mais lisibles */
    .calendar-day > div > div:not(:first-child) {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.25rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.1 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Petit smartphone */
@media (max-width: 480px) {
    .calendar-day {
        min-height: 65px;
        padding: 0.15rem;
    }
    
    .calendar-day-header {
        padding: 0.3rem 0.1rem;
        font-size: 0.6rem;
    }
    
    .calendar-day > div > div:first-child {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    /* Interventions ultra-compactes mais VISIBLES */
    .calendar-day > div > div:not(:first-child) {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.2rem !important;
        margin-bottom: 0.1rem !important;
    }
}

/* Paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .calendar-day {
        min-height: 75px;
    }
}
/* ============================================
   VUE SEMAINE - MOBILE RESPONSIVE
   ============================================ */

/* Vue semaine - scroll horizontal sur mobile */
@media (max-width: 768px) {
    /* Container avec scroll horizontal */
    .card:has([style*="display: flex"][style*="border-bottom: 2px solid"]) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* En-tête semaine compact */
    .card > div[style*="position: sticky"] {
        position: sticky;
        top: 0;
        z-index: 20;
    }
    
    .card > div[style*="position: sticky"] > div:first-child {
        min-width: 50px !important;
        width: 50px !important;
        font-size: 0.7rem !important;
        padding: 0.5rem 0.2rem !important;
    }
    
    .card > div[style*="position: sticky"] > div:not(:first-child) {
        min-width: 70px !important;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Colonnes horaires compactes */
    .card > div[style*="overflow-y: auto"] > div {
        min-height: 50px !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div:first-child {
        min-width: 50px !important;
        width: 50px !important;
        font-size: 0.7rem !important;
        padding: 0.75rem 0.2rem !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div:not(:first-child) {
        min-width: 70px !important;
        padding: 0.2rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Interventions dans la semaine */
    .card > div[style*="overflow-y: auto"] > div > div > div[style*="cursor: pointer"] {
        font-size: 0.6rem !important;
        padding: 0.25rem !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div > div[style*="cursor: pointer"] > div:first-child {
        font-size: 0.65rem !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div > div[style*="cursor: pointer"] > div:last-child {
        font-size: 0.55rem !important;
        display: none; /* Masquer nom client sur mobile */
    }
}

/* Très petit mobile */
	@media (max-width: 480px) {
    .card > div[style*="position: sticky"] > div:first-child {
        min-width: 45px !important;
        width: 45px !important;
        font-size: 0.65rem !important;
    }
    
    .card > div[style*="position: sticky"] > div:not(:first-child) {
        min-width: 60px !important;
        font-size: 0.6rem !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div {
        min-height: 45px !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div:first-child {
        min-width: 45px !important;
        width: 45px !important;
        font-size: 0.65rem !important;
    }
    
    .card > div[style*="overflow-y: auto"] > div > div:not(:first-child) {
        min-width: 60px !important;
    }
}/* ============================================
   HEADER - Styles à ajouter dans main.css
   ============================================ */

/* Container principal du header */
.app-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

/* Partie gauche - Titre */
.app-header-left {
    color: white;
    flex: 1;
}

.app-header-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.app-header-subtitle {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.app-header-copyright {
    margin: 0.25rem 0 0 0;
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Partie droite - Boutons */
.app-header-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Boutons du header */
.header-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 140px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Badge Devis SMS */
.header-badge-devis {
    background: rgba(245, 158, 11, 0.9);
}

.header-badge-devis:hover {
    background: rgba(245, 158, 11, 1);
}

.header-badge-devis.has-pending {
    background: rgba(245, 158, 11, 0.9);
}

.header-badge-devis.no-pending {
    background: rgba(255, 255, 255, 0.2);
}

/* Badge Connexion */
.header-badge-online {
    background: rgba(16, 185, 129, 0.9);
}

.header-badge-offline {
    background: rgba(245, 158, 11, 0.9);
}

/* Badge Déconnexion */
.header-badge-logout {
    background: rgba(220, 38, 38, 0.9);
    text-decoration: none;
}

.header-badge-logout:hover {
    background: rgba(220, 38, 38, 1);
}

/* Compteur rouge sur les badges */
.badge-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 9999px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Animation pulse pour le compteur */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.badge-counter.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Bandeau utilisateur connecté */
.user-connected-banner {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 0.75rem 1.5rem;
}

.user-connected-text {
    font-weight: 600;
    color: #166534;
}

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

@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }
    
    .app-header-content {
        gap: 0.75rem;
    }
    
    .app-header-title {
        font-size: 1.25rem;
    }
    
    .app-header-subtitle {
        font-size: 0.8rem;
    }
    
    .app-header-copyright {
        font-size: 0.7rem;
    }
    
    .app-header-right {
        gap: 0.5rem;
    }
    
    /* Sur mobile : juste les icônes */
    .header-badge {
        min-width: auto;
        padding: 0.5rem;
        font-size: 1.25rem;
    }
    
    /* Masquer le texte, garder juste l'icône */
    .header-badge-text {
        display: none;
    }
    
    .user-connected-banner {
        padding: 0.5rem 1rem;
    }
    
    .user-connected-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .app-header-title {
        font-size: 1.1rem;
    }
    
    .app-header-subtitle {
        font-size: 0.75rem;
    }
    
    .header-badge {
        font-size: 1.1rem;
    }
}