* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1800px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            animation: fadeIn 0.6s ease-out;
            position: relative;
        }

        .portal-btn {
            position: absolute;
            top: 0;
            left: 0;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .portal-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* Barre de recherche */
        .search-container {
            max-width: 600px;
            margin: 0 auto 30px;
            animation: slideUp 0.6s ease-out;
        }

        .search-wrapper {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 15px 50px 15px 20px;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            background: white;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
            color: #667eea;
        }

        .search-results {
            text-align: center;
            color: white;
            font-size: 0.9rem;
            margin-top: 10px;
            opacity: 0.9;
        }

        /* Affichage en colonnes */
        .services-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            animation: slideUp 0.8s ease-out;
        }

        @media (max-width: 1400px) {
            .services-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 900px) {
            .services-container {
                grid-template-columns: 1fr;
            }
            
            .portal-btn {
                position: static;
                margin-bottom: 20px;
            }
        }

        .service-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .service-card:hover {
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            transform: translateY(-5px);
        }

        .service-card.hidden {
            display: none;
        }

        /* En-tête de la carte - Toujours visible */
        .service-header {
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 2px solid #f0f0f0;
        }

        .service-header:hover {
            background: #f8f9fa;
        }

        .service-header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .service-title-section {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
        }

        .service-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .service-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #333;
        }

        .expand-icon {
            font-size: 1.5rem;
            color: #667eea;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .service-header.expanded .expand-icon {
            transform: rotate(180deg);
        }

        .overall-status {
            display: flex;
            align-items: center;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-top: 10px;
        }

        /* Contenu déroulant */
        .service-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }

        .service-content.expanded {
            max-height: 3000px;
        }

        .service-body {
            padding: 20px;
        }

        /* Actions et historique */
        .service-actions {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .history-toggle {
            background: #667eea;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            flex: 1;
            min-width: 150px;
        }

        .history-toggle:hover {
            background: #5568d3;
            transform: scale(1.03);
        }

        .status-link {
            background: #f8f9fa;
            color: #667eea;
            border: 2px solid #667eea;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            flex: 1;
            min-width: 150px;
            text-align: center;
        }

        .status-link:hover {
            background: #667eea;
            color: white;
            transform: scale(1.03);
        }

        .history-section {
            display: none;
            margin-bottom: 20px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            animation: slideDown 0.3s ease-out;
        }

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

        .history-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chart-container {
            position: relative;
            height: 250px;
            margin-bottom: 15px;
            background: white;
            padding: 15px;
            border-radius: 8px;
        }

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

        .stat-item {
            padding: 15px;
            background: white;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.85rem;
            color: #666;
        }

        /* Grille des systèmes */
        .systems-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .system-item {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 8px;
            border-left: 4px solid;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .system-item:hover {
            transform: translateX(5px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .system-item.operational {
            border-left-color: #28a745;
            background: linear-gradient(to right, #d4edda 0%, #f8f9fa 100%);
        }

        .system-item.degraded {
            border-left-color: #ffc107;
            background: linear-gradient(to right, #fff3cd 0%, #f8f9fa 100%);
        }

        .system-item.down {
            border-left-color: #dc3545;
            background: linear-gradient(to right, #f8d7da 0%, #f8f9fa 100%);
        }

        .system-item.maintenance {
            border-left-color: #6c757d;
            background: linear-gradient(to right, #e2e3e5 0%, #f8f9fa 100%);
        }

        .system-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        .system-name {
            font-weight: 600;
            color: #333;
            font-size: 0.9rem;
        }

        .status-badge {
            display: flex;
            align-items: center;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 3px 8px;
            border-radius: 10px;
        }

        .status-badge .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 5px;
            animation: pulse 2s ease-in-out infinite;
        }

        .badge-operational {
            background-color: #d4edda;
            color: #155724;
        }

        .badge-operational .status-dot {
            background-color: #28a745;
        }

        .badge-degraded {
            background-color: #fff3cd;
            color: #856404;
        }

        .badge-degraded .status-dot {
            background-color: #ffc107;
        }

        .badge-down {
            background-color: #f8d7da;
            color: #721c24;
        }

        .badge-down .status-dot {
            background-color: #dc3545;
        }

        .badge-maintenance {
            background-color: #e2e3e5;
            color: #383d41;
        }

        .badge-maintenance .status-dot {
            background-color: #6c757d;
        }

        .system-description {
            font-size: 0.8rem;
            color: #666;
            margin-top: 3px;
        }

        .service-footer {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 15px 20px;
            border-top: 1px solid #e0e0e0;
            font-size: 0.85rem;
            color: #666;
        }

        /* Boutons de contrôle */
        .controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin: 30px auto;
            flex-wrap: wrap;
        }

        .refresh-btn, .clear-btn, .expand-all-btn {
            background: white;
            color: #667eea;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .clear-btn {
            background: #dc3545;
            color: white;
        }

        .expand-all-btn {
            background: #28a745;
            color: white;
        }

        .refresh-btn:hover, .clear-btn:hover, .expand-all-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 7px 20px rgba(0,0,0,0.3);
        }

        .no-data-message {
            text-align: center;
            padding: 30px;
            color: #666;
            font-style: italic;
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: white;
            font-size: 1.2rem;
        }

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

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

        @keyframes slideDown {
            from {
                opacity: 0;
                max-height: 0;
            }
            to {
                opacity: 1;
                max-height: 1000px;
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }