:root {
        --primary-color: #2563eb;
        --secondary-color: #dbeafe;
        --accent-color: #1d4ed8;
        --success-color: #22c55e;
        --warning-color: #f59e0b;
        --error-color: #ef4444;
        --text-color: #1f2937;
        --bg-color: #f8fafc;
        --card-bg: #ffffff;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --border-radius: 12px;
        --max-width: 1200px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: linear-gradient(135deg, var(--bg-color) 0%, #e2e8f0 100%);
        color: var(--text-color);
        line-height: 1.6;
        min-height: 100vh;
        padding: 20px;
    }

    .container {
        max-width: 600px;
        margin: 0 auto;
        padding: 40px 0;
    }

    .header {
        text-align: center;
        margin-bottom: 40px;
        animation: fadeInDown 0.8s ease;
    }

    .header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .header p {
        font-size: 1.1rem;
        color: #64748b;
    }

    .card {
        background: var(--card-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        padding: 30px;
        margin-bottom: 30px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        transition: var(--transition);
        animation: fadeInUp 0.6s ease;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .search-section {
        margin-bottom: 30px;
    }

    .search-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-form {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .input-group {
        flex: 1;
        min-width: 200px;
    }

    .input-group label {
        display: block;
        font-weight: 500;
        color: var(--text-color);
        margin-bottom: 8px;
    }

    .input-group input {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1rem;
        transition: var(--transition);
        background: #f8fafc;
    }

    .input-group input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        background: white;
    }

    .btn {
        padding: 12px 24px;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        min-width: 140px;
        justify-content: center;
        position: relative;
    }

    .btn-primary {
        background: var(--primary-color);
        color: white;
    }

    .btn-primary:hover {
        background: var(--accent-color);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .loading {
        display: none;
        align-items: center;
        gap: 8px;
        color: #64748b;
        font-size: 0.9rem;
    }

    .loading.show {
        display: flex;
    }

    .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid #e2e8f0;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .result-section {
       
        animation: fadeInUp 0.6s ease;
    }

    .result-section.show {
        display: block;
    }

    .status-card {
        background: var(--card-bg);
        border-radius: var(--border-radius);
        padding: 25px;
        border-left: 4px solid var(--primary-color);
        margin-bottom: 20px;
    }

    .status-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .status-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .status-info h3 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .status-info p {
        color: #64748b;
        font-size: 0.95rem;
    }

    .status-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .detail-item {
        padding: 15px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .detail-item strong {
        display: block;
        color: var(--text-color);
        font-weight: 600;
        margin-bottom: 5px;
    }

    .detail-item span {
        color: #64748b;
        font-size: 0.95rem;
    }

    .progress-bar {
        background: #e2e8f0;
        border-radius: 10px;
        height: 8px;
        overflow: hidden;
        margin-top: 20px;
    }

    .progress-fill {
        height: 100%;

        border-radius: 10px;
        transition: width 0.8s ease;
    }

    .progress-steps {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
        font-size: 0.85rem;
    }

    .step {
        color: #64748b;
        font-weight: 500;
    }

    .step.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .step.completed {
        color: var(--success-color);
        font-weight: 600;
    }

    /* Status variants */
    .status-en-attente {
        border-left-color: var(--warning-color);
    }

    .status-en-attente .status-icon {
        background: var(--warning-color);
    }

    .status-en-cours {
        border-left-color: var(--primary-color);
    }

    .status-en-cours .status-icon {
        background: var(--primary-color);
    }

    .status-terminee {
        border-left-color: var(--success-color);
    }

    .status-terminee .status-icon {
        background: var(--success-color);
    }

    .status-annulee {
        border-left-color: var(--error-color);
    }

    .status-annulee .status-icon {
        background: var(--error-color);
    }

    .message {
        border-radius: 8px;
        padding: 15px;
        display: none;
        margin-bottom: 20px;
    }

    .message.show {
        display: block;
        animation: fadeInUp 0.4s ease;
    }

    .error-message {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
    }

    .success-message {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
    }

    /* Animations */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .container {
            padding: 20px 0;
        }

        .header h1 {
            font-size: 2rem;
        }

        .card {
            padding: 20px;
            margin-bottom: 20px;
        }

        .search-form {
            flex-direction: column;
        }

        .input-group {
            min-width: 100%;
        }

        .status-header {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }

        .status-details {
            grid-template-columns: 1fr;
        }

        .progress-steps {
            font-size: 0.6rem;
        }

    }

    @media (max-width: 480px) {
        body {
            padding: 10px;
        }

        .header h1 {
            font-size: 1.8rem;
        }

        .card {
            padding: 15px;
        }

        .btn {
            padding: 10px 20px;
            font-size: 0.9rem;
        }
    }
