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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
            min-height: 100vh;
            color: #1e293b;
            line-height: 1.2;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
        }

        .header {
            background: #1e293b;
            color: white;
            padding: 25px 30px;
            text-align: center;
            position: relative;
        }

        .header h1 {
            font-size: 2.4em;
            font-weight: 700;
            margin-bottom: 6px;
            letter-spacing: -0.02em;
        }

        .header p {
            font-size: 1.0em;
            margin-bottom: 4px;
            opacity: 0.9;
            font-weight: 400;
        }

        .subtitle {
            font-size: 0.9em;
            opacity: 0.8;
            font-weight: 300;
            font-style: italic;
        }

        .main-content {
            padding: 25px 30px;
            background: white;
        }

        .search-section {
            margin-bottom: 25px;
        }

        .search-container {
            position: relative;
            max-width: 700px;
            margin: 0 auto;
        }

        .search-input {
            width: 100%;
            padding: 14px 25px 14px 50px;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            font-size: 0.95em;
            background: #f8fafc;
            transition: all 0.3s ease;
            font-family: inherit;
            color: #1e293b;
        }

        .search-input::placeholder {
            color: #64748b;
            opacity: 0.7;
        }

        .search-input:focus {
            outline: none;
            border-color: #3b82f6;
            background: white;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            font-size: 1.2em;
        }

        .clear-search-btn {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #64748b;
            font-size: 1.1em;
            cursor: pointer;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-family: inherit;
            line-height: 1;
        }

        .clear-search-btn:hover {
            background: #e2e8f0;
            color: #1e293b;
            transform: translateY(-50%) scale(1.1);
        }

        .clear-search-btn.visible {
            display: flex;
        }

        .search-help {
            margin-top: 10px;
            text-align: center;
            font-size: 0.8em;
            color: #64748b;
            font-style: italic;
        }

        .main-view {
            display: block;
        }

        .detail-view {
            display: none;
        }

        .poles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 18px;
            margin-top: 15px;
        }

        .pole-card {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            padding: 22px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
        }

        .pole-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        }

        .pole1-card {
            border-color: #2563eb;
        }

        .pole1-card:hover {
            border-color: #1d4ed8;
            box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
        }

        .pole2-card {
            border-color: #16a34a;
        }

        .pole2-card:hover {
            border-color: #15803d;
            box-shadow: 0 16px 40px rgba(22, 163, 74, 0.15);
        }

        .pole3-card {
            border-color: #ea580c;
        }

        .pole3-card:hover {
            border-color: #dc2626;
            box-shadow: 0 16px 40px rgba(234, 88, 12, 0.15);
        }

        .pole-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            border-radius: 16px 16px 0 0;
            transition: all 0.3s ease;
        }

        .pole1-card::before {
            background: #2563eb;
        }

        .pole2-card::before {
            background: #16a34a;
        }

        .pole3-card::before {
            background: #ea580c;
        }

        .pole-header {
            display: flex;
            align-items: center;
            margin-bottom: 14px;
        }

        .pole-number {
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.0em;
            margin-right: 14px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        }

        .pole1-card .pole-number {
            background: #2563eb;
        }

        .pole2-card .pole-number {
            background: #16a34a;
        }

        .pole3-card .pole-number {
            background: #ea580c;
        }

        .pole-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.1;
        }

        .pole-description {
            color: #475569;
            margin-bottom: 14px;
            font-size: 0.9em;
            line-height: 1.3;
        }

        .pole-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .tag {
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .pole1-card .tag {
            background: #2563eb;
        }

        .pole1-card .tag:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
        }

        .pole2-card .tag {
            background: #16a34a;
        }

        .pole2-card .tag:hover {
            background: #15803d;
            transform: translateY(-1px);
        }

        .pole3-card .tag {
            background: #ea580c;
        }

        .pole3-card .tag:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        .detail-header {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e2e8f0;
            flex-wrap: wrap;
            gap: 12px;
        }

        .back-btn {
            background: #6366f1;
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
            font-weight: 600;
            font-family: inherit;
            box-shadow: 0 3px 12px rgba(99, 102, 241, 0.2);
        }

        .back-btn:hover {
            background: #4f46e5;
            transform: translateY(-2px);
            box-shadow: 0 5px 16px rgba(99, 102, 241, 0.3);
        }

        .detail-title {
            color: #1e293b;
            font-size: 1.6em;
            margin: 0;
            font-weight: 600;
            flex: 1;
        }

        .search-indicator {
            display: flex;
            align-items: center;
        }

        .search-indicator span {
            background: #3b82f6;
            color: white;
            padding: 6px 14px;
            border-radius: 18px;
            font-size: 0.8em;
            font-weight: 600;
            animation: fadeIn 0.5s ease-out;
        }

        .competences-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 16px;
        }

        .competence-card {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 14px;
            padding: 18px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

        .competence-card:hover {
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .pole1-detail .competence-card {
            border-left: 4px solid #2563eb;
        }

        .pole1-detail .competence-card .competence-number {
            background: #2563eb;
        }

        .pole2-detail .competence-card {
            border-left: 4px solid #16a34a;
        }

        .pole2-detail .competence-card .competence-number {
            background: #16a34a;
        }

        .pole3-detail .competence-card {
            border-left: 4px solid #ea580c;
        }

        .pole3-detail .competence-card .competence-number {
            background: #ea580c;
        }

        .competence-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .competence-number {
            color: white;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85em;
            margin-right: 12px;
            flex-shrink: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        }

        .competence-title {
            font-size: 1.05em;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.2;
        }

        .activities-list {
            list-style: none;
            margin-top: 16px;
        }

        .activity-item {
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            color: #475569;
            position: relative;
            padding-left: 18px;
            font-size: 0.88em;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            line-height: 1.2;
            cursor: help;
        }

        .activity-item::before {
            content: '●';
            position: absolute;
            left: 0;
            font-weight: bold;
            font-size: 1.0em;
        }

        .pole1-detail .activity-item::before {
            color: #2563eb;
        }

        .pole2-detail .activity-item::before {
            color: #16a34a;
        }

        .pole3-detail .activity-item::before {
            color: #ea580c;
        }

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

        .activity-item:hover {
            color: #1e293b;
            background: #f8fafc;
            margin: 0 -10px;
            padding: 8px 10px 8px 28px;
            border-radius: 6px;
        }

        .tooltip {
            position: relative;
        }

        .tooltip-content {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: white;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.88em;
            line-height: 1.3;
            width: 300px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .tooltip-content::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #1e293b;
        }

        .tooltip:hover .tooltip-content {
            visibility: visible;
            opacity: 1;
        }

        .tooltip-title {
            font-weight: 600;
            color: #3b82f6;
            margin-bottom: 6px;
            font-size: 0.9em;
        }

        .tooltip-competence {
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid #374151;
        }

        .tooltip-savoirs {
            font-size: 0.8em;
            color: #d1d5db;
        }

        .tooltip-savoirs strong {
            color: #fbbf24;
            display: block;
            margin-bottom: 3px;
        }

        .highlighted {
            background: #f0f9ff !important;
            box-shadow: 0 8px 28px rgba(59, 130, 246, 0.15) !important;
        }

        .pole1-detail .highlighted {
            border-left-color: #1d4ed8 !important;
        }

        .pole2-detail .highlighted {
            border-left-color: #15803d !important;
        }

        .pole3-detail .highlighted {
            border-left-color: #dc2626 !important;
        }

        .highlighted-activity {
            background: #dbeafe !important;
            color: #1e40af !important;
            font-weight: 600 !important;
            border-radius: 6px !important;
            margin: 0 -10px !important;
            padding: 8px 10px 8px 28px !important;
            border-bottom: 1px solid #bfdbfe !important;
        }

        .result-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #dc2626;
            color: white;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8em;
            box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
            animation: pulse 2s infinite;
            cursor: help;
        }

        .has-results {
            background: #f0f9ff !important;
            border-color: #0ea5e9 !important;
            box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15) !important;
        }

        mark {
            background: #fbbf24;
            color: #1e293b;
            padding: 1px 3px;
            border-radius: 3px;
            font-weight: 600;
        }

        .fade-in {
            animation: fadeIn 0.5s ease-out;
        }

        .no-results {
            text-align: center;
            padding: 40px 16px;
            background: #f8fafc;
            border: 2px dashed #cbd5e1;
            border-radius: 14px;
            margin: 20px 0;
        }

        .no-results-icon {
            font-size: 2.5em;
            margin-bottom: 12px;
            opacity: 0.6;
        }

        .no-results h3 {
            color: #475569;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 1.1em;
        }

        .no-results p {
            color: #64748b;
            font-size: 0.9em;
            max-width: 400px;
            margin: 0 auto;
        }

        .suggestion-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
            margin-top: 12px;
        }

        .suggestion-tag {
            background: #e2e8f0;
            color: #475569;
            padding: 6px 14px;
            margin: 2px;
            border-radius: 16px;
            display: inline-block;
            cursor: pointer;
            font-size: 0.85em;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .suggestion-tag:hover {
            background: #3b82f6;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        @keyframes attention {
            0%, 100% { 
                transform: translateY(-2px) scale(1); 
                box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
            }
            50% { 
                transform: translateY(-3px) scale(1.01); 
                box-shadow: 0 12px 35px rgba(59, 130, 246, 0.2);
            }
        }

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

        @media (max-width: 768px) {
            .header {
                padding: 20px 16px;
            }

            .header h1 {
                font-size: 1.8em;
            }

            .main-content {
                padding: 20px 16px;
            }

            .poles-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .competences-container {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            .detail-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .pole-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .pole-number {
                margin-right: 0;
            }

            .search-input {
                padding: 12px 16px 12px 45px;
            }

            .pole-card {
                padding: 18px;
            }

            .competence-card {
                padding: 16px;
            }

            .tooltip-content {
                width: 260px;
            }

            .detail-title {
                font-size: 1.4em;
            }
        }
  
        .footer {
            text-align: center;
            padding: 14px;
            color: #6b7280;
            border-top: 1px solid #e2e8f0;
            margin-top: 18px;
            background: white;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }